16 lines
955 B
Mcfunction
16 lines
955 B
Mcfunction
# Desc:
|
|
# Called by:
|
|
# Datapack made by FieryHammer
|
|
|
|
# Summon two dummy items
|
|
summon minecraft:item ~ ~2 ~ {Item:{id:"minecraft:stone", Count: 1b}, Tags:["left_item"], PickupDelay:40}
|
|
summon minecraft:item ~ ~2 ~ {Item:{id:"minecraft:dirt", Count: 1b}, Tags:["right_item"], PickupDelay:40}
|
|
|
|
# Create a copy of the items in the Merger onto dummy items
|
|
data modify entity @e[tag=left_item, limit=1] Item set from block ~ ~1 ~ Items[0]
|
|
data modify entity @e[tag=right_item, limit=1] Item set from block ~ ~1 ~ Items[1]
|
|
|
|
# Copy the name and damage from the left item
|
|
data modify entity @e[tag=new_item, limit=1] Item.tag.display set from entity @e[tag=left_item, limit=1] Item.tag.display
|
|
data modify entity @e[tag=new_item, limit=1] Item.tag.Damage set from entity @e[tag=left_item, limit=1] Item.tag.Damage
|
|
data modify entity @e[tag=new_item, limit=1] Item.tag.BlockEntityTag set from entity @e[tag=left_item, limit=1] Item.tag.BlockEntityTag |