None of this is working... the axes dont come into the gui and you dont get the axe thru /købaxe "number" and the damge part dont work either... please help... by the way... ther is tabs but the ``` part dont work on skunity
code_language.skript:
on damage of a player:
if damage is caused by a diamondaxe named "&3Tier &bI":
chance of 5%
apply poison to player for 5 seconds
if damge is caused by a diamond axe named "&3Tier &bII":
chance of 10%
apply poison to player for 5 seconds
command /axe:
trigger:
open chest with 1 row named "&3SPECIAL ØKSER" to player
format slot 3 of player with diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bI &7(&65K&7)" with lore "&7Poison chance: 5%" to close then run [make player execute command "/købaxe 1"]
format slot 5 of player with diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bII &7(&610K&7)" with lore "&7Poison chance: 10%" to close then run [make player execute command "/købaxe 2"]
format slot 4 of player with 166 named "&4Luk menu" to close
command /købaxe [<Text>]:
trigger:
if arg-1 is "1":
if player's balance is greater or equal to 5000:
give player 1 diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bI" with lore "&7Poison chance: 5%"
remove 5000 from player's balance
send "&c- $5000"
send "&aTillykke med din nye axe!"
else:
send "&cDu har ikke nok penge!"
if arg-1 is "2":
if player's balance is greater or equal to 10000:
give player 1 diamond axe of sharpness 4, unbreaking 3 named "&3Tier &bII" with lore "&7Poison chance: 10%"
remove 10000 from player's balance
send "&c- $10000"
send "&aTillykke med din nye axe!"
else:
send "&cDu har ikke nok penge!"
Last edited: