so ive been working on a mc world on better together and ive been trying to be able to make keys using commands. I.E. levers only being able to be placed on certain blocks. however i cant get the command to work it says something like ERROR: } missing line 1 column 2 or something like that. if anyone knows how i can get it to work please help.
so ive been working on a mc world on better together and ive been trying to be able to make keys using commands. I.E. levers only being able to be placed on certain blocks. however i cant get the command to work it says something like ERROR: } missing line 1 column 2 or something like that. if anyone knows how i can get it to work please help.
give @s lever 1 0 "can_place_on":{"blocks":["<Your block>"]}
(Not sure if this is correct, need to check.)
It's /give @s lever 1 0 {"can_place_on":{"blocks":["Block of choice"]}}