1

How do you get a full stack of weapons in 1.8 with commands

YoshiCraft1234's Avatar YoshiCraft12343/15/15 9:17 pm
1 emeralds 766 5
3/16/2015 4:28 pm
Jmal116's Avatar Jmal116
I'm working on a PvP map, and I'm trying to use commands so I can get a full stack of 64 for swords and bows, but unlike 1.7, when I use the /give command, I get a full stack. In 1.8, I don't get a full stack, it just fills my inventory with the item I need. How do you get a stack of 64 with commands in 1.8? (The faster you answer, the faster my map will get done. Please help )
Posted by YoshiCraft1234's Avatar
YoshiCraft1234
Level 12 : Journeyman Architect
1

Create an account or sign in to comment.

5

1
03/16/2015 2:24 am
Level 5 : Apprentice Explorer
SirSamFFF
SirSamFFF's Avatar
Swords and bows and other tools are not stackable
1
03/16/2015 6:57 am
Level 17 : Journeyman Hunter
Neptune_Sage
Neptune_Sage's Avatar
But they can be stacked, dont know how to do son in 1.8 but in 1.7 it worked fine.
1
03/15/2015 11:13 pm
Level 12 : Journeyman Architect
YoshiCraft1234
YoshiCraft1234's Avatar
But when I do it for weapons, I don't get a full stack. I just fill my inventory with the item I need. (try it for an iron sword with an empty inventory)
1
03/16/2015 4:28 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
Ah, I see the issue, sorry about the misread

To force the game to stack items, use the /replaceitem command. It's a bit more complicated, but for players it works like this:/replaceitem entity @p slot.hotbar.0 diamond_sword 64 [data] [dataTag]
This will put 64 swords in the first inventory slot. The only thing to beware of is that if the player has something else in their first slot when you run this command, it will be removed completely, with no way to get it back.
1
03/15/2015 9:35 pm
Level 33 : Artisan Engineer
Jmal116
Jmal116's Avatar
The /give command's syntax is this:/give <player> <item> [amount] [data] [dataTag]
So if you want to give a player a full stack, just put 64 in the [amount] slot:/give @p stone 64
Planet Minecraft

Website

© 2010 - 2024
www.planetminecraft.com

Welcome