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 latestCode: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