Tuke-Nuke / TuSKe

TuSKe is a Skript addons which brings some new cool things and some simple plugins hook.
18 stars 36 forks source link

Custom Enchantments not working. #96

Closed MelonInTheWinter closed 3 years ago

MelonInTheWinter commented 3 years ago

Nothing about enchants is working here. No glow, no lore, no effect. Even send "%all custom enchantments of player's held item%" returns none.

on skript load:
   register a new custom enchantment with id name "Haste"
   set {ELCE.Haste} to "Haste" parsed as custom enchantment
   set max level of {ELCE.Haste} to 3
   set rarity of {ELCE.Haste} to 1
   set accepted items for {ELCE.Haste} to "Pickaxe" or "Book"
   set lore name of {ELCE.Haste} to "Haste"
   set enabled for {ELCE.Haste} to true

on skript load:
   register a new custom enchantment with id name "Grudging"
   set {ELCE.Grudging} to "Grudging" parsed as custom enchantment
   set max level of {ELCE.Grudging} to 2
   set rarity of {ELCE.Grudging} to 5
   set accepted items for {ELCE.Grudging} to "Sword" or "Book"
   set lore name of {ELCE.Grudging} to "Grudging"
   set enabled for {ELCE.Grudging} to true

on block damaging:
  if player's tool is a pickaxe:
    if player's tool has custom enchantment {ELCE.Haste}:
      set {_level} to level of custom enchantment {ELCE.Haste} of player's tool
      remove 1 from {_level}
      apply potion of haste of tier {_level} to player for 0.35 seconds

on damage:
  if attacker's tool has custom enchantment {ELCE.Grudging}:
    set {_level} to level of custom enchantment {ELCE.Haste} of attacker's tool
    remove 1 from {_level}
    apply potion of poison of tier {_level} to victim for 1.8 seconds

command /elenchant <text> <number>:
  permission: elce.enchant
  trigger:
    set {_enchantment} to "%{ELCE.%arg 1%}% %arg 2%" parsed as custom enchantment
    add {_enchantment} to all custom enchantments of player's held item

command /eletest:
  permission: elce.test
  trigger:
    add {ELCE.Haste} to all custom enchantments of player's held item
    send "%all custom enchantments of player's held item%"
MelonInTheWinter commented 3 years ago

ignored....

bilektugrul commented 3 years ago

TuSKe is outdated. There is a fork that fixes GUI stuff (Pikachu's fork) and another fork to update GUI stuff (skript-gui) but custom enchantments are outdated.

MelonInTheWinter commented 3 years ago

TuSKe is outdated. There is a fork that fixes GUI stuff (Pikachu's fork) and another fork to update GUI stuff (skript-gui) but custom enchantments are outdated.

finally, thank you. unfortunate that its outdated.