Farmland Hydration - Hydrating on click and extending hydration

Started by Linksvix99 on

Topic category: Help with modding (Java Edition)

Last seen on 01:02, 17. Dec 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Farmland Hydration - Hydrating on click and extending hydration

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.

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

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Sorry, can't help you, just…
Fri, 11/20/2020 - 05:04

Sorry, can't help you, just wanted to see how this is done also..

Last seen on 22:49, 17. Mar 2021
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You can use the setblock…
Thu, 11/26/2020 - 18:51

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.

Last seen on 01:02, 17. Dec 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
But how would I make it so…
Fri, 12/11/2020 - 19:38

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.