I'm thinking you mean like give a person like a diamond sword ànd a diamond helmet instead of what the guy above me said. There's a way to do this by summoning an activator rail on top of the commandblock with a commandblock minecart on top that'll run its command. This way you can add multiple commandblock minecarts and thus multiple items can be given with one commandblock. Here's the catch though: It's kinda difficult. So if you really want to give a player multiple items, I suggest using multiple commandblocks. Hope this was helpfull!
You can also summon multiple items riding one another at the player's location, but unfortunately that does not guarantee that particular players is the one to receive the items:
The variant with the riding items does work if you use the Owner tag.
Owner: If not an empty string, only the named player will be able to pick up this item, until it is within 10 seconds of despawning. Used by the give command (and can be set in a summon command) to prevent the wrong player from picking up the spawned item entity.
yes but will it work like on servers? i mean does the player have to place the chest to use it? i am trying to make a pvp arena to play with my friends and i want to give the player a pvp kit.
yes but will it work like on servers? i mean does the player have to place the chest to use it? i am trying to make a pvp arena to play with my friends and i want to give the player a pvp kit.
what if I want to make a murder mystery map and I want to give a random player two items? (the detective a bow and arrows) I can't string two command blocks with @r because one person would get the bow and another would get the arrows. and the items riding each other did not work when I copy pasted it into a command block.
what if I want to make a murder mystery map and I want to give a random player two items? (the detective a bow and arrows) I can't string two command blocks with @r because one person would get the bow and another would get the arrows. and the items riding each other did not work when I copy pasted it into a command block.
Tag your random person, give them the items based on the tag, then remove the tag
*sarcastic comment*
*disapproving look*
/give @p <item> <amount>
Hope this helps!
My avatar is not made by ThePiDay, but I'm too lazy to remove this link so it can stay he
What I mean is can I give more than one type of item to a player. for instance: /give @a minecraft:bone minecraft:water_bucket
*sarcastic comment*
*disapproving look*
ok thanks!
*sarcastic comment*
*disapproving look*
I know. Just a habit
*sarcastic comment*
*disapproving look*
Multiple /give commands would ensure the intended player gets their items.
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/
*sarcastic comment*
*disapproving look*
My avatar is not made by ThePiDay, but I'm too lazy to remove this link so it can stay he
yeah. Thanks anyways AJPirate.
*sarcastic comment*
*disapproving look*
This requires knowing the player's name prior, and player selectors are not parsed. If the map is intended to be distributed, then it cannot be used.
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/
He's saying that he wants this in the game. It's not currently in the game.
My avatar is not made by ThePiDay, but I'm too lazy to remove this link so it can stay he
Or you could give them a chest that when placed has the items in
/give @p chest 1 0 {BlockEntityTag:{Items:[{id:iron_axe,Count:1,Slot:0},{id:log,Count:16,Slot:10}]}
You can add other tags like name and enchantment after the count and slot. Also visit my blog I have a few tutorials on this
http://mcezminecraftez.weebly.com/
Wow. That's an awesome idea! Thanks so much!
*sarcastic comment*
*disapproving look*
yes but will it work like on servers? i mean does the player have to place the chest to use it? i am trying to make a pvp arena to play with my friends and i want to give the player a pvp kit.
You could /summon items with passenger items.
==Links==
𝐒𝐞𝐜𝐨𝐧𝐝 𝐂𝐡𝐚𝐧𝐧𝐞𝐥- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦- https://www.instagram.com/cowsdabest_yt/?hl=en
𝐓𝐰𝐢𝐭𝐭𝐞𝐫- https://twitter.com/cowsdabestyt
𝐃𝐢𝐬𝐜𝐨𝐫𝐝- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
Wait can you make multiple command blocks that give multiple items so you can activate that string of command blocks by using one command block?
(Sorry if that's confusing I don't know how to word it)
A one command block creation as they call it? You put a summon command inside a command block and it creates a bunch more?
==Links==
𝐒𝐞𝐜𝐨𝐧𝐝 𝐂𝐡𝐚𝐧𝐧𝐞𝐥- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦- https://www.instagram.com/cowsdabest_yt/?hl=en
𝐓𝐰𝐢𝐭𝐭𝐞𝐫- https://twitter.com/cowsdabestyt
𝐃𝐢𝐬𝐜𝐨𝐫𝐝- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!
what if I want to make a murder mystery map and I want to give a random player two items? (the detective a bow and arrows) I can't string two command blocks with @r because one person would get the bow and another would get the arrows. and the items riding each other did not work when I copy pasted it into a command block.
Tag your random person, give them the items based on the tag, then remove the tag
==Links==
𝐒𝐞𝐜𝐨𝐧𝐝 𝐂𝐡𝐚𝐧𝐧𝐞𝐥- https://www.youtube.com/channel/UCQYroXqdZtYBnyspneetBGA/featured
𝐈𝐧𝐬𝐭𝐚𝐠𝐫𝐚𝐦- https://www.instagram.com/cowsdabest_yt/?hl=en
𝐓𝐰𝐢𝐭𝐭𝐞𝐫- https://twitter.com/cowsdabestyt
𝐃𝐢𝐬𝐜𝐨𝐫𝐝- https://discord.gg/H2NfhpQ
==DISCLAIMER!==
Please credit me if you are going to use it in a video or a map!