BLOCK FEATURE: Player facing (x,y,z) Procedure

Started by Chee_Master on Sat, 11/24/2018 - 00:40

Topic category: Feature requests and ideas for MCreator

Last seen on 01:17, 1. Feb 2019
Joined Dec 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
BLOCK FEATURE: Player facing (x,y,z) Procedure
Sat, 11/24/2018 - 00:40

Can we have a block procedure that looks for what way the player is facing?
This would be handy when it comes to making blocks like Logs or Stairs etc.

You could texture the block or model different ways then have the event (when block placed by) to target the players facing direction to determine what block to update the block the player just placed.

EXAMPLE
If player is facing -x
    Place x facing log block.

If player is facing +x
    Place x facing log block.

If player is facing -y
    Place y facing log block.

If player is facing +y
    Place y facing log block.

If player facing -z
    Place z facing log block.

If player is facing +z
    Place z facing log block.

 

    BLOCKS
    - LogY (Main block)
    - LogX
    - LogZ

That would be the procedure for the main block the other blocks can be hidden from creative inventory and drop the default state block that the player places which holds the events shown above, this would allow players to make blocks with blockstates.

Last seen on 22:39, 24. May 2020
Joined Feb 2018
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Now, to do this normally…
Sat, 11/24/2018 - 01:32

Now, to do this normally people need to make different models each facing a different direction and use procedures and code to actually make it face you. I recommend making a suggestion for this type of thing

Last seen on 01:17, 1. Feb 2019
Joined Dec 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I ended up going over the…
Sun, 12/09/2018 - 03:53

I ended up going over the wiki and it looks like you may be able to use blockstate or something, I need to find that page again, I will post the link here if I do find it, but Mojang uses blockstates or models one of the two, to rotate logs, I did attempt doing my self before I found the tutorial but with no luck, however, I recall that I was doing it wrong, If I find it I will post the link to the tutorial below.