was thinking that there can be a command that can edit an entity's inventory. ( if the entity in question can have inventory space )
it can go as something like :
/inv
if you choose replicate it would then be :
/inv replicate
example : /inv @p replicate @e[name=Bob] slot.weapon.mainhand 1
what this means is that any nearby player would then replace any entity that's named Bob's main hand with what the player is holding in their main hand.
if it's written with the save then it would be :
/inv save
example : /inv @p save slot.armor.head 1 inv:totohelm
what this would do is that any nearby player would have their helmet slot saved, like a structure block or structure command, it can be saved and be used across worlds.
also like the structure block or command, it's normally written as "inv:", and can be changed.
spaces would not work so underscores or not using spaces at all would be highly suggested.
if it was then written with load then it'd be:
/inv load
example : /inv @p load inv:totohelm
paired with the previous syntax, it loads any saved inventory data that are saved within the memory of the world or from the disc.
Please sign in to leave a comment.
2 Comments