Topic category: Help with MCreator's application
I've built a mod that adds custom-modeled crops to Minecraft. (Not "cross" or "texture" custom model but full, often double height blockmodels.)
By creating blocks and then using update tick events to call a procedure that checks light level and time of day before replacing the previous growth stage with the next growth stage, I have functional crop growth. Harvesting using a spawn gem procedure that can be called when the last growth-stage block is right-clicked works to harvest.
Apart from not being able to check blockstates in order to directionally orient trellis for certain vines and some other directionally-oriented crops, I'm happy enough with how it's working. I understand from this post that directional blockstate checking is a planned feature, so I'll just wait on that for now. Once custom blockstate creation and changing are features (I hope that they will be) I imagine I can just switch all growth over to an "age" blockstate like vanilla crops use. But with block models and not just "cross" or "double cross" texture-type models I don't know if that is possible, so I'll try it when I can. (If anyone knows an easy way to do this currently, please let me know.)
In the meantime, I'd like to build in additional requirements for growth. To be more specific, I'd like to include checks that would require dependency on other mods. For example: I'd like to be able to require grapevine growth to only happen during different seasons (those from the Serene Seasons mod, for instance.) In the spring a vine can grow to stage one, then early summer stage two, late summer stage three and the fall stages four and five (harvest). In the winter, it can be replaced by a "dormant" model.
I imagine being able to do this the same way I check for light level or time of day, but by checking a different, modded variable (is it a variable that I'm looking for?).
Can anyone help explain how I might be able to do this?
Please give detailed instructions, as I'm not familiar enough with how the code works yet.
I'll note that I do know how to install mods in the testing environment (place the mod in forge/run/mods, for those searching for an answer for this) but don't know how to find or call the variables(?) that would tell me what season it is.
Thanks for your help!