Started by KinoFire on Sat, 08/15/2020 - 22:04
Topic category: Help with MCreator software
I'm trying to make a book that stores XP, and I have an NBT number tag that holds the amount. How would I display that NBT tag in the lore of an item, in the box shown above? The NBT number tag is called "xp"
It requires code. I can do it for you I just need to know if your NBT tag is a number or an interger.
It's a number. I appreciate it man, let me know what you can do
Step 1: when you create your item, make sure you add anything as item information (on the first page) like this :
Step 2: Lock your item's element.
Step 3: Replace this code:
by this one:
Step 4: Close and save the code.
Step 5: Build.
Step 6: If any error appears, send me your entire code and the error message.
Ooops sorry I forgot to link the image of the first step... Here it is:
It works! It gave me an error but I just had to change the capitalized "XP" to "xp". Thanks so much!
hey max you seem like a real smart guy, and you helped this guy out. so sir im begging you I've spent the last 7 hours trying to make getEfficiency equal to an itemstack nbt number. and I just cant figure it out
Hey SpiDro, what is "getEfficiency"? A variable? Could you show me how you use it and what you've tried to do?
getEfficiency is a variable for mining speed of a tool, but I need the variable to be equal to a itemnbt integer. I have no idea how to properly call for itemstacks though
SpiDro, do you have Discord? It would be easier to talk there...
hey max can u teach me more art that tysm I wanna know what is the ('\u00A7" is and xp is