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!


    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.


Discussion in 'Skript' started by Tom1222322, Nov 19, 2022.

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

    Tom1222322 Member

    Feb 5, 2021
    Likes Received:
    Hi, I'm trying to make my own enchantment ss. When I enchant an item I add it to the list of enchanted items. However, when the item's durability list changes, it is no longer visible and it no longer performs its assigned task. How can I fix that? My code:
    1. enchanting the item
    Code (Text):
    1.         set {_enchtel} to enchanted book
    2.         set name of {_enchtel} to "&eEnchanted Book"
    3.         set lore of {_enchtel} to "&9Tools" and "&7Telepathy I"
    4.         if player's held item is tool:
    5.             if player's inventory contains {_enchtel}:
    6.                 remove {_enchtel} from player's inventory
    7.                 set {_nameitem} to name of player's held item
    8.                 set {_geench} to player's held item
    9.                 remove player's held item from player's inventory
    10.                 set name of {_geench} to "&b%{_nameitem}%"
    11.                 set lore of {_geench} to "&7Telepathy I"
    12.                 add {_geench} to {sce.telepathy::*}
    13.                 give {_geench} to player
    2. using the enchantment
    Code (Text):
    1. on break:
    2.     if {sce.telepathy::*} contains tool of player:
    3.         clear drops
    4.         give event-block to the player
  2. Pierrelasse

    Pierrelasse Active Member

    Apr 20, 2022
    Likes Received:
    Code (Text):
    1. on block break:
    2.   if player has thing stuff check here:
    3.     cancel drops
    4.     give drops to player
    maybe this work maybe not
Thread Status:
Not open for further replies.

Share This Page