Ola, estou com uma dúvida ja testei vários códigos mas nenhum fez com que chegase no resultado que queria,então resolvi postar aqui minha dúvida.1 pergunta:
A função Entity.setRot() muda a rotação da entidade?
Perguntei isso porque testei várias vezes mas não mudou nada.Fiz esse teste quando estava montado num mob.Então vamos a minha grande dúvida.
Estou montado num mob,e eu quero que quando eu virar pra um lado o mob tambem vire:
Hello , I have a question already tested several codes but none made chegase the result he wanted, so I decided to post here my dúvida.1 question:
The Entity.setRot () function changes the rotation of the body ?
I asked this because I tested several times but did not change nada.Fiz this test when it was mounted on a mob.Então let my big question .
I'm riding a mob , and I want that when I turn to one side the mob also turn:
Isso não faz com que,quando eu estinver montado no mob,e virar pra um lado,o mob não vira,o que faço?tenho que pegar a entidade onde estou montado?
Resumindo:
Quando estinver montado num mob,quero que ele mude de rotação de acordo com o Player.
This does not cause when I estinver mounted on the mob , and turn to one side , the mob had not seen , what I do? I have to get the organization where I am riding ?
Summing up:
When estinver mounted on a mob , I want him to change the rotation according to the Player.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Ola, estou com uma dúvida ja testei vários códigos mas nenhum fez com que chegase no resultado que queria,então resolvi postar aqui minha dúvida.1 pergunta:
A função Entity.setRot() muda a rotação da entidade?
Perguntei isso porque testei várias vezes mas não mudou nada.Fiz esse teste quando estava montado num mob.Então vamos a minha grande dúvida.
Estou montado num mob,e eu quero que quando eu virar pra um lado o mob tambem vire:
Hello , I have a question already tested several codes but none made chegase the result he wanted, so I decided to post here my dúvida.1 question:
The Entity.setRot () function changes the rotation of the body ?
I asked this because I tested several times but did not change nada.Fiz this test when it was mounted on a mob.Então let my big question .
I'm riding a mob , and I want that when I turn to one side the mob also turn:
function modTick(){
Entity.setRot(mob, Player.getX(),Player.getY(),Player.getZ());
}
Isso não faz com que,quando eu estinver montado no mob,e virar pra um lado,o mob não vira,o que faço?tenho que pegar a entidade onde estou montado?
Resumindo:
Quando estinver montado num mob,quero que ele mude de rotação de acordo com o Player.
This does not cause when I estinver mounted on the mob , and turn to one side , the mob had not seen , what I do? I have to get the organization where I am riding ?
Summing up:
When estinver mounted on a mob , I want him to change the rotation according to the Player.