Posted April 10, 20169 yr I am making a block that has a timer in the tileEntity class and I want to show that in a name tag above the block. I prefer it 2 blocks above it. could anybody help me? To master the art of code you must first read the code
April 10, 20169 yr https://github.com/Draco18s/Artifacts/blob/master/main/java/com/draco18s/artifacts/client/PedestalRenderer.java#L57-L106 Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
April 10, 20169 yr Author I see how you`re adding text and rendering the name tag. but I can`t seem to find a way to get info from my nbt to my label. - [sourceCode TileEntity class: http://pastebin.com/yS9ra7xj] - [sourceCode SpecialRenerer class: http://pastebin.com/zarQaJHD] To master the art of code you must first read the code
April 10, 20169 yr You don't. You have to make a getter to return the timer variable, and use that instead of NBT. Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support. 1.12 -> 1.13 primer by williewillus. 1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support. http://www.howoldisminecraft1710.today/
April 10, 20169 yr Author Thanks for the help. For the people who are interested in the correct code: - [sourceCode TileEntity class: http://pastebin.com/HvA8AL0Z] - [sourceCode SpecialRenerer class: http://pastebin.com/6LnFiXv9] To master the art of code you must first read the code
April 10, 20169 yr The NBT in my context was the NBT tag attached to an item stack, not the TileEntity's saveToNBT Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.