Wooden log-type placement

Started by Matt_Rethyu on Mon, 05/22/2017 - 20:04

Topic category: Help with modding (Java Edition)

Last seen on 20:05, 30. May 2017
Joined May 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Wooden log-type placement
Mon, 05/22/2017 - 20:04

Hi everyone!

Could any of you explain to me as simply as you can how to make my block behave like wooden logs do, meaning it faces upwards when placed on the top or bottom of a block and sideways when placed on a side of the block?

I'm pretty sure it's determined by "Custom 3D model type" JSON file, but I've tried messing around with it using configs of vanilla logs with no success.

Last seen on 20:05, 30. May 2017
Joined May 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
The block I created using
Wed, 05/24/2017 - 18:09

The block I created using this tutorial doesn't really do what I want. It does rotate, but not based on the face it's placed on like logs do but rather based on relative player's position. And it can either be horizontal or vertical, not both.

Is there any mod created by MCreator that adds its own logs? I might try to contact authors directly

Last seen on 00:21, 11. Aug 2019
Joined Aug 2013
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
First, your block must be an
Wed, 05/24/2017 - 20:09

First, your block must be an instance of or extend BlockLog , BlockOldLog or BlockRotatedPillar. Then in blockstate .json file you need to assign a model for each of the axis (x,y,z) and also one for a state when the log has no direction (the full bark block).

Last seen on 20:05, 30. May 2017
Joined May 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
I'd like to think that I
Wed, 05/24/2017 - 21:15

I'd like to think that I almost know what that means. However, I'm a noob, and as I've found just replacing Block with BlockLog in "extends Block" didn't work, even after I imported BlockLog in a flash of noob genious.

My adventure with MCreator started literally two days ago, and I know no Java. I appreciate your tip, I really do, but you'll need to be a lot more specific if I'm to understand a thing.