BlueCommander
  • 𝐇𝐨𝐦𝐞
  • 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐚𝐧𝐝 𝐃𝐚𝐭𝐚 𝐏𝐚𝐜𝐤𝐬
    • 𝐌𝐚𝐢𝐧 𝐒𝐞𝐥𝐞𝐜𝐭𝐢𝐨𝐧 1 >
      • Chest Transportation
      • Damage Icons
      • Bonsai Pots
      • Christmas Animals
      • Blood Magic
      • Be a Villager
      • Vein Miner
      • Tree Capitator
      • Guns
      • More TNT
      • More Enchantments
      • Player Head Tricks
      • Christmas Food
      • Entity Cloning
      • Army Builder
      • Be a Magma Cube
    • 𝐌𝐚𝐢𝐧 𝐒𝐞𝐥𝐞𝐜𝐭𝐢𝐨𝐧 2 >
      • World Loader
      • Gravity on any block
      • Drinks
      • Outside World
      • Halloween Weapons
      • Health Tags
      • Mazes
      • MC Improvements
      • Temmie Boss
      • More Plants
      • More Swords
      • Bedwars Items
      • Laser Beams
      • Jade Ore
      • Paintball Gun
      • Halloween Survival
    • 𝐁𝐥𝐢𝐧𝐠𝐄𝐝𝐢𝐭 𝐏𝐥𝐮𝐠𝐢𝐧𝐬 >
      • Top Soil
      • Forester
      • Water Flood
      • Patterns
      • Region Info
      • BlingEdit Commands
    • 𝐍𝐨𝐭 𝐎𝐧 𝐘𝐨𝐮𝐭𝐮𝐛𝐞 >
      • Crates
      • More Structures
      • Advanced UHC
      • Deco Sandwitches
      • Be Herobrine
      • Morphing >
        • Creeper Addon
      • Flamethrower
      • Arrow Effects
      • Block Pets
      • BlueFun
      • Seismic Axe
  • 𝐑𝐞𝐬𝐨𝐮𝐫𝐜𝐞𝐬
    • Introduction to Resources
    • ​
    • 𝐁𝐞𝐠𝐢𝐧𝐧𝐞𝐫𝐬
    • Command Block Basics >
      • Introduction
      • How Commands Work
      • Conditional Commands
      • Coordinates
      • Selectors
      • Tab Completion
      • Data Tags
    • Command Usages >
      • Introduction
      • /tell
      • /kill
      • /tp
      • /teleport
      • /replaceitem
      • /summon
      • /effect
      • /data
      • /setblock
      • /give
      • /particle
      • /playsound
      • /execute
      • /clone
      • /fill
      • /tag
      • /team
      • /scoreboard
    • ​
    • 𝐁𝐚𝐬𝐢𝐜
    • Command Creations >
      • Introduction
      • Arrow Particles
      • Lock Chests
      • Grappling Hook
      • Blocks/Items On Head
      • Custom Pets
      • Custom Portals
      • Lava + Water Swapped
    • ​
    • 𝐀𝐝𝐯𝐚𝐧𝐜𝐞𝐝
    • Command Creations >
      • Introduction
      • Chairs
      • Randomly Spawning Structures
      • RPG Villagers
      • Block Durability
      • Pathfinding AI
  • 𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐨𝐫𝐬
    • Hypixel Skyblock
    • Kits Maker
    • Custom Blocks Generator
    • Floor Crafting Generator
    • Minecraft Heads
  • Hypixel Skyblock Remake
  • 𝐎𝐭𝐡𝐞𝐫 𝐌𝐚𝐩𝐬
    • Don't Dig Straight Down
    • Levitation Parkour
    • 1v1 Pvp
  • 𝐂𝐨𝐦𝐦𝐢𝐬𝐬𝐢𝐨𝐧𝐬
Previous
For 1.13-1.16 Minecraft Java Edition

/replaceitem

In this tutorial, I will be showing you how to use the /replaceitem command along with showing some example commands.

/replaceitem block <x> <y> <z> <slot> <item> [amount]
OR /replaceitem entity <selector> <slot> <item> [amount]

The /replaceitem command is used to add items or blocks in a specific place in a specific entity or tile block (EG chest, hopper etc). It also has two different versions one for the adding it to a block, one for the entities. They both with very similarly. 

First the block mode. After putting 'block' you then put in your coordinates, these can be normal ones of relative just make sure the coordinates lead to a block that has a container which can have items but inside it. Then for slot this is referring to where it should put it, eg the slot in the chest.

The best was to find what you want is by using Tab Completion but if you are using 'block' you will be wanting slot.container.0 as this is what puts it in a specific slot in the container. All the other different type of slots are for entities. The 0 is what slot, not when counting what slot you want it will be one less in the command as the first slot is 0. slot.container works on all containers, so hoppers too for example.

