Arqade Asked on May 27, 2021
Originally asked as the second question of Why is the /enchant command giving me an error when I go outside the normal level bounds?:
Also, is there a way to get stacked armor pieces and stacked tools using commands? I’m on an aternos server, so it might be hard to find wherever that file is to edit the world, but I don’t wanna have to do that. Can you use commands?
Although the /give
command enforces stacking restrictions, you can work around them by manually summoning item entities using the /summon
command. For example, the following command will summon a stack of 64 diamond pickaxes, which will remain stacked to 64 when you pick them up.
/summon minecraft:item ~ ~ ~ {Item:{id:"minecraft:diamond_pickaxe",Count:64b}}
The Count
value can be anything from 1 to 64 (stacks bigger than 64 are automatically split up into stacks of 64 when you pick up the item).
Note that this has some surprising results. For example, if you mine with a stack of tools, and use one tool up fully, then you are left with a stack of undamaged tools one fewer in quantity, but if you split the stack into two stacks, both retain their damage value.
Correct answer by pppery on May 27, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP