[TUTORIAL] Entity facing like a BLOCK! with all rotations [ to make fake animated blocks or chairs!] MC 2020.5

Started by lucascoolsouza on Sun, 03/07/2021 - 22:00

Topic category: User side tutorials

Last seen on 12:50, 14. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
[TUTORIAL] Entity facing like a BLOCK! with all rotations [ to make fake animated blocks or chairs!] MC 2020.5
Mon, 03/08/2021 - 10:45 (edited)

So, you wanna something like this? 
you can do without animation too*, that work for chairs for example...
placing mobs
and not like pig with random rotations?
placing pigs
and more!, don't crashes and load with configured rotation!
opening minecraft

So, follow me, i will explain how i do that.

Step 1:
Create a global variable, with name Playerfacing, Number, Global_world. 1.0
creating global variable
Step 2:
Create a new procedure, with global trigger "on player tick update"
Set the ifs and else if, if you don't now what is "else if", this is like " else,if", AHAHAHAH
Creating a procedure
this for example, is the same like the image above, but this will take more from your computer memory, so if you can, do with "else if". 
* Example *
do if
This will detect the direction at the player!

Step 3!
Create your entity, and save for now! because you need the name of entity for the next step.
tab
Step 4

Create a procedure with this configs, put name like "Chairspawninworld" or something like this
1- If you don't will use the animations.
procedure
2-If you will use Gecko lib animations.
is the same, but you need to put "is provided world remote" because it can crash your map
animations
EDIT# The animation only works in another procedure like this
and i don't know why....
the animation

Step 5!

Now.. Save your procedure and put in your entity/Trigger [ on inital entity spawn ]
[ if your procedure name is like "Chairspawninworld", insert here ] 
entity trigger
and if you are making a block,chair,or puppet like my gifs, disable the AI.
ai disable

and tadaaaa!

Extra: 
just work

if you wanna to entity copy the direction of block under "like the gif in piston", this is tiny hard because
some blocks don't have direction "like grass" , and can do some bugs. " i mix the procedure with this another one, but that give me a lot of bugs.
bugs
if you want it, i will save you time to discover all directions.
all directions
 

Edited by lucascoolsouza on Mon, 03/08/2021 - 10:45
Last seen on 22:11, 7. Mar 2021
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
this topic was made…
Sun, 03/07/2021 - 22:09

this topic was made LITERALLY 10 SECONDS AGO and i replied

Last seen on 17:41, 11. Apr 2021
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The animation on your…
Mon, 03/08/2021 - 11:51

The animation on your puppets are really good well done.