Custom plant not growing and not giving correct item

Started by Paulypus on

Topic category: Help with modding (Java Edition)

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom plant not growing and not giving correct item

I have a crop in a mod I'm working on that is supposed to drop fruit that give different effects based on the biome it's grown in. But when I actually try to grow it in game, 2 things happen:

1. The crop wont increase growth stages

2. When I right click the crop's final growth stage to harvest it, it drops the default fruit that gives no effects instead of the biome's specific fruit

Any help would be greatly appreciated

Here is the workspace file:

https://drive.google.com/file/d/15buEv1EY9ClIORYmUEwmQWu1-DpxRpOY/view?usp=sharing

How do you control growing?…
Mon, 11/09/2020 - 08:57

How do you control growing? If you use tick update, make sure to use random tick update so generated blocks even tick.

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So here's the thing.. I do…
Mon, 11/09/2020 - 09:29

So here's the thing.. I do my plants way different than you do, so unless you're okay with me doing your plants in the way I do mine (and only way I know how, honestly) I will do this just to make it work for you because OCD.. and I'm pretty sure I can do your different fruit drops with a different procedure..

I don't use NBT tags for my stuff is the difference, I use the procedures to check for daytime or nighttime and have a low enough % chance to spawn next plant, I can get it to feel like a timer.. and have been working on a timer procedure for my own plants..

Also, the way you do the cooldown and your sword is bad @$$ man.. may I use your procedure in my mods?

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, you are not resetting…
Mon, 11/09/2020 - 09:43

Also, you are not resetting your NBT count value after each growth.. and something else.. lost my choo choo train of thought.. I'm going to go back to you stuff to get you going faster :)

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
So I took out you biome…
Mon, 11/09/2020 - 11:42

So I took out you biome detect procedure, didn't need it for my version of the drop procedure.. and I changed the plants dropping seeds to be only the first stage after planting, the other stages I changed to zero.. I think I got all of the biome checks how it should work good for you, except the cave one, not sure how you wanted to do that so I just have it to check if the plant can not see sunlight (so it would have to be blocked from the sun to drop the cave fruit).. I also added a fun thing for you to the final stage (walkthrough damage), I also added the creative mode check when planting the seeds (creative keeps it in inventory, other modes remove it when planting)

it does grow to the next stages, it takes a while (the random number is from one of my plants), so you can change it around, make it 0.01 for 1% grow on tick.. Sorry for changing it to my way for plants, only way I know..

also, I used to latest snapshot for 2020.5 because that is what I had loaded up.. 

http://www.mediafire.com/file/drws21irufu0pb3/adventure_redux_moddified_for_plants.zip/file

 

seed remover on plant

soul sap damage

stage 1

stage 2

stage 3

get biome

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes! Absolutely you can use…
Mon, 11/09/2020 - 15:39

Yes! Absolutely you can use it!

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The plants give the correct…
Tue, 11/10/2020 - 03:22

The plants give the correct fruit, but they don't seem to be growing. I have the chance set to 1%, so it should grow pretty fast. Any ideas on why that might be? I also have force plant ticking on.

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry man, I use custom…
Tue, 11/10/2020 - 06:16

I'm sorry man, I use custom sized blocks, small plants, and big plants for my growables.. I forgot that each one has a completely different set of numbers for the update tick, the numbers I gave you in the beginning were for plants that use a block base instead of plant.

If you use the numbers below, that should suit you much better.

I also should have noted before, the way I'm doing my plants, some times some plants just stop growing, so I just considered this a feature like real life plants :D...

big plant value

big plant value 2

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, not to intrude, but…
Tue, 11/10/2020 - 06:19

Also, not to intrude, but you should color the fruit, I would do it based on the region, so desert ones are tan, forest ones are green, ocean ones are blue...

Good ideas in your mod though, different drops on different biomes is neat. and the sword.

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
some times they grow too…
Tue, 11/10/2020 - 06:54

some times they grow too fast too, forgot to mention that...  

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Ok ill try that
Tue, 11/10/2020 - 19:01

Ok ill try that

Last seen on 03:52, 31. Dec 2022
Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It grows now
Wed, 11/11/2020 - 02:00

It grows now

Last seen on 21:24, 26. Dec 2022
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I'm sorry it's not exact…
Wed, 11/11/2020 - 03:39

I'm sorry it's not exact like using a timer, glad your plant is working :)