Kander16 Posted February 8, 2016 Posted February 8, 2016 Hi, I am programming a new tree, which can grow new food. I want to check if there can grow a mangoes under the mango leaves. I want to know: - How to check if the leaves are placed by players or generated. - How to check if the leaves are actually decaying. How can I do this? Thanks! Quote Creator of the Master Chef Mod and many more to come. If I helped you, please click the 'thank you' button.
Draco18s Posted February 8, 2016 Posted February 8, 2016 http://minecraft.gamepedia.com/Leaves#Data_values Its a little hard to read now, but IIRC the 4th bit of metadata is a 1 when the block is player-placed. Actively decaying isn't an easy thing to check. There is leaves that will be checked for decay and leaves that won't be checked for decay. If they're checked and the check fails, the leaves are removed. Quote 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.
Kander16 Posted February 8, 2016 Author Posted February 8, 2016 Ok. I'll check it out. 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.