I wanna make a script that checks all players inventories and removes any swords with fireaspect of any level

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

    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!

DannyGamerDK

New Member
Jul 13, 2023
9
1
3
Code:
every 10 seconds:
    loop all players:
        if loop-player has diamond Sword:
            if diamond sword contains fire aspect:
                remove diamond sword from loop-player's inventory
 
Last edited:
Hi, I think I have a solution for you. Let me know if this is what you need

Code:
every 10 seconds:
    loop all players:
        if loop-player has sword in inventory:
            remove every sword of fire aspect from loop-player's inventory

Have a nice day :emoji_slight_smile:
 
Hi, I think I have a solution for you. Let me know if this is what you need

Code:
every 10 seconds:
    loop all players:
        if loop-player has sword in inventory:
            remove every sword of fire aspect from loop-player's inventory

Have a nice day :emoji_slight_smile:
it doesn't remove the sword if it has other enchants as well