Hi, I was reading this discussion and I thought it might be helpful! So I'm making a command block contraption, using scoreboard. I want the player to be able to right click, and something happens. The problem is, when that player right clicks, I want to give an item to the slot that they right clicked on. Would anyone know if and how I could do that? Thanks!
You will have to use the /replaceitem command only available in 1.8:
For example, placing a stick in slot 26 of a players' inventory:
EDIT: Sniped.
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Yes, though you will be limited to items that are applicable for that slot. Armor slots:
Minecraft-things: http://skylinerw.com
More Minecraft-things: https://sourceblock.net
Guides for command-related features (eventually moving to Source Block): https://github.com/skylinerw/guides
I primarily hang out in the /r/MinecraftCommands discord, where there's a lot of people that help with commands: https://discord.gg/QAFXFtZ
Their corresponding subreddit: https://www.reddit.com/r/MinecraftCommands/
Redstone is your friend.
It does everything you want.
Redstone is your friend.
It does everything you want.
how would you make them enchanted as well?
Diamond sword with sharpness IV (id 16) and fire aspect II (id 20)
System.out.println("Hello world")
Thx I was searching for this! thx
Hi, I was reading this discussion and I thought it might be helpful! So I'm making a command block contraption, using scoreboard. I want the player to be able to right click, and something happens. The problem is, when that player right clicks, I want to give an item to the slot that they right clicked on. Would anyone know if and how I could do that? Thanks!
I'm just guessing, would I do this:
I know I'm late to the party, but what about blocks? What would the command be to put blocks on something's head, such as an armor stand, for example?
can i put a full armor in one command?
ok but how to make the item cant be removed from the armor bar
How do you make it so it puts a block in a hotbar slot with a name and a place on tag i have tried the following command:
/replaceitem entity @a slot.hotbar.8 minecraft:stained_glass_pane 1 15 {display:{Name:"My old friend"}} {CanPlaceOn:["minecraft:gold_block"]}
I mean In the head but no one cant remove it
Ok, cool. Thanks for the reply, btw. As you can probably tell by the stats under my name, I don't visit this site, much.