Naturally generating plants grow like vines on a tree?

Started by _DOS on

Topic category: Help with modding (Java Edition)

Last seen on 12:00, 15. Apr 2019
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Naturally generating plants grow like vines on a tree?

Hi,

I'm attempting to make a plant which naturally generates and grows on trees, like vines. How can I accomplish this without generating a complete new tree structure with the plant on the tree, and have that generate.

Also, do I need to have the plant have a custom model for it to be flat against the tree? I don't need it to be "climbable" like regular vines.

Thanks.

Last seen on 01:26, 21. Jan 2020
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Under the “on block update”…
Thu, 04/11/2019 - 14:56

Under the “on block update” procedure slot, if you make and if statement like

if 10 * random 0-1 < 1

    Place block at x: x y: y - 1 z: z (the modded vine type block)

The “if” is purely there to make it not immediately grow. Then (I’m not sure if rotation is accounted for when making vines) if you make a biome, and make a custom tree (perhaps the same blocks as vanilla trees) except make “generate vines” true and put the custom block in the vine block slot. Hope this helps!

Last seen on 12:00, 15. Apr 2019
Joined Apr 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you. Having the random…
Thu, 04/11/2019 - 15:18

Thank you. Having the random growth procedure in the logic section makes it easier, instead of relying on the plant function to do it for me. Now I still need to figure out how to make the block "flat" against walls, e.g. the tree trunks.

Last seen on 01:26, 21. Jan 2020
Joined Jan 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I think you may need a…
Fri, 04/12/2019 - 18:17

I think you may need a custom block model to make it flat, I’m not certain if rotation works on block models, it probably does though. I would look at the Minecraft block model for vines and go off that. If not, rotating rails 90 degrees vertically may also work.