Started by
Paulypus
on
Topic category: Help with Minecraft modding (Java Edition)
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? If you use tick update, make sure to use random tick update so generated blocks even tick.
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?
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 :)
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
Yes! Absolutely you can use it!
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.
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...
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.
some times they grow too fast too, forgot to mention that...
Ok ill try that
It grows now
I'm sorry it's not exact like using a timer, glad your plant is working :)