This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hi, now that the testfor command is gone: How do I count villagers in my village? I wanna count all villagers Live every second and display it on sidebar. How can I accomplish this? The execute command is so confusing. Appreciate help, thank you!
Nevermind, I think I made it with 2 simple commands running repeatedly in always active command blocks: scoreboard players set NUM VillagerNum 0 execute as @e[type=minecraft:villager,distance=..60] run scoreboard players add NUM VillagerNum 1
You can do that in only one command :
execute store result score NUM VillagerNum run execute if entity @e[type=minecraft:villager,distance=..60]
I like trains... OF CHAIN COMMAND BLOCKS !
Hi, now that the testfor command is gone: How do I count villagers in my village? I wanna count all villagers Live every second and display it on sidebar. How can I accomplish this? The execute command is so confusing.
Appreciate help, thank you!
Nevermind, I think I made it with 2 simple commands running repeatedly in always active command blocks:
scoreboard players set NUM VillagerNum 0
execute as @e[type=minecraft:villager,distance=..60] run scoreboard players add NUM VillagerNum 1
You can do that in only one command :
I like trains... OF CHAIN COMMAND BLOCKS !