im making a grave datapack and im trying to make it so that the player's inventory gets copied to a chest that anyone can open/close
right now i just have tick/load
[30m#load
[35mtellraw [36m@a [33m{[32m"color"[34m:[32m"yellow"[34m,[32m"text"[34m:[32m"Thanks for using Everhaul: Graves!"[33m}
[35mtellraw [36m@a [33m{[32m"color"[34m:[32m"yellow"[34m,[32m"text"[34m:[32m"Best intended to use Everhaul! with this simutaneously!"[33m}
[35mplaysound [33mminecraft:block.note_block.chime [0mmaster [36m@a [32m~ ~ ~ 10000000000000000
[35mscoreboard [34mobjectives add [0mdeaths deathCount deaths
[35mscoreboard [34mobjectives add [0mid dummy id
[35mgamerule [0mkeepInventory true
[30m#tick
[35mexecute [34mas [36m@a [34munless score [36m@s [0mid [34m= [36m@s [0mid [34mstore result score [36m@s [0mid [34mrun [35mscoreboard [34mplayers add [36m#id_holder [0mid [32m1
[35mexecute [34mas [36m@a[33m[[37mscores[34m=[35m{[37mdeaths[34m=[32m1[35m..}[33m] [34mat [36m@s [34mrun [35mfunction [33mgrave:gravelogic/player_died
[35mexecute [34mas [36m@e[33m[[37mtype[34m=[33mminecraft:interaction[34m, [37mtag[34m=[32mgrave[33m] [34mat [36m@s [34mrun [35mfunction [33mgrave:gravelogic/collect_items
I was following a tutorial but it doesnt use chests, and all the other ones are outdated & old