1

Testfor command need help!!!

Dark_Alpha_'s Avatar Dark_Alpha_7/29/15 10:03 am
1 emeralds 579 4
7/29/2015 4:24 pm
Dark_Alpha_'s Avatar Dark_Alpha_
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_'s Avatar
Dark_Alpha_
Level 28 : Expert Pig
22

Create an account or sign in to comment.

4

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

Website

© 2010 - 2024
www.planetminecraft.com

Welcome