1
Command block coding help
Hello guys!
I want to have a code with the following points:
-it gives the player a stick
-this stick has a costum name
-this stick has a costum enchantment
-it should replace the item in slot 8
Could someone help me with that? Im very bad in commands in minecraft.
Thx, and if you know some more, maybe could someone tell me how you can check if the player rightclick...
regards,
Marijn
I want to have a code with the following points:
-it gives the player a stick
-this stick has a costum name
-this stick has a costum enchantment
-it should replace the item in slot 8
Could someone help me with that? Im very bad in commands in minecraft.
Thx, and if you know some more, maybe could someone tell me how you can check if the player rightclick...
regards,
Marijn
2
Yeah! i have found it :
/replaceitem entity @p slot.hotbar.8 minecraft:stick 1 0 {display:{Name:"NAME"},ench:[{id:(ID),lvl:(LEVEL)}]}
It isn't so long as i thought, i need this code for an adventure map...
thx anyways
/replaceitem entity @p slot.hotbar.8 minecraft:stick 1 0 {display:{Name:"NAME"},ench:[{id:(ID),lvl:(LEVEL)}]}
It isn't so long as i thought, i need this code for an adventure map...
thx anyways
That is quite a big thing to ask. It's like you want somebody to work for you.
Try searching on google or YouTube (let's not forget about Yahoo :p ). If your code doesn't work, you can ask what you did wrong, but almost nobody will make an entire thing for you...
Good luck!
BTW to give you a tip: you can only test for people clicking things that have a click action.
e.g carrot on a stick, snowball, etc...
Try searching on google or YouTube (let's not forget about Yahoo :p ). If your code doesn't work, you can ask what you did wrong, but almost nobody will make an entire thing for you...
Good luck!
BTW to give you a tip: you can only test for people clicking things that have a click action.
e.g carrot on a stick, snowball, etc...
