Making a Tree

Started by Felix_Bird15 on Sun, 02/23/2020 - 11:41

Topic category: Help with MCreator's application

Last seen on 14:37, 25. Feb 2020
Joined Feb 2017
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
Making a Tree
Sun, 02/23/2020 - 11:41

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

0Upvote this forum topic
Last seen on 00:22, 16. Mar 2020
Joined Jan 2020
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
that im unable to help with
Sun, 02/23/2020 - 18:08

that im unable to help with

0Upvote this forum topic
Last seen on 09:38, 26. Mar 2020
Joined Sep 2019
User points:

User statistics:

  • Modifications:
  • Mods of the week:
  • Forum topics:
  • Comments:
  • Wiki pages:
  • Tracker tickets:
  • Invalid tickets:
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.

0Upvote this forum topic