- Script Version 2.5.3:
- Script Author: bensku
- Minecraft Version: 1.16.4
- Full Code:
command /skills:
trigger:
set {_prefix} to placeholder "player_level" # placeholder "%%player_level%%" is also valid
set {_gui} to a new chest inventory with 6 row with name "&c&lSkills"
set slot 40 of {_gui} to red stained glass pane named "&c&lStrength" with lore "&a&l%{skillpoints.var}% &dSkill point(s) available."
set slot 41 of {_gui} to blue stained glass pane named "&3&lIntelligence" with lore "&6&l%{skillpoints.var}% &dSkill point(s) available."
set slot 39 of {_gui} to yellow stained glass pane named "&e&lAgility" with lore "&a&l%{skillpoints.var}% &dSkill point(s) available."
set slot 38 of {_gui} to white stained glass pane named "&7&lResistance" with lore "&6&l%{skillpoints.var}% &dSkill point(s) available."
set slot 42 of {_gui} to purple stained glass pane named "&5&lWizardry" with lore "&a&l%{skillpoints.var}% &dSkill point(s) available."
set slot 13 of {_gui} to skull of ("%Player%" parsed as offline player) named "&7&l%player%" with lore "&aL&6e&av&6e&al&6: &d&l&n%{_prefix}%"
open {_gui} to player
on inventory click:
name of event-inventory is "&c&lSkills"
cancel event
on inventory click:
name of event-inventory is "&c&lSkills"
if index of event-slot = 39
if {skillpoints.var} greater then 0
set {skillpoints.var} to {skillpoints.var} - 1
set {agility.var} to {agility.var} + 1
- Errors on Reload:
cant understand this condition/effect if {skillpoints.var} greater then 0 (Skills.sk, line 21: if {skillpoints.var} greater then o'
- Console Errors: (if applicable)
- Other Useful Info:
- Addons using (including versions):
- ersatz
- Troubleshooting:
- Have you tried searching the docs? yes
[*]Have you tried searching the Forums? yes
[*]What other methods have you tried to fix it? - tried changing versions and looking on google but nothing helped