Привет всем! Мне нужно с помощью командных блоков сделать так, чтобы на координатах, где игрок умер, появлялся сундук или вагонетка с сундуком, а его инвентарь перемещался туда, без использования модов, плагинов и датапаков.
Setup: scoreboard objectives add deaths deathCount gamerule keepInventory true In repeating and chain command blocks (or datapack tick function) execute as @a[scores={deaths=1..}] at @s run setblock ~ ~ ~ chest execute as @a[scores={deaths=1..}] at @s run data modify block ~ ~ ~ Items set from entity @s Inventory execute as @a[scores={deaths=1..}] at @s run clear @s execute as @a[scores={deaths=1..}] at @s run scoreboard players set @s deaths 0