Not right now for bedrock. You could in theory use a fishing pole for that.
I use items but instead of right clicking I require that you throw the item to activate it. Its sometimes more legit than a right click but for some things I would enjoy having the right click. Anyways...
Also you might be able to do it with addons or UME but Im not a good resource for that. At least this will allow you to remotely activate a command block that you choose
Hello!
I'm making a minigame on Bedrock for my friends, but to be able to join the fun I have to constantly go from the control panel to my area,
So I was wondering if it was possible to make a sort of remote.
I'll use a nether star as an example item.
Let's say that I'm not at the control panel but I need to set a wall to a different colour.
I right-click the air with the nether star and suddenly the wall's different.
Is there some form of testfor command that checks if anybody right-clicks with a nether star,
then activates another command block to do something else?
Not right now for bedrock. You could in theory use a fishing pole for that.
I use items but instead of right clicking I require that you throw the item to activate it. Its sometimes more legit than a right click but for some things I would enjoy having the right click. Anyways...
/execute @e[name=changeColor] ~~~ setblock ~~~ redstone_block
Then follow it with a chain command
/kill @e[name=changeColor]
Also you might be able to do it with addons or UME but Im not a good resource for that. At least this will allow you to remotely activate a command block that you choose
Thanks for the reply!
I cant' figure out what the first set of tildes is for.
Is it where it's searching for the dropped item? And if so, are you able to set a multiple-block area instead of just one?
The first setvof tildas just allow you to perform a command in relative to an entities position. It's not too important for this application.
What do you mean by setting up a multiple block area?
Sorry for such a late reply, I forgot about this thread.
By set up a multiple block area I meant instead of just searching one block for the item,
it searches an area set up with multiple coordinates.
If the tildes aren't important should I put them in as tildes or completely remove them?
I still don't fully understand.
The first set of tildas are what is important
The second set of tildas are part of the redstone block command
/execute @e[name=changeColor] ~~~ setblock 0 68 0 redstone_block
would detect an item named changeColor when you throw it and then set a redstone block at 0 68 0
I don't know what you mean by testing for a multiple block area but what I said solves your original question unless Im missing something
The searching in a multiple block area doesn't matter, I just thought that the first set was checking one specific block for the dropped item,
and so assuming that that was the case I asked if it was possible to check the entire playing area instead of just a single spot.
Thanks for the help!
Ok I got you. What those first set of tildas do is execute/perform the command at a position relative to an entities coordinate.
/execute @e[type=player] ~~10~ tp @s 0 60 0
would teleport any entities located 10 blocks above the player's current position to 0 60 0
/execute @e[type=player] 300 90 300 tp @s 0 60 0
would teleport any player located at 300 90 300 to the location 0 60 0
Then just for fun
/execute @e[type=player] ~~-1~ detect grass 0 tp @s 0 60 0
would teleport any player that has a block of grass 1 below them at their feet to the location 0 60 0