Origins (Forge)

Origins (Forge)

7M Downloads

Resource Compare never returning true

smbanasik opened this issue ยท 1 comments

commented

Versions
Minecraft: 1.18.2
Forge: 40.1.0
Origins: Origins-1.18.2-1.4.1.1-unified

Hi, in two separate instances I have tried to compare an origins resource value to a selected value using the resource entity condition type and it has never returned true despite my thoughts that it should.
Below are text versions of the two relevant powers and information about them.
Let me know if anything else is needed, or if this is a user error.

The resource being used is a subpower of the "golem_battery" power labeled "battery_resource" at the top of the file.

The relevant comparisons start on lines 57 for the golem_battery file, and 106 and 120 for the golem_waterdebuff file.

The intention of the golem_battery comparison is that the item should only be consumed if the resource is below 100 (the maximum value), and the intention of the golem_waterdebuff is that the damage over time is in effect only if the resource is at or below 0 (the minimum value).

golem_battery.txt
golem_waterdebuff.txt

Thanks

commented

Seems to be a user error so I'll just close the issue. I got it to work by checking for not equals to instead of less than, and checking for equals to instead of less than or equal to respectively.