1
Testfor command need help!!!
So, i'm making a vanilla RPG system in minecraft and i'm trying to count for a specific number of mobs spawnt using /summon. but it didn't really work.
this is the code i used:
testfor @e[type=Skeleton,x=-501,y=55,z=-292,r=10,c=5] {CustomName:Skull}
i run this command in a command block powered by a fill clock. anyone who knows how to count for 5 skeletons with the name Skull?
Because with this command the commandblock gives a signal when it detects the first mob. and i need it to give a signal when it counts 5 mobs.
help please
this is the code i used:
testfor @e[type=Skeleton,x=-501,y=55,z=-292,r=10,c=5] {CustomName:Skull}
i run this command in a command block powered by a fill clock. anyone who knows how to count for 5 skeletons with the name Skull?
Because with this command the commandblock gives a signal when it detects the first mob. and i need it to give a signal when it counts 5 mobs.
help please
4
thanks, i will try to use this along side with scoreboard. but at least now i know that there isn't a cm parameter or something.
Mojang should add that, that would make it a lot easier.
Mojang should add that, that would make it a lot easier.
c=5 means that it will detect the nearest 5 mobs. What you CAN do, is set up a redstone wire that is 5 long. Each time the command block detects 1 more skeleton, the redstone output from a comparator leading out of it increases by one. At the end of the redstone wire, you can set up all of your other things that need to happen.
help me please
BUMP
