217. Store items in data storage. [Minecraft Map Making]

Subscribers:
3,860
Published on ● Video Link: https://www.youtube.com/watch?v=1VfgO9kpMvs



Minecraft
Game:
Minecraft (2011)
Duration: 9:41
83 views
15


Ep217. Saving items as data and recovering them later.

Java Version: 1.19

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ

Join the CoppitCraft server that I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Commands used:

Player to Storage:
IUN: data modify storage id:data heldItem set from entity @p Inventory[{Slot:0b}]
CUA: data modify storage id:data heldItem.Slot set value 1b

Storage to Container:
IUN: data modify block ~1 ~ ~ Items[] set from storage id:data heldItem

Container to Player:
IUN: item replace entity @p container.0 from block ~-2 ~ ~ container.0

Directly set storage:
IUN: data modify storage id:data heldItem set value {Slot:0b, id:"minecraft:command_block", Count:2b, tag:{BlockEntityTag:{Command:"say Ho"}}}







Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 182,428 views spread across 865 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.