Enchanted Books and NBT tags

Started by StellaeLux on

Topic category: Help with MCreator software

Active 4 years ago
Joined Aug 2019
Points:
1023

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
Enchanted Books and NBT tags
Mon, 09/02/2019 - 14:33 (edited)

So I know that enchanted books require NBT data in order to be an enchanted book.

In Minecraft items after all can be enchanted through: /give PLAYERNAME minecraft:potato 0 1 {ench:[{id:4, lvl:5},{id:12, lvl:2}]

which would give you a potato with 2 enchantments. You could also use display{Name:"crazypotato",Lore["A very strange potato","Nobody knows where from."]}

In the procedure editor there are various Set and Get NBT tags for this and I suppose that you can use them to create the similar effect of the 2 enchantements potato with description as mentioned above. The only question is: What exactly would I have to do to create the 2 enchanted potato with description using procedures exclusively, knowing the commands from Minecraft as better described here: https://minecraft.fandom.com/wiki/NBT_Tags

That I guess is the last missing piece in the puzzle for me: How Minecraft's NBT tags translate into Mcreators procedure editor.

 

Edited by StellaeLux on Mon, 09/02/2019 - 14:33
Active 5 years ago
Joined May 2017
Points:
743

User statistics:

  • Modifications: 0
  • Forum topics: 6
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
The only NBT tags supported…
Fri, 09/06/2019 - 16:10

The only NBT tags supported in mcreator currently are logic and number tags. So anything that says true/false or a number. Tags like name and lore require strings and can't be done in the procedure editor. Enchanting however is number tags so you could create enchanted items through the number tags

Active 4 years ago
Joined Aug 2019
Points:
1023

User statistics:

  • Modifications: 0
  • Forum topics: 31
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 450
What would a procedure look…
Sat, 09/07/2019 - 11:03

What would a procedure look like for something simple like Sharpness Level 6?

Active 4 months ago
Joined Jun 2019
Points:
2786

User statistics:

  • Modifications: 4
  • Forum topics: 48
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3716
I think there is a 'enchant…
Sat, 09/14/2019 - 12:29

I think there is a 'enchant item' procedure block

Active 1 year ago
Joined Sep 2022
Points:
324

User statistics:

  • Modifications: 1
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 9
There is an 'enchant item'…
Tue, 09/06/2022 - 20:20

There is an 'enchant item' procedure block, but if you use it on a book you get an enchanted 'book' not an 'enchanted book'. If you switch out the book for an enchanted book and then enchant that, you get an 'enchanted book' that has no enchantment on it, but is enchanted with the enchantment you requested. Weirdly complicated