Kander16 Posted May 16, 2015 Posted May 16, 2015 Hi, After reading https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe03_block_variants/BlockVariants.java#L212 I still have problems understanding how to use/write getMetadataFromState and getStateFromMetadata. I want to have my block updated on the outside depending on how much fuel (in my case, ice) is left, actually I want to show kind of a progress bar on the outside of my block by using different textures. At the moment I am using JSON blockstate files with variants: 'facing=north,ice=ice2',... But I don't get it to work. Does anyone know how to do this or has any tips to get started again? Thanks in advance. JSON blockstate file: http://pastebin.com/1TQH21mm IceCreamMaker.java: (Block class) http://pastebin.com/3QDhFwsK Quote Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Kander16 Posted May 16, 2015 Author Posted May 16, 2015 At the moment? - Are they gonna change the metadata? - Is there no other way to do this? Quote Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Kander16 Posted May 16, 2015 Author Posted May 16, 2015 Store the data in a TileEntity. Can you explain this a little bit more please? Quote Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Kander16 Posted May 16, 2015 Author Posted May 16, 2015 Thanks. Quote Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Recommended Posts
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.