Update Tick Procedure for Spawning Tall Plant

Started by Tucson on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 month ago
Joined Feb 2020
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
Update Tick Procedure for Spawning Tall Plant

I want to make a new plant like tall grass and rose bush that spawn in a biome, but I was hoping someone could show me what the Update Tick procedure would look like for the bottom block if I wanted the top block to spawn on top of the bottom one. There is this thread (https://mcreator.net/forum/43203/how-do-i-create-plant-two-blocks-tall-when-placed-peony), but I was not able to open up the file.

Thanks

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
are you wanting a different…
Tue, 06/30/2020 - 04:49

are you wanting a different block for both top and bottom? or the same blocks?

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
sorry, I didn't read your…
Tue, 06/30/2020 - 05:12

sorry, I didn't read your link before first post... I did a quick mod workspace of how it can work.. there are more ways to get the job done, but I set you up with the easiest way.. the first plant is the one that spawns, the second doesn't spawn (set to 0).. the update tick tells it to place the topper block at y + 1.. Sorry it's sloppy..

http://kinyoshimods.com/plantwithtopper.zip

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
also the to plant drops the…
Tue, 06/30/2020 - 05:15

also the to plant drops the bottom one..

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
heck, the top plant breaks…
Tue, 06/30/2020 - 05:25

heck, the top plant breaks on tick.. guess I should look into it more.. sorry man, haven't tried to make a plant with a different top yet.. 

 

Active 1 month ago
Joined Feb 2020
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
Thanks for the help Kinyoshi…
Tue, 06/30/2020 - 17:44

Thanks for the help Kinyoshi, it really helped and I am super close to achieving my goal! The top block breaks because it is a plant instead of a block (a block won't break). One thing though, the top block does not spawn on top of the bottom one. What exactly does the attached procedure do?

 

Procedure example

Active 1 month ago
Joined Feb 2020
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
(No subject)
Tue, 06/30/2020 - 17:45

Procedure example

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
That is the % chance it does…
Tue, 06/30/2020 - 18:19

That is the % chance it does the procedure on each tick..  the way I did it is the really bad example was 70% chance to grow on each tick.

That link you had on your first post, I downloaded and converted to 2020.3 mcreator..  that has stuff we need for plant tops..

In a little bit, I'm going to work more on this for you. Unless you already got it working,..

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
Hey I wanted to let you know…
Wed, 07/01/2020 - 00:23

Hey I wanted to let you know that I finally got it working :), the plant spawns as the plant, then when it ticks I switches to the block version with the topper, when you break that it drops you the plant to start it over.. it only drops one plant item when you break either top or bottom..  and it hurts you because it's a cactus.. sorry bout the textures I used, they were dummy textures I was messing around with for my mod., you're free to use them if you'd like :).

I'm also going to post this in the tutorial section.

https://www.mediafire.com/file/8ls2xiu24fymz3k/plant_with_topper_tutorial_1.15.2.zip/file

 

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
the bounding box dimensions…
Wed, 07/01/2020 - 00:28

the bounding box dimensions could use some work though :(

Active 1 month ago
Joined Feb 2020
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
Kinyoshi, I can't thank you…
Wed, 07/01/2020 - 03:46

Kinyoshi, I can't thank you enough for consistently helping me out with this!! Really means a lot.

https://imgur.com/ivEgeVL

Active 2 years ago
Joined Dec 2017
Points:
1046

User statistics:

  • Modifications: 7
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 332
Not a problem man, I'm glad…
Wed, 07/01/2020 - 03:51

Not a problem man, I'm glad too, now I have this kind of plant in my modding arsenal :D

Active 1 month ago
Joined Feb 2020
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
Shoot, one more thing: I can…
Wed, 07/01/2020 - 03:57

Shoot, one more thing: I can place the bottom block on top of eachother... is there a procedure to make it so this can't happen?

Active 1 month ago
Joined Feb 2020
Points:
653

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 6
***I can place the item, not…
Wed, 07/01/2020 - 03:58

***I can place the item, not the bottom block, on top of one another.