Started by
Stevemine26
on
Topic category: Help with Minecraft modding (Java Edition)
so i was making an item that stores energy and i want a way to display how much energy it has via the item damage indicator (like how create mod shows pressure in a backtank.)
is this possible? (without needing a decent amount of Java coding knowledge.)
well yes, i had the same idea when making my mod so i know what you mean, i am a bit rusty in mcreator coding but if your making an item you hold in your hand you could just use the in main hand or in inventory tick trigger to check how much energy there is in said item, then add or subtract said durability of item to the energy level of your item, i would suggest using a tool with no stats for this since it has durability pre programed into it. just make sure there is at least 1 durability point more then your energy level, just so your item doesnt break
Thanks!