#Why is initialRotation not working here?

1 messages · Page 1 of 1 (latest)

lethal burrow
#

the issue is both following two codes are spawning the entity with the same rotation, but each code have a different value for initialRotation so no idea why the rotation is always the same for the entity that is spawned, doesn't matter if I use one code or the other
Code 1:javascript world.afterEvents.playerPlaceBlock.subscribe((eventData) => { // [...] block.dimension.spawnEntity("test:custom_entity", {x: block.location.x, y: block.location.y, z: block.location.z}, {initialRotation: 0}); // Rotations SHOULD be 0 }); Code 2:javascript world.afterEvents.playerPlaceBlock.subscribe((eventData) => { // [...] block.dimension.spawnEntity("test:custom_entity", {x: block.location.x, y: block.location.y, z: block.location.z}, {initialRotation: 90}); // Rotations SHOULD be 90 });

lethal burrow
#

is initialRotation not stable? 🫠 I need it for stable so how could I do it? I mean I need to spawn the entity with certain rotation through scripting 🙏