1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Custom Enchantments

Discussion in 'Skript' started by LeStegii, Jun 24, 2019.

Thread Status:
Not open for further replies.
  1. LeStegii

    LeStegii Member

    Joined:
    Mar 18, 2019
    Messages:
    3
    Likes Received:
    0
    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 (Text):
    1.  
    2. on skript load:
    3.    register a new custom enchantment with id name "Glowing"
    4.    set {_enchantment} to "Glowing" parsed as custom enchantment
    5.    set max level of {_enchantment} to 1
    6.    set rarity of {_enchantment} to 1
    7.    set accepted items for {_enchantment} to "Swords"
    8.    set lore name of {_enchantment} to "Glowing"
    9.    
    10.    
    11. on damage:
    12.    message "Damage" to attacker
    13.    if attacker's tool has custom enchantment Glowing:
    14.        message "Glowing" to attacker
    15.        apply glowing to victim for 2 seconds
    16.        
    17.        
    18.        
    19. command /enchantmytool:
    20.    trigger:
    21.        add Glowing to all custom enchantments of player's tool
    22.  


    Problem: Everything works with no errors but it wont send the message "Glowing" (on damage event).
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,183
    Likes Received:
    234
    Tuske custom enchants haven't worked in a long time.
     
  3. LeStegii

    LeStegii Member

    Joined:
    Mar 18, 2019
    Messages:
    3
    Likes Received:
    0
    Oh, thats sad, is there any alternative?
     
  4. Poons

    Supporter

    Joined:
    Jan 25, 2017
    Messages:
    8
    Likes Received:
    2
    You could always just code them in using a lore system. :wrong:
     
  5. Winterfest

    Winterfest Member

    Joined:
    Jul 6, 2019
    Messages:
    1
    Likes Received:
    0
    How do you add lore instead of set lore? So that a player can manually add multiple enchants in any order?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...