Entity Yaw and Pitch Error

Upvotes: 1
Issue description

Hello Klemen, I encountered a error when trying to copy the yaw and pitch rotations from one entity to another new spawned entity using local variables.

I have provided the workspace and the MCreator log file in the zip. The element is an entity update tick, the main cause of the issue is the using the variable saved from entity one to set the new entities rotation, I did a tutorial on this same workspace without the yaw and pitch and it worked fine before adding the variables.

Attachment Size
Workspace and MCreator Log42.71 KB 42.71 KB

Issue comments

I have found the cause of this build failed bug. I will fix this bug so no build errors will happen.

I now managed to understand why you wanted to have "spawn with rotation and pitch" procedure block :D I missed the obvious problem with entity tick referring to the current entity, not to the newly spawned one.

I will add a new procedure block to spawn entity with rotation and yaw too and possibly another one with yaw, pitch and velocity parameters for smooth transitions if the entity was walking at the time of the switch.

Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.