function elystra(p: player):
set {_random} to a random integer between 1 and 1
if {_random} = 1:
clear inventory of {_p}
wait 1 tick
equip {_p} with 1 diamond helmet of protection 3
equip {_p} with 1 iron leggings of protection 3
equip {_p} with 1 diamond boots of protection 3
equip {_p} with 1 elytra of protection 3
give {_p} 1 diamond sword of sharpness 3
command /elytra [<player>]:
trigger:
if arg is not set:
elystra(player)
I've tried everything jsut for it to result to a fail
remove all active potion effects from player this didint work
console command "effect clear %player%" didnt work please help me
set {_random} to a random integer between 1 and 1
if {_random} = 1:
clear inventory of {_p}
wait 1 tick
equip {_p} with 1 diamond helmet of protection 3
equip {_p} with 1 iron leggings of protection 3
equip {_p} with 1 diamond boots of protection 3
equip {_p} with 1 elytra of protection 3
give {_p} 1 diamond sword of sharpness 3
command /elytra [<player>]:
trigger:
if arg is not set:
elystra(player)
I've tried everything jsut for it to result to a fail
remove all active potion effects from player this didint work
console command "effect clear %player%" didnt work please help me