So, I have been trying to make a command that does something when you press a certain button. The command works (to my knowledge) but it doesn't also? Anyways, here is the command- execute if block -27 7 5 minecraft:stone_button[powered=true,facing=east] run give @p minecraft:acacia_boat 1
So this is only a tester to see if it works and i have only seen it work a few times but not in the settings I want. One had a repeating command block instead of regular while two is me pressing a button on the command block then quickly pressing desired button. I don't know if I have to connect it to redstone or do I need another command of sorts?
I apologise if this made no sense but feel free to ask what i mean haha, thanks!
Well I am starting with smaller steps right now (this being one of them) but I am basically wanting to press a certain button and be teleported to a certain place. I know there is a sign thing you can do but I want to get this knocked out so I can toy with different things
Ok cool, Tysm! I will try this when I get a bit more free time. I just have 2 questions about the functions command and process but you don't have to answer it though! 1- Do the functions command require data packs
2- If yes, is there a way to get them to work on a Mac(Ver 10.13.3+)
The game doesn't seem to be finding them? It finds the folders they are in but doesn't find the file itself (usually comes up with "file:[NameofFile]"). But none the less, Thank you heaps for your help!!
So, I have been trying to make a command that does something when you press a certain button. The command works (to my knowledge) but it doesn't also? Anyways, here is the command- execute if block -27 7 5 minecraft:stone_button[powered=true,facing=east] run give @p minecraft:acacia_boat 1
So this is only a tester to see if it works and i have only seen it work a few times but not in the settings I want. One had a repeating command block instead of regular while two is me pressing a button on the command block then quickly pressing desired button. I don't know if I have to connect it to redstone or do I need another command of sorts?
I apologise if this made no sense but feel free to ask what i mean haha, thanks!
First of all, the command is correct.
Second, what is your desired result?
I'm a programmer. I use C/C++, BASIC, Assembly, and Python. If i sound too technicial, that's because it's the way i think.
My Suggestions
Well I am starting with smaller steps right now (this being one of them) but I am basically wanting to press a certain button and be teleported to a certain place. I know there is a sign thing you can do but I want to get this knocked out so I can toy with different things
There are many ways to do that:
I'm a programmer. I use C/C++, BASIC, Assembly, and Python. If i sound too technicial, that's because it's the way i think.
My Suggestions
Ok cool, Tysm! I will try this when I get a bit more free time. I just have 2 questions about the functions command and process but you don't have to answer it though! 1- Do the functions command require data packs
2- If yes, is there a way to get them to work on a Mac(Ver 10.13.3+)
The game doesn't seem to be finding them? It finds the folders they are in but doesn't find the file itself (usually comes up with "file:[NameofFile]"). But none the less, Thank you heaps for your help!!