random vanilla enchantments

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

BrownMee

Active Member
Apr 16, 2018
126
6
18
23
Code:
options:
    ench1-5: sharpness, bane of arthropods, smite, efficiency, power
        
command /vench:
    permission: "OP"
    trigger:
        chance of 70%:
            chance of 30%:
                give player enchanted book of {@ench1-5} 5
                stop

It gave me this error
[02:54:50 ERROR]: ('enchanted book of sharpness', 'bane of arthropods', 'smite', 'efficiency' and 'power 5') can't be added to a player because the former is neither an item type, an inventory nor an experience point (system.sk, line 953: give player enchanted book of {@ench1-5} 5')

Skript version: 2.4 alpha 1
Server version: 1.12
[doublepost=1558638077,1558638046][/doublepost]
Code:
options:
    ench1-5: sharpness, bane of arthropods, smite, efficiency, power
       
command /vench:
    permission: "OP"
    trigger:
        chance of 70%:
            chance of 30%:
                give player enchanted book of {@ench1-5} 5
                stop

It gave me this error
[02:54:50 ERROR]: ('enchanted book of sharpness', 'bane of arthropods', 'smite', 'efficiency' and 'power 5') can't be added to a player because the former is neither an item type, an inventory nor an experience point (system.sk, line 953: give player enchanted book of {@ench1-5} 5')

Skript version: 2.4 alpha 1
Server version: 1.12
Btw it work on the previous skript version but not the latest
 
Code:
options:
    ench1-5: sharpness, bane of arthropods, smite, efficiency, power
       
command /vench:
    permission: "OP"
    trigger:
        chance of 70%:
            chance of 30%:
                give player enchanted book of {@ench1-5} 5
                stop

It gave me this error
[02:54:50 ERROR]: ('enchanted book of sharpness', 'bane of arthropods', 'smite', 'efficiency' and 'power 5') can't be added to a player because the former is neither an item type, an inventory nor an experience point (system.sk, line 953: give player enchanted book of {@ench1-5} 5')

Skript version: 2.4 alpha 1
Server version: 1.12
[doublepost=1558638077,1558638046][/doublepost]
Btw it work on the previous skript version but not the latest
Enchantments with levels are currently broken in 2.4 Alpha 1
This issue has been reported, fixed, and will work in the next update.
 
Status
Not open for further replies.