I am new to script and I tried to make a custom chestplate but I have no idea how to do this.
I still need the normal leather chestplate available but I don't know how to do that.
this is the code I have but it doesn't work
reload errors
I've tried searching the docs but not the forms
I still need the normal leather chestplate available but I don't know how to do that.
this is the code I have but it doesn't work
Code:
on inventory close:
send "&c&l[DEBUG, %player%]&f&l inventory close detected" to console
player's gamemode is survival
player is wearing leather tunic with the data value 5:
send "&c&l[DEBUG, %player%]&f&l chestplate detected" to console
allow flight to event-player
player's gamemode is survival
player is not wearing leather tunic with the data value 5:
disallow flight to event-player
send "&c&l[DEBUG, %player%]&f&l no chestplate" to console
reload errors
Code:
[15:58:41 ERROR]: [Skript] Can't compare a player with 'wearing leather tunic with the data value 5' (chestplate of air.sk, line 4: player is wearing leather tunic with the data value 5:')
[15:58:41 ERROR]: [Skript] Can't compare a player with 'wearing leather tunic with the data value 5' (chestplate of air.sk, line 8: player is not wearing leather tunic with the data value 5:')
I've tried searching the docs but not the forms
Last edited: