Content
| Name | Version | |
|---|---|---|
scoreboard players add #temp_1 cob.block 1
tag @s remove fail
execute if block ~ ~-1 ~ #obs:spawn_check run tag @s add fail
execute if score #temp_1 cob.block matches 41.. run tag @s add fail
execute if entity @s[tag=ob.trader_spawn,tag=fail] if score #temp_1 cob.block matches ..40 run function obs:random_trader
execute if entity @s[tag=ob.visitor_spawn,tag=fail] if score #temp_1 cob.block matches ..40 run function obs:visitor_spawn
kill @s[tag=fail]
scoreboard players set #temp_1 cob.block 0
| Name | Version | |
|---|---|---|