Enchanted Books and NBT tags

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

Topic category: Help with MCreator's application

Last seen on 12:10, 18. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 13:23, 2. Oct 2019
Joined May 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 12:10, 18. Oct 2019
Joined Aug 2019
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
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 09:43, 18. Oct 2019
Joined Jun 2019
User points:

Statistics:

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

I think there is a 'enchant item' procedure block