Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.
If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!
Now, what are you waiting for? Join the community now!
You can always check out skUnity Downloads for downloads and any other information about Skript!
But I want that if a player dies, save the items in the player's inventory.code_language.skript:on death: clear drops
This is a command in-game: /gamerule keepInventory trueBut I want that if a player dies, save the items in the player's inventory.
on death of player:
clear drops
set {inv::%victim%::*} to items in player's inventory
on respawn: #is this an event?
add {inv::%player%::*} to player's inventory
Not all of the players.This is a command in-game: /gamerule keepInventory true
on death of player:
if victim have a blaze rod named "Mentőrúd":
remove 1 blaze rod named "Mentőrúd" from the victim
don't drop anything
on death of player:
add drops to victim's inventory
remove drops from the drops
Player don't get the dropped items@PantherBoy
code_language.skript:on death of player: add drops to victim's inventory remove drops from the drops
So , try in this way:Player don't get the dropped items
on death of player:
set {_drops::*} to drops
remove drops from the drops
add {_drops::*} to victim's inventory
sameSo , try in this way:
code_language.skript:on death of player: set {_drops::*} to drops remove drops from the drops add {_drops::*} to victim's inventory
2 enchanted golden apples and blaze rodI think that's the same problem of the "on drop" event.
Can you add "broadcast %{_drops::*}%" and post here the output?
on death of player:
set {_drops::*} to drops
remove drops from the drops
wait 5 ticks
add {_drops::*} to victim's inventory