Check if certain world adjustments/conditions are active. For example:
Syntax:
execute if|unless world <option> <path>
Examples:
#Check if it's raining:
/execute if world minecraft:weather rain run ...
#Check if it's not daytime:
/execute unless world minecraft:time day run ...
#Check if the gamerule keepInventory is active:
/execute if world minecraft:gamerule keepInventory:true run ...
#Check if the world tick is at 60 ticks:
/execute if world minecraft:tick rate:60t run ...
(Some) World adjustment list:
minecraft:weather
minecraft:time
minecraft:gamerule
minecraft:tick
minecraft:difficulty
minecraft:worldborder
Please sign in to leave a comment.
1 Comments