[EMF] Entity Model Features [Fabric & Forge]

[EMF] Entity Model Features [Fabric & Forge]

28M Downloads

[Bug - models] ifb() animation function doesn't exsist

magmamir opened this issue ยท 3 comments

commented

Describe the bug
It seems that the ifb() animation function doesn't exist in EMF, and using it in a .jem file will cause an error, disabling all resource packs. In EMF, its functionality appears to be handled by the usual if(). This is pretty convenient, but it breaks compatibility since Optifine unfortunately only allows the ifb() function to return boolean values.

Maybe it's possible to add an ifb() function with the functionality required by Optifine, while still allowing the regular if() to return boolean values? To avoid breaking existing resource packs designed specifically for EMF.

Versions:

  • Minecraft Version: 1.21
  • EMF version: 2.2.6
  • ETF version: 6.2.5
commented

ifb does exist...

the reason if() might appear in the failure cause is it acts as a parent to ifb() to handle the initial boolean condition logic then ifb() handles the return as a boolean

ill need your log with this resourcepack failure in it and the model thats failing

commented

Got the same issue in the forge version.

A workaround to convert the common if() to boolean:

"equals( if( condition, 0, 1), 0, 0)"

commented

Sorry for the delay
latest.log
resources.zip
iron_golem2 is the failing model