Minecraft Version:1.8
---
Full Code:
the variables are just what leve your weapons are in
Is there a way to give custom durability to tools in GUI/menus? I've been looking all over the docs and forums but just can't seem to find a solution.
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
# Edit
This works but I cant use a variable to represent the number?
that doesn't work?
---
Full Code:
code_language.skript:
command /mmenu:
trigger:
open chest with 5 rows named "Main menu" to player
# Assault class #
format slot 0 of player with paper named "Assault" to close
if {bc.rifle.%player%} is 0:
format slot 9 of player with wooden pickaxe named "Rifle 0" to close
if {bc.pistol.%player%} is 0:
format slot 18 of player with wooden shovel named "Pistol 0" to close
# Recon class #
format slot 2 of player with paper named "Recon" to close
if {bc.sniper.%player%} is 0:
format slot 11 of player with wooden hoe named "Sniper 0" to close
if {bc.pistol.%player%} is 0:
format slot 20 of player with wooden shovel named "Pistol 0" to close
Is there a way to give custom durability to tools in GUI/menus? I've been looking all over the docs and forums but just can't seem to find a solution.
Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it?
code_language.skript:
format slot 9 of player with wooden pickaxe of durability 1 named "Rifle 0" to close
# Edit
code_language.skript:
format slot 9 of player with wooden pickaxe:1 named "Rifle 0" to close
code_language.skript:
format slot 9 of player with wooden pickaxe:{exp.%player%} named "Rifle 0" to close
Last edited: