Topic category: Help with Minecraft modding (Java Edition)
I'm making a farming mod, and one of the features I'm trying to make is a sort of watering can - used for hydrating crops for a long period of time when the player doesn't have access to place-able water, such as in the nether or very early game before the player has the iron for a bucket or cauldron - but the biggest issue I'm having is not only the fact that I can't figure out how to modify the tag that handles farmland hydration, but also the vanilla function of the hydration level of farmland gradually going down naturally if there is no water block close enough. What would the best way to hydrate all farmland in a 3x3x3 area and keep it hydrated at that exact level for an extended period of time? It's one of the main selling points of my mod, and it would be amazing if I could get it to work as I intended.
Sorry, can't help you, just wanted to see how this is done also..
You can use the setblock command to replace farmland with farmland[moisture=7]. Just figure out a way to get it to execute at the clicked block.
But how would I make it so the [moisture=7] tag stays on the farmland for an extended period of time? The farmland would just dry up again within a matter of seconds otherwise.