death_script: type: world events: on player death: - determine ]> - flag player [loot:nether_star] on player respawn: - if player.has_flag[loot:nether_star] - give minecraft:nether_star