In the lucky block gamemode, when a player loses all their health the player drops all items and resources he/she has collected. I want to incorporate this mechanic into my game.
Thing is, in the settings tab I can only see an option for deleting all resources and items, not dropping them. Is there any way to use devices/mechanics to do this?
I don’t know if you can drop half of a player’s diamonds but you can use a make it so that a player earns a specific amount of -insert item here- when they knock out. Idk if that was what you wanted.
you could use knockout managers, checkers, and repeaters, let me explain…
you use multiple checkers to see what the player has and fire them all at once combined with repeaters that repeat the task of checking and with every item found you activate a different knockout manager (this strategy might cause a lot of lag because you are finding all the possibilities of items that are in the players inventory) the repeaters should be activated on a player knocked out (this is just an idea and might not work)