1

Command Help

avrona 10/1/15 3:54 pm
253
10/2/2015 3:09 am
I am trying to create a treasure shop from my vanilla server and I need some help with a command.

I want it that when you press a button it will test for if there a no players in a certain area around the block. What is the command?
Posted by
avrona
Level 40 : Master Explorer
37

  Have something to say?

JoinSign in

5

avrona
10/02/2015 3:09 am
Level 40 : Master Explorer
Nevermind, works now.
1
ICEThat
10/02/2015 3:01 am
Level 20 : Expert Dragon
Use a one sided AND gate with the /test for command
1
avrona
10/02/2015 2:38 am
Level 40 : Master Explorer
One problem: the torch is on even without pressing the button. So when I press it and the torch is already on, nothing happens.
1
HeyItsPaul
10/02/2015 2:42 am
Level 6 : Apprentice Mage
Flip it first. edit: not really sure he knows how to get output, this was to response to the other one.

Button > Command Block > Comparator > ur output
1
Skitto493
10/01/2015 7:49 pm
Level 55 : Grandmaster Dragon
You can use a /testfor @a[r=10], then invert that signal. Basically, make a command block that DOES detect for players around it, and feed that redstone signal into a redstone torch so it turns off when a player is detected.
1

Welcome