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.

cant get custom enchants to work

Discussion in 'Skript' started by ocommit, Feb 6, 2022.

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

    ocommit Member

    Joined:
    Jan 12, 2022
    Messages:
    4
    Likes Received:
    0
    first time using custom enchants with Tuske, can someone help?
    Code (Text):
    1. on skript load:
    2.      register a new custom enchantment with id name "Puff melee"
    3.      set {_enchantment} to "Puff melee" parsed as custom enchantment
    4.      set max level of {_enchantment} to 5
    5.      set rarity of {_enchantment} to 1
    6.      set accepted items for {_enchantment} to "Chesplates"
    7.      set lore name of {_enchantment} to "you become puff from melee"
    8.  
    9. on skript load:
    10.   if player's tool has custom enchantment Puff melee:
    11.     set player's max health to 10
    12.     make player execute command "/effect give %player% minecraft:strength 1 99999 true"
    13.    
    14. command /puff:
    15.     trigger:
    16.         set held item to held item with custom enchantment Puff melee 1
    --- Double Post Merged, Feb 6, 2022, Original Post Date: Feb 6, 2022 ---
    I misspelled chestplate and fixed it but it still doesn't work.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...