Solved Give enchanted books without the console

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

FishRekt

Active Member
Jan 26, 2017
87
0
0
25
Hi guys, i'm trying to give to players enchanted books without the console. I tried this:
code_language.skript:
command /givebook:
    trigger:
        give an enchanted book to player
But... Nothing. I tried many different ways, but none of these is great. The question is: How to give enchanted books (enchantement books that give enchants to swords etc) without the console/give command?
 
Hey there!
I actually just tried this and it worked fine:
code_language.skript:
command /givebook:
    trigger:
        give player enchanted book
Hope I helped!
 
Last edited:
It doesn't give to the player enchantement books that give enchantements to the swords... It gives a book that is enchanted
 
And... Can i make this console command silent?
I never get any feedback from it in-game without updating anything, but if you do, you can try changing the gamerule.
/gamerule sendCommandFeedback false - Cancels command feedback for vanilla minecraft commands
/gamerule commandBlockOutput false - Cancels feedback from command blocks (possibly console as well)
code_language.skript:
command /givebook:
    trigger:
        execute console command "give %player% enchanted_book 1 0 {StoredEnchantments:[{id:34,lvl:5}]}"
(Skript command from reddit page)
 
Thank you very much. I tried this and it worked fine with custom NBT:
code_language.skript:
give player an enchanted book with custom nbt "{StoredEnchantments:[{id:16,lvl:5}]}"
 
Status
Not open for further replies.