1

Testfor command need help!!!

Dark_Alpha_ 7/29/15 10:03 am
611
7/29/2015 4:24 pm
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
Posted by
Dark_Alpha_
Level 28 : Expert Pig
22

  Have something to say?

JoinSign in

4

Dark_Alpha_
07/29/2015 4:24 pm
Level 28 : Expert Pig
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.
1
Skitto493
07/29/2015 12:08 pm
Level 55 : Grandmaster Dragon
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.
1
Dark_Alpha_
07/29/2015 11:35 am
Level 28 : Expert Pig
help me please
1
Dark_Alpha_
07/29/2015 10:58 am
Level 28 : Expert Pig
BUMP
1

Welcome