How to make a tree and leaves?

Started by chuchundrell on Thu, 08/24/2017 - 13:18

Topic category: Help with modding (Java Edition)

Last seen on 09:46, 25. Aug 2017
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to make a tree and leaves?
Thu, 08/24/2017 - 13:18

I want to make eurasian aspen. I've already made wood block, but I dont't know how to make saplings to drop from leaves with definite frequency. I also don't know how to make a sapling to become a tree. Help please.

P.S. Sorry for mistakes, English is not my native/main language.

Last seen on 12:58, 23. Sep 2019
Joined Aug 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
That's quite a bit
Thu, 08/24/2017 - 16:59

That's quite a bit complicated and I don't know if it's really possible but let's see...

  1. You have to create your .schematic of your tree if you don't want your tree to be a common vanilla one, so make your log block (done) and leaves block.
    Export your mod and put it in minecraft, then open it and create with your custom log and leaves a tree as you like.
    Once you've done, close minecraft and open that world in MCEdit (I recommend MCEdit 2), select your tree and export the .schematic.
  2. Now Create your sapling block (create sapling texture and set the block model to cross X). Create new event on block rightclicked, set as a condition itemInPlayersHand and put bonemeal, then make a stack event. In that, add new event, set as a condition randomPossibility[x%] (with x = whatever you want your probability to spawn the tree with bonemeal is) and select place schematic. Choose your tree .schematic you made before and add the event.
    Then, always in that stack event, add another one and select consume item in inventory and select that you consume 1 bonemeal at click. Then press on Add event.
  3. Now you have to edit your leaves block. Remember to set its drop amount to 0 and make an event so when block destroyed by player --> spawn gem and add condition randomPossibility[x%] (x = whatever number you want) and choose your sapling block to be "spawned as a gem". 
    To let your leaves drop your sapling blocks when you've destroyed the log, it's a "bit" complicated.
  4. At last you only need to create your Biome and set your tree .schematic ​as trees.

Maybe for bonemeal you could use global events but I prefer this since you cannot edit global events code

Last seen on 09:46, 25. Aug 2017
Joined Aug 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
RE:That's quite a bit
Fri, 08/25/2017 - 07:03

@#1 Thank you very much! You're my saviour!

Last seen on 15:15, 29. Mar 2019
Joined Feb 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
RE:That's quite a bit
Fri, 08/25/2017 - 20:37

and if you do something like:when in specified spaces the block is not your tree's log the leaves start to randomly destroy and drop randomly their sapling or something like this?

i think it can be made because the tree is a schematic and can't be different so you will know were exactly the block had to be

 

sorry for bad english but it isn't my main language

Last seen on 16:38, 10. Dec 2019
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
how do you that canshow like
Fri, 08/25/2017 - 20:39

how do you that canshow like pics or video  want i dont get that 

Last seen on 08:13, 17. Sep 2017
Joined Jul 2017
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make your tree as a structure
Sat, 08/26/2017 - 00:50

Make your tree as a structure 

Last seen on 16:38, 10. Dec 2019
Joined Mar 2016
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
no i mean how 
Sat, 08/26/2017 - 03:23

no i mean how 

Last seen on 21:54, 30. Jul 2020
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
How to do a random chance…
Wed, 03/18/2020 - 18:45

How to do a random chance operation?

Last seen on 21:31, 26. Sep 2020
Joined Jun 2015
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
When you create your…
Wed, 03/18/2020 - 20:11

When you create your procedure, you can select a template, just select "Do with 70% chance" and then, you can change the number to change how random is your thing.

Last seen on 21:54, 30. Jul 2020
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Cool, also how would we make…
Wed, 03/18/2020 - 20:19

Cool, also how would we make it decay? I tried making a procedure to check a 3x3x3 area (I'll increase so my tree doesn't fall apart), but whenever the leaf breaks (which it breaks even if there's a log next to it), it becomes a ghost block.

Last seen on 21:54, 30. Jul 2020
Joined Jul 2014
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Nevermind, I'm just…
Wed, 03/18/2020 - 20:50

Nevermind, I'm just following a tutorial.

Last seen on 06:03, 27. Sep 2020
Joined Jun 2019
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
dude just use the leaf block…
Thu, 03/19/2020 - 04:44

dude just use the leaf block base and tag logs as logs

it is so much easier

Last seen on 19:17, 7. Sep 2020
Joined Apr 2020
User points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Where is the place schematic…
Sat, 05/23/2020 - 08:48

Where is the place schematic block?