[TUTORIAL] How to Make a Custom Sapling in 5-10 minutes (Step-by-Step)

Started by bananarang_mods on

Topic category: User side tutorials

Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[TUTORIAL] How to Make a Custom Sapling in 5-10 minutes (Step-by-Step)
Tue, 09/01/2020 - 08:26 (edited)

Hi users, this is a tutorial on how to make your own working sapling!

  1. Make a plant.
  2. Make a texture for the plant. (block texture)
  3. Force plant ticking? to true
  4. Make a structure for your tree.
  5. [+] Update tick procedure (sapling)
  6. if random 0,1 = 0.2 - then: Place structure at x y z: [Tree structure]
  7. Bone meal prodecure (optional): Make a procedure for your plant: When plant right clicked
  8. If holding [Bone meal] then if random 0,1 = 0.3 - then Remove block at x y z  Place structure at x y z: Tree Structure
  9. If the structure's stem isn't where the sapling was, use the Math blocks
  10. Now you have your own working sapling! :)
Edited by bananarang_mods on Tue, 09/01/2020 - 08:26
Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is it possible to make the…
Fri, 06/23/2023 - 13:12

Is it possible to make the trees have variants? Like one is big and the other is small?

Joined May 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
the random [0,1) block isnt…
Sun, 07/16/2023 - 20:52

the random [0,1) block isnt able to be put in an if block

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Replying to @Hexavich and to…
Sun, 09/24/2023 - 18:39

Replying to @Hexavich and to everyone reading this: this is a tutorial on how to make a custom tree with variants:

It's a very long process, but the only one i know without writing code. It should be used if you have 3-4 variants max, because if you have more it will be very long to finish! First read all comments of this thread!

 

1) Create the Log Block and the Leaves Block 

 

2) Create a texture for the sapling. The same texture will be used for both the 3D block and the item!

     Copy-paste the texture and i suggest you to rename them like this: my_sapling_texture_3D    and    my_sapling_texture_item.

 

3) Create a Plant : 

            Set this 2 voices as i did:

                 - Set the textures and in Plant model choose Cross Model

                 - Set Force plant ticking? to Enabled

 

            Tweak all the other voices as you like it.

            Save the Plant object

 

4) Run the client : 

            - Create a superflat world

            - Create all the trees you need

            - Type the following command : /give Dev structure_block

            - Type the following command : /give Dev structure_void

            - Use the structure_block and set xyz limit of the tree

            - Fill the voids with the command : /fill x1 y1 z1   x2 y2 z2   structure_void replace air 

            - Replace the leaves blocks with... the leaves blocks! : /fill x1 y1 z1   x2 y2 z2   my_leaves_block replace my_leaves_block

            - Name the structure and Save it

 

6) Close the Run client, and import the structure from the voice Import structures from minecraft

 

7) Open the Plant you created before and add this 2 procedures (follow the link to get them): 

            When plant right clicked : used to handle the bonemeal interaction with the sapling -> https://pasteboard.co/7coDpxuFUsd5.png

 

            Update on tick : used to handle the normal growing of the sapling based on ticks (the procedure it's basically the same)-> https://pasteboard.co/7PcZsBEn6ana.png

If you don't care about rotation just delete the procedure blocks that handle it.

 

7.1) About the procedure block : 

       - Set Local: sapling_variant to : round[0,1) * 1

       - The last 1 is the number of variants of your custom tree starting from zero!

7.2) About the procedure block : 

       - Place on server-side at  x + x0    y    z + z0     

       - x0 and z0 are numbers that you need to add, because if you let the sapling grow, it will not place the tree structure at the same position of the sapling. You need to test every single variant in the Run client and then add/subtract the x,z position!

 

Hope this helps!

 

P.S.

At the When plant right clicked procedure you need to add something that handles if the player is using bonemeal and then removing it after you clicked on the sapling. I forgot to add it!

Joined Jul 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's me again i forgot…
Sun, 09/24/2023 - 18:47

It's me again i forgot something: 

You also need to create a Structure in MCreator (one for every variant) and then tweak with the voices as you like! (You'll probably need to offset the Y position if i'm not wrong)

This will let you generate the tree during the world generation! 

Joined Jul 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
ummm, idk why but it doesn'…
Wed, 08/28/2024 - 08:54

ummm, idk why but it doesn' work, like i spam click the bone meal on my sapling but it doesn't grow or remove the block