Started by
UraniumCruncher
on
Topic category: Help with Minecraft modding (Java Edition)
I would like to create a new way of placing the sweet berry bush, requiring you to extract seeds from the berries prior to planting them, but I would need to remove the ability to place a sweet berry bush using sweet berries. Is there any way I can do this?
Edited by UraniumCruncher on Fri, 10/10/2025 - 23:16
you would need to check if the player is holding sweet berries when a sweet berry bush is placed and then cancel the event
I don't know if I am doing this wrong, but the berry bush shows for a second and it gives me duplicates sweet berries in item form.
for the duplicate berries I would just remove 1 sweet berry from the player's inventory. not too sure about the bush showing for a second
It blinks because you're only cancelling it server-side.
If you want it to look like this,
you have to do a tiny bit of "custom code" because for some reason mcreator thought it'd be a great idea to only trigger the "Player right clicks block" event when you right click with your main hand......
so make your procedure like,
and then lock it, and reopen it
in here remove these lines,
and change this,
to,
Thank you so much friyes! That worked!