Unable to give Enchanted Books any enchantments with procedures

Started by Namorist on

Topic category: Help with Minecraft modding (Java Edition)

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unable to give Enchanted Books any enchantments with procedures

I've been trying to make an item turn into an enchanted book, and since by default it has no stored enchants, I tried to edit it's NBT text tag, and it didn't work.

Here's what I'm trying to achieve:
Here's what I'm getting:

Here's the procedure:

Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Maybe you can try it by…
Mon, 07/10/2023 - 02:46

Maybe you can try it by using a loot table?

Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
loot tables won't let you…
Mon, 07/10/2023 - 09:42

loot tables won't let you set NBTs on any item

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I like to assign a variable…
Mon, 07/10/2023 - 10:40

I like to assign a variable called "randomness" instead of straight up comparing it to random [0,1). Try that. I'll also be here trying to find a procedure that works too!

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait i misunderstood the…
Mon, 07/10/2023 - 10:43

Oh wait i misunderstood the problem¯\_(ツ)_/¯

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
If what the problem is…
Mon, 07/10/2023 - 10:54

If what the problem is colour, then use §. § is a thing where, in Minecraft, if you put it in with another digit like a or 1 or something, it and the digit will become invisible and all the text after it will be coloured. To get it on Windows, Windows key + period to get all the emojis, kaomojis, and symbols. Go to symbols, and you'll find it in the general puncuation section. On Mac, its alot simpler. Alt + 6 will just put in sign simble.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh no wrong forum topic😲
Mon, 07/10/2023 - 11:06

Oh no wrong forum topic😲

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh wait, try giving yourself…
Wed, 07/12/2023 - 10:07

Oh wait, try giving yourself a book and enchant that.

 

Joined Apr 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think there is a procedure…
Wed, 07/12/2023 - 13:22

I think there is a procedure block that lets you specify what enchants to put on something, even when  the enchants normally wouldn't work on that item.  I think that could allow you to use an itemstack local variable, set it to enchanted book, then add the enchant(s) to the variable item, before giving that to the player, or setting the item in their hand to the variable

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thats what i said!
Wed, 07/12/2023 - 14:07

Thats what i said!