cant get custom enchants to work

  • 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.

ocommit

Member
Jan 12, 2022
4
0
1
23
first time using custom enchants with Tuske, can someone help?
Code:
on skript load:
     register a new custom enchantment with id name "Puff melee"
     set {_enchantment} to "Puff melee" parsed as custom enchantment
     set max level of {_enchantment} to 5
     set rarity of {_enchantment} to 1
     set accepted items for {_enchantment} to "Chesplates"
     set lore name of {_enchantment} to "you become puff from melee"

on skript load:
  if player's tool has custom enchantment Puff melee:
    set player's max health to 10
    make player execute command "/effect give %player% minecraft:strength 1 99999 true"
    
command /puff:
    trigger:
        set held item to held item with custom enchantment Puff melee 1
[doublepost=1644128753,1644128295][/doublepost]I misspelled chestplate and fixed it but it still doesn't work.
 
Status
Not open for further replies.