Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##### IMPORTS #####
- #/summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["model"],DisabledSlots:4144959,ArmorItems:[{},{},{},{id:"minecraft:jigsaw",Count:1b,tag:{CustomModelData:0}}]}
- scoreboard objectives add countdown dummy
- #scoreboard objectives setdisplay sidebar countdown
- ##### MAIN #####
- # Modify values with "scoreboard players set large countdown <value>"
- execute if score large countdown matches 5.. run tellraw @p {"text":"[Phoenix SC] Large must be < 5"}
- execute if score large countdown matches ..-1 run tellraw @p {"text":"[Phoenix SC] Large must be < 5"}
- execute unless score large countdown matches 0..4 run scoreboard players set large countdown 0
- scoreboard players set small countdown 6
- scoreboard players operation small countdown -= large countdown
- scoreboard objectives add countdown_value dummy
- kill @e[distance=..0.1,tag=countdown]
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"1"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"1"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"2"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"2"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"3"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"3"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"4"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"4"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"5"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"5"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"6"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"6"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"7"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"7"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"8"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"8"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"9"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"9"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"10"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","small","countdown"],DisabledSlots:4144959,CustomName:'{"text":"10"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","large","countdown"],DisabledSlots:4144959,CustomName:'{"text":"25"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","large","countdown"],DisabledSlots:4144959,CustomName:'{"text":"50"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","large","countdown"],DisabledSlots:4144959,CustomName:'{"text":"75"}'}
- summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,Tags:["number","large","countdown"],DisabledSlots:4144959,CustomName:'{"text":"100"}'}
- scoreboard players set @e[distance=..0.1,tag=countdown,name=1] countdown_value 1
- scoreboard players set @e[distance=..0.1,tag=countdown,name=2] countdown_value 2
- scoreboard players set @e[distance=..0.1,tag=countdown,name=3] countdown_value 3
- scoreboard players set @e[distance=..0.1,tag=countdown,name=4] countdown_value 4
- scoreboard players set @e[distance=..0.1,tag=countdown,name=5] countdown_value 5
- scoreboard players set @e[distance=..0.1,tag=countdown,name=6] countdown_value 6
- scoreboard players set @e[distance=..0.1,tag=countdown,name=7] countdown_value 7
- scoreboard players set @e[distance=..0.1,tag=countdown,name=8] countdown_value 8
- scoreboard players set @e[distance=..0.1,tag=countdown,name=9] countdown_value 9
- scoreboard players set @e[distance=..0.1,tag=countdown,name=10] countdown_value 10
- scoreboard players set @e[distance=..0.1,tag=countdown,name=25] countdown_value 25
- scoreboard players set @e[distance=..0.1,tag=countdown,name=50] countdown_value 50
- scoreboard players set @e[distance=..0.1,tag=countdown,name=75] countdown_value 75
- scoreboard players set @e[distance=..0.1,tag=countdown,name=100] countdown_value 100
- execute if score large countdown matches 0 run kill @e[distance=..0.1,tag=large]
- execute if score large countdown matches 0 run kill @e[distance=..0.1,tag=small,limit=14,sort=random]
- execute if score large countdown matches 1 run kill @e[distance=..0.1,tag=large,limit=3,sort=random]
- execute if score large countdown matches 1 run kill @e[distance=..0.1,tag=small,limit=15,sort=random]
- execute if score large countdown matches 2 run kill @e[distance=..0.1,tag=large,limit=2,sort=random]
- execute if score large countdown matches 2 run kill @e[distance=..0.1,tag=small,limit=16,sort=random]
- execute if score large countdown matches 3 run kill @e[distance=..0.1,tag=large,limit=1,sort=random]
- execute if score large countdown matches 3 run kill @e[distance=..0.1,tag=small,limit=17,sort=random]
- execute if score large countdown matches 4 run kill @e[distance=..0.1,tag=small,limit=18,sort=random]
- ## Calculate
- scoreboard objectives add countdown_step dummy
- #tellraw @p {"text":"\n\n\n\n\n"}
- # Step 1
- scoreboard players set countdown_step countdown_step 1
- execute if score countdown_step countdown_step matches 1 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"add"}',Tags:["operation","add","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 1 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"subtract"}',Tags:["operation","subtract","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 1 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"multiply"}',Tags:["operation","multiply","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 1 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"divide"}',Tags:["operation","divide","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 1 run kill @e[distance=..0.1,tag=operation,limit=3,sort=random]
- execute if score countdown_step countdown_step matches 1 run tag @e[distance=..0.1,tag=!selected,tag=number,limit=2,sort=random] add selected
- execute if score countdown_step countdown_step matches 1 run tag @e[distance=..0.1,tag=selected,limit=1,sort=random] add selected1
- execute if score countdown_step countdown_step matches 1 run tag @e[distance=..0.1,tag=selected,tag=!selected1,limit=1,sort=random] add selected2
- execute if score countdown_step countdown_step matches 1 run scoreboard players operation value countdown_step = @e[distance=..0.1,tag=selected1] countdown_value
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=add] run scoreboard players operation value countdown_step += @e[distance=..0.1,tag=selected2] countdown_value
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=subtract] run scoreboard players operation value countdown_step -= @e[distance=..0.1,tag=selected2] countdown_value
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=multiply] run scoreboard players operation value countdown_step *= @e[distance=..0.1,tag=selected2] countdown_value
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step = value countdown_step
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step %= @e[distance=..0.1,tag=selected2] countdown_value
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run scoreboard players set countdown_step countdown_step 0
- execute if score countdown_step countdown_step matches 1 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation value countdown_step /= @e[distance=..0.1,tag=selected2] countdown_value
- execute if score countdown_step countdown_step matches 1 run execute if score value countdown_step matches ..-1 run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 1 run execute if score value countdown_step matches ..-1 run scoreboard players set countdown_step countdown_step 0
- #execute if score countdown_step countdown_step matches 1 run tellraw @p {"selector":"@e[tag=selected1]","color":"gray"}
- #execute if score countdown_step countdown_step matches 1 run tellraw @p {"selector":"@e[tag=operation]","color":"gray"}
- #execute if score countdown_step countdown_step matches 1 run tellraw @p {"selector":"@e[tag=selected2]","color":"gray"}
- execute if score countdown_step countdown_step matches 1 run kill @e[tag=operation]
- #execute if score countdown_step countdown_step matches 1 run tellraw @p {"score":{"name":"value","objective":"countdown_step"},"color":"dark_gray"}
- # Step 2
- execute if score countdown_step countdown_step matches 1 run scoreboard players set countdown_step countdown_step 2
- execute if score countdown_step countdown_step matches 2 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"add"}',Tags:["operation","add","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 2 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"subtract"}',Tags:["operation","subtract","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 2 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"multiply"}',Tags:["operation","multiply","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 2 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"divide"}',Tags:["operation","divide","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 2 run kill @e[distance=..0.1,tag=operation,limit=3,sort=random]
- execute if score countdown_step countdown_step matches 2 run tag @e[distance=..0.1,tag=!selected,tag=number,limit=1,sort=random] add selected3
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=add] run scoreboard players operation value countdown_step += @e[distance=..0.1,tag=selected3] countdown_value
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=subtract] run scoreboard players operation value countdown_step -= @e[distance=..0.1,tag=selected3] countdown_value
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=multiply] run scoreboard players operation value countdown_step *= @e[distance=..0.1,tag=selected3] countdown_value
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step = value countdown_step
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step %= @e[distance=..0.1,tag=selected3] countdown_value
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run scoreboard players set countdown_step countdown_step 0
- execute if score countdown_step countdown_step matches 2 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation value countdown_step /= @e[distance=..0.1,tag=selected3] countdown_value
- execute if score countdown_step countdown_step matches 2 run execute if score value countdown_step matches ..-1 run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 2 run execute if score value countdown_step matches ..-1 run scoreboard players set countdown_step countdown_step 0
- #execute if score countdown_step countdown_step matches 2 run tellraw @p {"selector":"@e[tag=operation]","color":"gray"}
- #execute if score countdown_step countdown_step matches 2 run tellraw @p {"selector":"@e[tag=selected3]","color":"gray"}
- execute if score countdown_step countdown_step matches 2 run kill @e[tag=operation]
- #execute if score countdown_step countdown_step matches 2 run tellraw @p {"score":{"name":"value","objective":"countdown_step"},"color":"dark_gray"}
- # Step 3
- execute if score countdown_step countdown_step matches 2 run scoreboard players set countdown_step countdown_step 3
- execute if score countdown_step countdown_step matches 3 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"add"}',Tags:["operation","add","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 3 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"subtract"}',Tags:["operation","subtract","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 3 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"multiply"}',Tags:["operation","multiply","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 3 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"divide"}',Tags:["operation","divide","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 3 run kill @e[distance=..0.1,tag=operation,limit=3,sort=random]
- execute if score countdown_step countdown_step matches 3 run tag @e[distance=..0.1,tag=!selected,tag=number,limit=1,sort=random] add selected4
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=add] run scoreboard players operation value countdown_step += @e[distance=..0.1,tag=selected4] countdown_value
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=subtract] run scoreboard players operation value countdown_step -= @e[distance=..0.1,tag=selected4] countdown_value
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=multiply] run scoreboard players operation value countdown_step *= @e[distance=..0.1,tag=selected4] countdown_value
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step = value countdown_step
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step %= @e[distance=..0.1,tag=selected4] countdown_value
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run scoreboard players set countdown_step countdown_step 0
- execute if score countdown_step countdown_step matches 3 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation value countdown_step /= @e[distance=..0.1,tag=selected4] countdown_value
- execute if score countdown_step countdown_step matches 3 run execute if score value countdown_step matches ..-1 run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 3 run execute if score value countdown_step matches ..-1 run scoreboard players set countdown_step countdown_step 0
- #execute if score countdown_step countdown_step matches 3 run tellraw @p {"selector":"@e[tag=operation]","color":"gray"}
- #execute if score countdown_step countdown_step matches 3 run tellraw @p {"selector":"@e[tag=selected4]","color":"gray"}
- execute if score countdown_step countdown_step matches 3 run kill @e[tag=operation]
- #execute if score countdown_step countdown_step matches 3 run tellraw @p {"score":{"name":"value","objective":"countdown_step"},"color":"dark_gray"}
- # Step 4
- execute if score countdown_step countdown_step matches 3 run scoreboard players set countdown_step countdown_step 4
- execute if score countdown_step countdown_step matches 4 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"add"}',Tags:["operation","add","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 4 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"subtract"}',Tags:["operation","subtract","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 4 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"multiply"}',Tags:["operation","multiply","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 4 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"divide"}',Tags:["operation","divide","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 4 run kill @e[distance=..0.1,tag=operation,limit=3,sort=random]
- execute if score countdown_step countdown_step matches 4 run tag @e[distance=..0.1,tag=!selected,tag=number,limit=1,sort=random] add selected5
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=add] run scoreboard players operation value countdown_step += @e[distance=..0.1,tag=selected5] countdown_value
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=subtract] run scoreboard players operation value countdown_step -= @e[distance=..0.1,tag=selected5] countdown_value
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=multiply] run scoreboard players operation value countdown_step *= @e[distance=..0.1,tag=selected5] countdown_value
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step = value countdown_step
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step %= @e[distance=..0.1,tag=selected5] countdown_value
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run scoreboard players set countdown_step countdown_step 0
- execute if score countdown_step countdown_step matches 4 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation value countdown_step /= @e[distance=..0.1,tag=selected5] countdown_value
- execute if score countdown_step countdown_step matches 4 run execute if score value countdown_step matches ..-1 run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 4 run execute if score value countdown_step matches ..-1 run scoreboard players set countdown_step countdown_step 0
- #execute if score countdown_step countdown_step matches 4 run tellraw @p {"selector":"@e[tag=operation]","color":"gray"}
- #execute if score countdown_step countdown_step matches 4 run tellraw @p {"selector":"@e[tag=selected5]","color":"gray"}
- execute if score countdown_step countdown_step matches 4 run kill @e[tag=operation]
- #execute if score countdown_step countdown_step matches 4 run tellraw @p {"score":{"name":"value","objective":"countdown_step"},"color":"dark_gray"}
- # Step 5
- execute if score countdown_step countdown_step matches 4 run scoreboard players set countdown_step countdown_step 5
- execute if score countdown_step countdown_step matches 5 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"add"}',Tags:["operation","add","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 5 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"subtract"}',Tags:["operation","subtract","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 5 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"multiply"}',Tags:["operation","multiply","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 5 run summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Invulnerable:1b,Marker:1b,Invisible:1b,CustomName:'{"text":"divide"}',Tags:["operation","divide","countdown"],DisabledSlots:4144959}
- execute if score countdown_step countdown_step matches 5 run kill @e[distance=..0.1,tag=operation,limit=3,sort=random]
- execute if score countdown_step countdown_step matches 5 run tag @e[distance=..0.1,tag=!selected,tag=number,limit=1,sort=random] add selected6
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=add] run scoreboard players operation value countdown_step += @e[distance=..0.1,tag=selected6] countdown_value
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=subtract] run scoreboard players operation value countdown_step -= @e[distance=..0.1,tag=selected6] countdown_value
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=multiply] run scoreboard players operation value countdown_step *= @e[distance=..0.1,tag=selected6] countdown_value
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step = value countdown_step
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation temp countdown_step %= @e[distance=..0.1,tag=selected6] countdown_value
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=divide] run execute if score temp countdown_step matches 1.. run scoreboard players set countdown_step countdown_step 0
- execute if score countdown_step countdown_step matches 5 run execute if entity @e[distance=..0.1,tag=divide] run scoreboard players operation value countdown_step /= @e[distance=..0.1,tag=selected6] countdown_value
- execute if score countdown_step countdown_step matches 5 run execute if score value countdown_step matches ..-1 run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 5 run execute if score value countdown_step matches ..-1 run scoreboard players set countdown_step countdown_step 0
- #execute if score countdown_step countdown_step matches 5 run tellraw @p {"selector":"@e[tag=operation]","color":"gray"}
- #execute if score countdown_step countdown_step matches 5 run tellraw @p {"selector":"@e[tag=selected6]","color":"gray"}
- execute if score countdown_step countdown_step matches 5 run kill @e[tag=operation]
- #execute if score countdown_step countdown_step matches 5 run tellraw @p {"score":{"name":"value","objective":"countdown_step"},"color":"dark_gray"}
- # Is it three digits?
- execute if score countdown_step countdown_step matches 5 run scoreboard players set countdown_step countdown_step 6
- execute if score countdown_step countdown_step matches 6 run execute unless score value countdown_step matches 100..999 run function scripts:numbers_game
- execute if score countdown_step countdown_step matches 6 run execute unless score value countdown_step matches 100..999 run scoreboard players set countdown_step countdown_step 0
- ## End
- execute if score countdown_step countdown_step matches 6 run tellraw @p {"text":"\n-- [ Numbers Game, PhoenixSC ] ----->>\n","color":"gray"}
- execute if score countdown_step countdown_step matches 6 if score large countdown matches 0 run tellraw @p {"selector":"@e[distance=..0.1,tag=small]","color":"aqua"}
- execute if score countdown_step countdown_step matches 6 if score large countdown matches 1..4 run tellraw @p ["",{"selector":"@e[distance=..0.1,tag=large]","color":"aqua"},{"text":", ","color":"gray"},{"selector":"@e[distance=..0.1,tag=small]","color":"aqua"}]
- execute if score countdown_step countdown_step matches 6 run tellraw @p {"score":{"name":"value","objective":"countdown_step"},"color":"yellow"}
- execute if score countdown_step countdown_step matches 6 run tellraw @p {"text":"____________\n","color":"dark_gray"}
- kill @e[distance=..0.1,tag=countdown]
- scoreboard players set countdown_step countdown_step 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement