Cultivation of crops

Started by Dilly on

Topic category: Help with Minecraft modding (Java Edition)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Cultivation of crops

I have a question about adding textures for crops. Do I need to create multiple sprites for a single block texture? And how do I change their textures? I couldn't even find how to change the refresh rate.

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Custom crops are a…
Fri, 03/27/2026 - 00:06

Custom crops are a complicated topic. You need to use blockstates (with the blockstates plugin) and create a texture & blockstates for each stage of growth. Then you can make a procedure that checks if the plant is below the maximum growth stage and if so, then adds one growth stage (changes the blockstate). Attach that procedure to the "On block random ticked" slot. You can also make the block bonemealable and put that procedure in the "On Block Bonemealed" slot.

Then you need to add the drops. In an "On block broken" procedure, you can check the growth stage of the blockstate and manually spawn items depending on the growth stage (seeds for < max and product/plant for max).

I used this method to create a custom hemp plant in one of my mods.

Hope this helps! :)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you. I'll try that.
Fri, 03/27/2026 - 06:39

Thank you. I'll try that.

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Should I use a random tick…
Fri, 03/27/2026 - 08:15

Should I use a random tick update or a constant one?

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And does the blockstates…
Fri, 03/27/2026 - 08:31

And does the blockstates counter start at 1 or 0?

 

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You want to use random ticks…
Fri, 03/27/2026 - 09:38
  1. You want to use random ticks, as that's what vanilla crops use and it will make your plant randomly grow rather than at a fixed rate.
  2. 0 is the normal block (texture, etc.) defined in the Block mod element. 1, 2, 3, 4, etc. are the block states in the Blockstates mod element.
Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Got it. Thanks
Fri, 03/27/2026 - 09:43

Got it. Thanks

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I have a question about…
Sat, 03/28/2026 - 15:33

I have a question about creating sprites for crops. I made a PNG texture, but in the game it has a black background, even though there’s no background texture in Mcreator or in the system where I created it.

Joined Jul 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Hey LordZintick, im having…
Fri, 04/10/2026 - 11:59

Hey LordZintick, im having issues finding an "on block broken" procedure. Ive found "when block destroyed by player" but that obviously only gets called when destroyed by a player specifically; All water based harvesting methods cease to function.

Perhaps you can help :)

Joined Aug 2025
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Try using “update on tick”…
Fri, 04/10/2026 - 18:12

Try using “update on tick” and check whether the block at coordinates block has been destroyed