Started by
modmakerc_
on
Topic category: Help with Minecraft modding (Java Edition)
how can i make a block (eg watermelon) that was in the game previously both a block and edible like a cake?
Edited by modmakerc_ on Tue, 06/14/2022 - 07:09
for a previously ingame block, I would make 5 or so "stages" of eating it all w/ custom models and just make a script where when you right-click on it, you get hunger and its replaced by the next stage. You could then make the first stage generate wherever there would be a watermelon by setting the can replace to watermelon and cranking the amount to somethin massive. That may lag and I have no clue how you could tackle placed watermelons, but it could work. I also think that it MAY be possible to remake minecraft objects by naming something new the same as what you want to remake is called internally in game eg. what you type to setblock/give. Hope I helped.
DISCLAIMER IDK IF THIS WILL WORK
I can't write a script for a block in minecraft in the procedure section, I can only write for new blocks I've added.
This tutorial by NorthWestTrees might help you!
https://www.youtube.com/watch?v=3EHbePhGLME
Thanks, but I need to make a previously in-game block edible. Not a new block.
Try making the different stages and when you right click the melon it would get replaced with the stage below? maybe?