Then you put in the item. Your can optionally also put in amount too. If you want data tags on your replaceitem you can add it straight after item. Here is an example below.
Picture
Picture
Then we have the entity mode, it works similarly although instead of putting in coordinates you put in a selector. Then you put the slot like you do for 'block' however you will never use slot.container. Instead use tab to see all of the options but if you want something in their inventory is it slot.hotbar for their first 9 slots then slot.inventory for the rest but with entity you can also do a lot more such as amour slots, horse slots (if a horse), players enderchest slots and more!

Then put your item, amount etc like with block.

Here is some examples using entity:
/replaceitem entity @p slot.hotbar.8 minecraft:stone 64
Gives the nearest player a stack of stone.

/replaceitem entity BluePvps slot.enderchest.0 minecraft:acacia_boat 1 0
Puts an acacia boat in my first enderchest slot.
Next
Powered by Create your own unique website with customizable templates.
  • 𝐇𝐨𝐦𝐞
  • 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐚𝐧𝐝 𝐃𝐚𝐭𝐚 𝐏𝐚𝐜𝐤𝐬
    • 𝐌𝐚𝐢𝐧 𝐒𝐞𝐥𝐞𝐜𝐭𝐢𝐨𝐧 1 >
      • Chest Transportation
      • Damage Icons
      • Bonsai Pots
      • Christmas Animals
      • Blood Magic
      • Be a Villager
      • Vein Miner
      • Tree Capitator
      • Guns
      • More TNT
      • More Enchantments
      • Player Head Tricks
      • Christmas Food
      • Entity Cloning
      • Army Builder
      • Be a Magma Cube
    • 𝐌𝐚𝐢𝐧 𝐒𝐞𝐥𝐞𝐜𝐭𝐢𝐨𝐧 2 >
      • World Loader
      • Gravity on any block
      • Drinks
      • Outside World
      • Halloween Weapons
      • Health Tags
      • Mazes
      • MC Improvements
      • Temmie Boss
      • More Plants
      • More Swords
      • Bedwars Items
      • Laser Beams
      • Jade Ore
      • Paintball Gun
      • Halloween Survival
    • 𝐁𝐥𝐢𝐧𝐠𝐄𝐝𝐢𝐭 𝐏𝐥𝐮𝐠𝐢𝐧𝐬 >
      • Top Soil
      • Forester
      • Water Flood
      • Patterns
      • Region Info
      • BlingEdit Commands
    • 𝐍𝐨𝐭 𝐎𝐧 𝐘𝐨𝐮𝐭𝐮𝐛𝐞 >
      • Crates
      • More Structures
      • Advanced UHC
      • Deco Sandwitches
      • Be Herobrine
      • Morphing >
        • Creeper Addon
      • Flamethrower
      • Arrow Effects
      • Block Pets
      • BlueFun
      • Seismic Axe
  • 𝐑𝐞𝐬𝐨𝐮𝐫𝐜𝐞𝐬
    • Introduction to Resources
    • ​
    • 𝐁𝐞𝐠𝐢𝐧𝐧𝐞𝐫𝐬
    • Command Block Basics >
      • Introduction
      • How Commands Work
      • Conditional Commands
      • Coordinates
      • Selectors
      • Tab Completion
      • Data Tags
    • Command Usages >
      • Introduction
      • /tell
      • /kill
      • /tp
      • /teleport
      • /replaceitem
      • /summon
      • /effect
      • /data
      • /setblock
      • /give
      • /particle
      • /playsound
      • /execute
      • /clone
      • /fill
      • /tag
      • /team
      • /scoreboard
    • ​
    • 𝐁𝐚𝐬𝐢𝐜
    • Command Creations >
      • Introduction
      • Arrow Particles
      • Lock Chests
      • Grappling Hook
      • Blocks/Items On Head
      • Custom Pets
      • Custom Portals
      • Lava + Water Swapped
    • ​
    • 𝐀𝐝𝐯𝐚𝐧𝐜𝐞𝐝
    • Command Creations >
      • Introduction
      • Chairs
      • Randomly Spawning Structures
      • RPG Villagers
      • Block Durability
      • Pathfinding AI
  • 𝐆𝐞𝐧𝐞𝐫𝐚𝐭𝐨𝐫𝐬
    • Hypixel Skyblock
    • Kits Maker
    • Custom Blocks Generator
    • Floor Crafting Generator
    • Minecraft Heads
  • Hypixel Skyblock Remake
  • 𝐎𝐭𝐡𝐞𝐫 𝐌𝐚𝐩𝐬
    • Don't Dig Straight Down
    • Levitation Parkour
    • 1v1 Pvp
  • 𝐂𝐨𝐦𝐦𝐢𝐬𝐬𝐢𝐨𝐧𝐬