Making a Tree

Started by Felix_Bird15 on

Topic category: Help with MCreator software

Joined Feb 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Making a Tree

Hello. I am trying to make a tree on my mod, where it is supposed to work as a normal tree. But i am having 2 problems as of now:

1. Needing a 50/50 chance for the leaves drop

 

2. Needing to make the leaves disappear after the wood being cut

Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So... To make the leaves…
Mon, 02/24/2020 - 10:16

So... To make the leaves disappear when there is no wood around is to set this to the "block tick update (set this to be a number that makes it have a long time to check)" "if block is touching (just get the co-ordinates of all around the block) then set global variable x to 1 and set block to be x (maybe, might be a bit messy)" also have another if statement in there that says "if block around = x then set block to equal x (x in this instance is the block that says that it is touching wood)" If you would like me to expand further on this I will make a google document on this. To get the 50/50 chance of dropping a leaf you have to set it's drop item to air and then put "if random 1,0 > or = then spawn x gem  (x equals leaf block) "

 

Sorry for my possibly confusing writting,

Shadow

 

P.S. If you need further help I will be happy to assist.