TransWikia.com

/give multiple items command

Arqade Asked by AlexJaynMF on February 9, 2021

Is there a way to give a player multiple items at the same time? Or you can only do one at a time and type the same thing but only change the item?

One Answer

According to the Minecraft wiki, there is no way to create multiple types of items using one /give command. You can spawn falling command blocks to achieve a very similar effect, but the command is so long that it can't be started from chat. You might be able to put this command in a command block and use setblock to trigger it.

summon falling_block ~ ~2 ~ {Time:1,BlockState:{Name:"command_block"},TileEntityData:{auto:1,Command:"/give @a diamond 1"},Passengers:[{id:"armor_stand",Health:0,Passengers:[{id:"falling_block",Time:1,BlockState:{Name:"command_block"},TileEntityData:{auto:1,Command:"/give @a gold_ingot 1"},Passengers:[{id:"armor_stand",Health:0,Passengers:[{id:"falling_block",Time:1,BlockState:{Name:"command_block"},TileEntityData:{auto:1,Command:"fill ~ ~-2 ~ ~ ~ ~ air"}}]}]}]}]}

Answered by Nathan Goller-Deitsch on February 9, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP