Started by
EnbyAkira
on
Topic category: Troubleshooting, bugs, and solutions
i created a mod with a counter as a overlay and i accidentally upgraded to 2023.1 and there are no variable integrations in the overlay anymore
Topic category: Troubleshooting, bugs, and solutions
i created a mod with a counter as a overlay and i accidentally upgraded to 2023.1 and there are no variable integrations in the overlay anymore
It has been replaced by the procedure system. You need to manually change your overlays and GUIs.
thank you, but i cant manage to find out how to change it or where to find that option
@EnbyAkira
If you open an existing Lable or add a new Label in the Menu there you can choose the Text. You can click the Plus Icon or create a Procedure where you need to use the Text Return Procedure Block that you can find in the Category Logic! Then the Text.
After a Procedure with the Conditions above are existing you open a Label and select it by clicking the Arrow Icon right of the textfield.
thank you very much!
now i just need to find out, why the counters/variables are so buggy, it adds one when the player gets damage, but in a new world the first damage taken by mobs counts as two, and when the player dies the counter breaks even more :/
If you want to get the Amount of Damage in Overlay/GUI you need to put a "is provided world client-side" with a "not" Procedure Block.
The Attribute Attack Damage is Server side only. Or all Stuff related to Attack Damage is mostly Server Side only.
this counter is part of a challenge, where something happens, when the player gets damage, so it doesnt detect how much damage the player gets, just how many times he got hit
i already made it with normal NBT tags, but they reset, when the player dies, so i tried making it with global variables, but with them i have these bugs :/
Use Player Persistant Gobal Variables.
I'm making currently a new Plugin that adds a lot of new Procedure Blocks and Global Triggers.
Check the Feature List here.
already tried that, sadly its the same bug :/
i guess ill just make it a keybind, so that the player adds to the counter manually
Also you want to have a Counter in how many times the player takes Damage, right?
Also I wanna know if your counter gonna reset over a time. Resets the Counter after amount of time passed or is this global and never resets in a world?
Here I tested for yourself a simple DamageCounter that increases if a Player takes Damage from any Source.
Make a Player Persistent Number Variable.
Then make a Return Procedure for your Label:
After that open the Label inside of your Overlay and select the Return Procedure.
Then make a new Procedure with the Global Trigger "Before entity is hurt".
Make a local number Variable that automatically be set to the Player Persistent Number Variable.
Check if the Event/target Entity is the Player
Increase the local Number Variable by 1
And finally sets the Player Persistant Number Variable to the local number variable.
NOTE: Ignore the "Get local number Variable and increase by 1". Is a Procedure Block from the Plugin I mentioned before. It exactly the same like the you make the traditional way of increase it by 1.