command /cop:
trigger:
set {_r} to random integer between 1 and 3
if {_r} = 1:
execute console command "minecraft:give %player% minecraft:enchanted_book[minecraft:stored_enchantments={"minecraft:efficiency":1}]"
if {_r} = 2:
execute console command "minecraft:give %player% minecraft:enchanted_book[minecraft:stored_enchantments={"minecraft:silk_touch":1}]"
if {_r} = 3:
execute console command "minecraft:give %player% minecraft:enchanted_book[minecraft:stored_enchantments={"minecraft:lure":1}]"
Its my skript and they doesnt work like the image i attached.
It works if i change the item from enchanted book to diamond sword or other things
I need help


trigger:
set {_r} to random integer between 1 and 3
if {_r} = 1:
execute console command "minecraft:give %player% minecraft:enchanted_book[minecraft:stored_enchantments={"minecraft:efficiency":1}]"
if {_r} = 2:
execute console command "minecraft:give %player% minecraft:enchanted_book[minecraft:stored_enchantments={"minecraft:silk_touch":1}]"
if {_r} = 3:
execute console command "minecraft:give %player% minecraft:enchanted_book[minecraft:stored_enchantments={"minecraft:lure":1}]"
Its my skript and they doesnt work like the image i attached.
It works if i change the item from enchanted book to diamond sword or other things
I need help