Started by
gustavowizard123
on
Topic category: Help with Minecraft modding (Java Edition)
i just download last 2020.4 snap to check the new features, trying to make a simple solar panel here, but how i show it on GUI?
On wiki says 'The current energy value can be shown in GUIs bound to this block too.' - but dont saw how
thank you in advance!
Add a text label and change the type to the energy one. (I think it's on the bottom of the list)
but how i bind it to the GUI? if its not much to ask could you post a screenshot of the procedure?
thanks!
also i could not find any text label for energy
nobody? i just cant find one tutorial about this; show energy of block on GUI :(
lol i finally found the <energy> thing on the text label on GUI part.. nice! yet there are some stuff there i dont know how to use it, like this:
<BNBT:number:tagName>
how do i use that?
thanks!
i can see
<energy>
but how to set up for EnergyCapacity, MaxOutout, MaxInput?
Alright so I'm trying to do something similar, but somehow the <energy> doesn't show up in-game when I use the block 'update tick' trigger. It doesn't matter how much energy I put in the block, the energy that it will display in the GUI using <energy>, will be displayed as 0.0. When I use client display random tick trigger, it will show the energy correctly, but some other weird things happen when using this trigger so I rather use 'update tick', also because this one is more precise since it's not random.
Does anyone know how I fix this problem?
(using mcreator 2021.3).
Here is another try for the screenshot
https://imgur.com/a/z5w7S2r
The problem I had was fixed in the new version of Mcreator, which would be 2022.1!
those tags dont work anymore :(