How to make a food item plant seeds?

Started by Fox_trot on

Topic category: Help with modding (Java Edition)

Last seen on 08:07, 16. Dec 2019
Joined Sep 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a food item plant seeds?

I'm back again!

I'm making a plant that is similar to that of the sweet berry bush. I want the sweet berry to have the same affect where it is both edible and the seed for the bush. As of right now there is no variable that I know of on a food for when it is right-clicked on a block, right now I have it as when it is right-clicked which spawns the plant right where the player is standing but also is edible at the same time. 

Maybe the developers could add a right-clicked on block event to the food item.

Thanks

Last seen on 14:12, 3. Jun 2023
Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
np, glad it worked!
Thu, 09/26/2019 - 12:53

np, glad it worked!

Last seen on 15:54, 6. Jun 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I copied the exact Code you…
Thu, 01/16/2020 - 17:15

I copied the exact Code you posted just 3 replies above this one SomeoneElse but it doesnt work and give compile Errors 

Last seen on 14:12, 3. Jun 2023
Joined Nov 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is your mod in 1.12 or 1.14?…
Thu, 01/16/2020 - 17:41

Is your mod in 1.12 or 1.14? This code is for 1.12. Another thing is, this works only if your procedure is named "SpawnBerryBush".

Last seen on 15:54, 6. Jun 2023
Joined Dec 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The name of my procedure is …
Thu, 01/16/2020 - 18:40

The name of my procedure is "SpawnBerryBush" and I use 1.14 do you know what to Change for it to also work in 1.14?