Custom Enchantments

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

LeStegii

Member
Mar 18, 2019
3
0
0
21
Hello, im using Tuske to create Custom Enchantments and the won't work properly...

Spigot: 1.12.2
Plugins: Tuske, Skript
Skript: 2.4-alpha3
Tuske: 1.8.2-Pikachu-Patch-3

Code:
on skript load:
   register a new custom enchantment with id name "Glowing"
   set {_enchantment} to "Glowing" parsed as custom enchantment
   set max level of {_enchantment} to 1
   set rarity of {_enchantment} to 1
   set accepted items for {_enchantment} to "Swords"
   set lore name of {_enchantment} to "Glowing"
   
   
on damage:
   message "Damage" to attacker
   if attacker's tool has custom enchantment Glowing:
       message "Glowing" to attacker
       apply glowing to victim for 2 seconds
       
       
       
command /enchantmytool:
   trigger:
       add Glowing to all custom enchantments of player's tool


Problem: Everything works with no errors but it wont send the message "Glowing" (on damage event).
 
Tuske custom enchants haven't worked in a long time.
 
Status
Not open for further replies.