a Skript that prevents players from getting over protection 3 armor and sharpness 3 swords

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


Oct 19, 2023
In more detail i want a skript so if people try to obtain protection 4 and sharpness 4 and 5 from villagers,combining or enchanting it replaces it with protection 3,sharpness 3 or just removes the item as a whole. If you dont want to or you cant, i appreciate your decision.
Try this for the sword thing, should make it so whenever a sword or axe or trident that has over sharp 3 gets clicked inside the inventory (like an anvil or etable) it deletes it and gives u a sharp 3 one.
on inventory click:
    event-item is a sword or an axe or a trident of sharpness 4 or sharpness 5:
        remove event-item from player
        set {_d} to event-item
        enchant {_d} with sharpness 3
        give {_d} to player