Drop items when a player is dead

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?

1 Like

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.

1 Like

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)

2 Likes

Here

3 Likes

i think he asked if he can drop half, not all.

soo for this i think you need to wire a lifecycle ----> an item granter.
lifecycle settings: when player knocked out.

ohh, i missed you can only remove by -10000 or something not 50%

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.