Home›Bedrock›Addons›Replaceitem X2
Replaceitem X2
AddonsBedrock

Replaceitem X2

Bedrock add-on listed for Minecraft 26.x. Download on the author's site.

by cript0panda · on CurseForge

⬇ Download on CurseForge
Project Animation

Welcome To Criptonain Industries
by Cript0 panda

it replaces items in inventorys/containers with more passion then normal /replaceitem
1. The Command Syntax
 
text

/scriptevent my:replaceitem <newItem> <slot> <target> <location> <amount|objective> [Properties] 

2. Argument Guide
 

 
3. Usage Examples
 
A. Basic Swap (Empty Slot Only)
Place a torch in slot 0 of a chest at 10, 64, 10, but only if the slot is empty:
/scriptevent my:replaceitem minecraft:torch 0 air 10,64,10 1
 
B. Upgrade System (Targeted Replace)
Turn a player's wooden_sword in slot 0 into a stone_sword:
/scriptevent my:replaceitem minecraft:stone_sword 0 minecraft:wooden_sword player 1
 
C. Scoreboard Shop (Dynamic Amount)
Give the player a number of gold ingots equal to their "gold_balance" score:
/scriptevent my:replaceitem minecraft:gold_ingot 0 air player gold_balance
 
D. Advanced Item (Using Properties)
Replace an empty slot with a named, enchanted sword. Note the pipes | used to skip empty sections:
/scriptevent my:replaceitem minecraft:iron_sword 0 air player 1 "Hero Sword" | "Legacy Blade" |true|none|none|none|sharpness:3
 

 
4. Special Logic Features
  1. Stacking: If the slot already contains the <newItem>, the script won't replace it; it will simply add the amount to the existing stack (up to 64).
  2. Coordinates: When using coordinates, don't use spaces between the numbers (use 10,64,10 not 10, 64, 10).
  3. Safety: If the <target> doesn't match what is currently in the slot, the script does nothing. This prevents accidentally deleting a player's valuable items.

NOTE -------------- READDDDD

DO NOT PUT SPACES!!! WHEN Sepreating args Excluding 

(<newItem> <slot> <target> <location> <amount|objective>)

INCORRECT:

| true | slot | minecraft:dirt, minecraft:grass | minecraft:gold_block, minecraft:diamond_block | sharpness:3, unbreaking:3

CORRECT:

|true|slot|minecraft:dirt,minecraft:grass|minecraft:gold_block,minecraft:diamond_block|sharpness:3,unbreaking:3

 

*can break minecraft stack limits such as 64x iron_swords

 

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Bedrock addons & mods walks through it step by step.

Replaceitem X2 is a free Minecraft Bedrock addon. Compatible with Minecraft 26.10. Downloaded 44 times (via CurseForge). Download it and open it directly in the game.

Explore more