Topic category: Help with Minecraft modding (Java Edition)
I have a set of "entity tick" procedures that allow a sleeping animation to play for an entity during the night. This works perfectly in Mcreator and Gradle. However, after exporting the mod, it does not work. The animations do not play.
I have tried matching the Geckolib versions to the one used in Mcreator, but this made no difference.
What could be causing this to happen?
Procedures:
Entity tick update
If: target entity has attribute [my attribute] AND it is not day in the provided works
Do: if: get target entity custom nbt logic tag "sleeping" = false
do: set target entity custom nbt logic tag "sleeping" = true
procedure 2:
if: entity is subtype [my entity (which has the attribute mentioned)}
do: if: get target entity custom nbt logic tag "sleeping" = true
do: if entity element [my entity] is the target entity then play animation "sleep"
else: if entity element [my entity] is the target entity then stop current procedure triggered animation
There's a 3rd procedure that stops the entity from moving if the "sleeping" tag is true, but this works just fine. It's the animations that are not working.
Any suggestions? I'm using the most recent 2024.4 build for 1.20.1.