Enchanted Books and NBT tags

Started by StellaeLux on Mon, 09/02/2019 - 14:27

Topic category: Help with MCreator software

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
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
Last seen on 07:58, 13. Apr 2020
Joined May 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
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

Last seen on 20:25, 8. May 2020
Joined Aug 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
What would a procedure look…
Sat, 09/07/2019 - 11:03

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

Last seen on 14:35, 24. May 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • Comments:
I think there is a 'enchant…
Sat, 09/14/2019 - 12:29

I think there is a 'enchant item' procedure block