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

Started by lucascoolsouza on

Topic category: User side tutorials

Last seen on 15:39, 29. Feb 2024
Joined Mar 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • 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 19:10, 12. Oct 2023
Joined Mar 2021
Points:

User statistics:

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

The animation on your puppets are really good well done.

Last seen on 15:51, 5. Mar 2024
Joined Sep 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
That's so useful
Sun, 05/16/2021 - 00:31

That's so useful

Last seen on 02:04, 2. Oct 2022
Joined Nov 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
nice, it helps me a lot…
Sun, 06/12/2022 - 04:04

nice, it helps me a lot during my development

Last seen on 15:36, 25. Feb 2024
Joined Feb 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
is it possible to do this…
Sun, 02/18/2024 - 09:03

is it possible to do this with blocks? so that each block is randomly rotated

Last seen on 23:32, 19. Apr 2024
Joined Sep 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
SO USEFUL! Awesome, thanks…
Mon, 02/19/2024 - 19:21

SO USEFUL! Awesome, thanks for posting this, it will help a lot of people.

Last seen on 09:53, 19. Apr 2024
Joined May 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I got a problem. In 1.20.1…
Sun, 03/31/2024 - 21:31

I got a problem. In 1.20.1 it breaks. the entities change direction to a random one after I rejoin the world.
Any idea how to fix it?