Hello,
I tried this (code under this message) but it didn't work it give an error and idk how to fix it.
Thanks.
[doublepost=1586537169,1586526004][/doublepost]
I tried this (code under this message) but it didn't work it give an error and idk how to fix it.
Thanks.
Code:
command /enchant <player> [<text>]:
permission: rank.admin
permission message: &8[&f&lServer&8] &7No Permissions!
trigger:
if arg-2 is not set:
wait 3 ticks
open chest with 4 rows named "&5&lEnchanting" to arg-1
if arg-1's tool is any sword:
format slot 11 of arg-1 with enchanted book named "&b&lSharpness" to close then run [execute console command "enchant %arg-1% sharpness"]
if arg-1's tool is any pickaxe or any axe or any shovel:
broadcast "ddd"
if arg-1's held item is any helmet or any chestplate or any leggings or any boots:
broadcast "ddd"
if arg-2 is not set:
if arg-2 is "sharpness":
if level of sharpness of arg-1's tool is greater than 4:
send "Youre too high!" to arg-1
else:
enchant the tool of arg-1 with "sharpness %level of sharpness of %arg-1%'s tool + 1%" parsed as enchantment type
Code:
Line 74: Can't understand this expression: level of sharpness of (script.sk, line 74: enchant the tool of arg-1 with "sharpness %level of sharpness of %arg-1%'s tool + 1%" parsed as enchantment type')
Code:
enchant the tool of arg-1 with "efficiency %level of efficiency of arg-1' tool + 1%" parsed as enchantment type