Started by
Johnion
on
Topic category: Help with Minecraft modding (Java Edition)
So. I want my custom modeled block to face any direction I place it in, instead of just East for example.
The only way I can think on doing this is making 4 models each facing North South East and West, and switching between them when a player right clicks.
Let me know if you guys have any other sugestions, such as a custom code or something.
Edited by Johnion on Fri, 04/24/2020 - 11:59
Bump, as I too am having a similar problem. When using the "Add block" event using a custom model, the model with always face the player. I need my custom model to face in a specific direction when placed to match with the previous phase of the block (In this case it is a cabinet that opens and closes, but the doors will turn to face whatever direction the player is facing upon the "add block" even since the "Closed Cabinet" and "Open Cabinet" are different blocks.
Use PropertyDirection.
@#2 Could you explain PropertyDirection further Nuparu00? Is that to be entered as custom code or in the block editing itself?
MCreator have not this function. You must code it. Here I explained how to use it.
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods…
@#3 jsi nejlepší! I mohou potřebovat více pomoci, ale myslím, že to mám.
@#3 the problem is that you can't code variables.
@#3.2 What exactly you mean? It is possible code variables.
For example if you write:
int i = 23316;
It's variable.
Or if you write:
String text = "PotatOS";
it's still variable.
@#3.2.1 Oh, i'm trying to do an log block but it always face up, can you help me?