prevent enchanting a stack of items

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

Status
Not open for further replies.

HXV

Member
Jul 15, 2022
1
0
1
I cant figure out how to prevent enchanting a stack of items. it says there's no item stack in a command event but I refuse to believe its just impossible...


Code:
command /weaponenchantspls:
    description: Random enchant random chance.
    cooldown: 2 days
    cooldown message: Tough luck! Try again tomorrow! %remaining time%
    cooldown bypass: randomenchant.pls
    trigger:
        if weapon of player is number between 2 and 64 of item:
            send "&c&lSorry, but nice try." to player
            exit
        if weapon of player is air:
            send "&c&lPlease hold the item you want to enchant." to player
            exit
        if weapon of player is enchanted:
            send "&c&lThat item is already enchanted." to player
            exit
        send "&a&lGoodluck!"

Code:
if weapon of player is number between 2 and 64 of item:
            send "&c&lSorry, but nice try." to player
            exit

is there a way to do what im trying do to?
 
Status
Not open for further replies.