if {inventoryclearer::%player's uuid%} is none:
make console execute "clear %player%"
set {inventoryclearer::%player's uuid%} to 1```
The point of this is when a person who joins their inventory gets cleared and then the inventoryclearer variable is set to 1 so when they rejoin it doesn't get cleared.
But this really simple code doesn't work. There are no errors but I believe the `is none` part of the code is where it goes wrong. But I can't really seem to figure out any way to fix it
#Clearing inventory without deleting playerdata
1 messages · Page 1 of 1 (latest)
- you can use
clear the player's inventorynot console
- are you tryna do this for first join or you prefer this way
Well first join just means i'll clear an empty inventory since they've never played. So i need to do it on join
And i'll change that
then use is not set
instead of is none
alright