How do I give structures a center when spawning?

Started by Leoshortnose on

Topic category: Help with Minecraft modding (Java Edition)

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do I give structures a center when spawning?

Hi! So, I'm trying to add palm trees into my mod using structures and then spawning those through features, but it keeps on spawning either floating or buried a bit underground. I assume it's because of the fact that the structure block is the defined part where it'll place the tree and not directly under the trunk. I wanna know how to give a structure a center so that my trees don't float or get buried a bit by sand. It's really annoying me and I can't figure out what to do. Help.

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the coords are the relative…
Fri, 10/25/2024 - 18:42

the coords are the relative coordinates from the corner of your structure

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you!! ^^
Tue, 10/29/2024 - 14:12

Thank you!! ^^

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hi, I'm back. Uhhh, no, it…
Tue, 10/29/2024 - 14:37

Hi, I'm back. Uhhh, no, it didn't work :(( I don't know why exactly. They still sometimes float there or are dug in the sand. I think it's because some variants have their trunks in different places than others, but I'm not 100% sure. Could you help me with this?

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Oh yeah you'd have to make…
Tue, 10/29/2024 - 14:39

Oh yeah you'd have to make separate features for each variant, and possibly rotation if the trunks aren't in the perfect center..

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
...separate features? T^T
Tue, 10/29/2024 - 14:41

...separate features? T^T

Joined Dec 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yeah separate mod elements
Tue, 10/29/2024 - 15:08

Yeah separate mod elements

Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I tried the same thing I was…
Tue, 10/29/2024 - 15:12

I tried the same thing I was doing before to spawn them (with random features) but this time with offsets on the structure things to put it in the centre... I have no idea how I didn't think of that. Also, I would've done separate mod elements, however I want these palm trees to spawn in another biome and be significantly more common, so I'd have to have 7 extra tree features, making that 14 in total. That's too much for me >.<