Basically what i'm trying to make is when a player will leave, it will create a piston that contains his inventory. My problem is that it only shows the inventory of the player that actually clicked the piston, not the one that left the server.
Here is my code:
[doublepost=1603552298,1603539859][/doublepost]bump
[doublepost=1603615326][/doublepost]bump
[doublepost=1603616375][/doublepost]bump
Here is my code:
Code:
on disconnect:
set {Stuff} to player's serialized inventory
on disconnect:
set block at player's location to piston
on right click on piston:
restore inventory of player from {Stuff}
set {_inv} to chest with 6 rows named "&fLoot"
set {_inv}'s serialized contents to {Stuff}
open {_inv} to player
on join:
loop all blocks in radius 1 of player:
if loop-block is piston:
set loop-block to air
[doublepost=1603615326][/doublepost]bump
[doublepost=1603616375][/doublepost]bump