NerdyPuzzle / MCreator-Player-Animator

MIT License
4 stars 0 forks source link

Plugin breaks client-side procedures #33

Closed SaltyWater-Mods closed 3 months ago

SaltyWater-Mods commented 3 months ago
NerdyPuzzle commented 3 months ago

In what way is it breaking them? There is nothing in the plugin that would do that...

SaltyWater-Mods commented 3 months ago

This is the code (1)

SaltyWater-Mods commented 3 months ago

https://github.com/user-attachments/assets/446c2670-1fcd-4997-b5de-e95127b223f4

SaltyWater-Mods commented 3 months ago

In the video, resetting poses with sneaking only worked the first time exactly because of the problem I'm having, If I walk, It will ignore every variable and NBT tag set and only trigger the animation block, meaning I was walking normally while the game still thinking I had the variable of sitting set to true. I think, this happens due to the delta movement block being client side, and the 1.9 version of the plugin triggering animations server side. It must be conflicting somehow. As in the last plugin version 1.8.1 everything worked fine.

NerdyPuzzle commented 3 months ago

If you want it to only trigger on the client then do if clientside before triggering the animation. The procedure block still has the code that runs on the client.

SaltyWater-Mods commented 3 months ago

Does this make the animation trigger in server-side?

NerdyPuzzle commented 3 months ago

No, it makes it the same as before 1.9

SaltyWater-Mods commented 3 months ago

And If I want to make it trigger server side?

NerdyPuzzle commented 3 months ago

Then you figure out how to make your procedure work on the server

SaltyWater-Mods commented 3 months ago

I understand, but the thing is, this procedure worked fine in version 1.8.1, even if didn't trigger server-side. Now it doesn't work properly with or without triggering it only on client side. It isn't a Mcreator bug, I tested it in 2024.1 both versions 1.9 and 1.8.1 too, and only with the 1.9 version of the plugin I get this strange behavior in those client-side blocks.

NerdyPuzzle commented 3 months ago

That is the fault of your procedure, not the plugin. Trying to use clientside blocks on the server will result in unpredictable behaviour.

SaltyWater-Mods commented 3 months ago

Oh, that does makes a lot of sense. Thank you very much!