How to make items despawn after death?

ShrekB01

New member
Joined
Sep 3, 2023
Messages
4
I tried alot of combinations but neither of them work, I hope some of you know how to do that :)
 

QasimZed

New member
Joined
Aug 11, 2023
Messages
18
Do you want the item to not drop at all or despawn after a while?
 

ShrekB01

New member
Joined
Sep 3, 2023
Messages
4
maybe despawn after few seconds, but if you dont know 1 option is great too
 

Ezolile

Member
Joined
May 19, 2023
Messages
42
You could when player dies wait few seconds, select all entities and teleport them to void or lava (lava is better). This can cause few problems if you have other entities in game that you need.
 

veddnt

Active member
Joined
Jun 2, 2023
Messages
190
despawn? or they just shouldn't drop at all?
If you don't want them to fall there is a setting in player action.
If you want to despawn after a certain time period, maybe storing the death location to "%player%_death-location" and then select entity near location, delete. Tho this method isn't something i would suggest doing in a game.
 

ShrekB01

New member
Joined
Sep 3, 2023
Messages
4
despawn? or they just shouldn't drop at all?
If you don't want them to fall there is a setting in player action.
If you want to despawn after a certain time period, maybe storing the death location to "%player%_death-location" and then select entity near location, delete. Tho this method isn't something i would suggest doing in a game.
Where can you find player action settings?
 

Ophelios

New member
Joined
Sep 3, 2023
Messages
9
I tried to disable keep inventory, but the problem is when I die I still drop items.
You have to enable it. You won't drop any items and you'll keep the inventory. Make it on join for the most efficiency. Also, don't forget to set items if you're making a game such as a Kit PVP where they're not supposed to drop items, but also not supposed to keep them.
 

veddnt

Active member
Joined
Jun 2, 2023
Messages
190
yeah you can also just cancel death event then clear inv and then kill setting %killer% = %damager%
 
Top