Started by
Matt The Banana
on
Topic category: Help with Minecraft modding (Java Edition)
Hello! I am relatively new to Mcreator and I would like to make a "Large Flower Pot" block. I have already modeled the block and inserted the correct bounding box. I would like to ask how I would go about making it that if the block under the flower pot is broken, the flower pot will break and drop the item. I would also like to request assistance on how to go about allowing plants to be placed in the pot (large plants). If possible, it would be helpful if the code was explained in a way that I can place it in the element editor. I don't think that it's interface is very user friendly.
a picture of the item is located on the link above
Edited by Matt The Banana on Fri, 04/05/2019 - 02:31
You can use on neighbor block changed trigger and check if the block below is air and if it is, remove the current block. This is quite simple.
If you need help with procedures, some of these tutorials might help you start: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
Or simply do
If -> Get block in X Y=-1 Z = Air
Do -> Remove block at X Y Z and drop at X Y Z
And use on Block Tick Updatr trigger
Neighbor block changes is better as there is less load on the computer if the event only happens when the neighbor block changes.
Thank you guys for your help! This information is very useful!
How would I go about making it so you can't place a pot on top of a pot?
Also, how would I make it so that it has custom particles when broken like a normal flower pot? How would I make it have a 2 dimensional model?
You can check if block below is pot and don't break it in such case. For particles, you can use procedures too. I suggest you to watch our tutorials playlist to get a basic grip for procedures: https://www.youtube.com/playlist?list=PLAeL-oIFIEngE6jRgFYeFMfuj8WQsO3Ei
You canta make the particles move in the same way as any block that is broken. You also can’t remove particles from spawning in block breakage. If I added particles to it it would have double the amount of particles than usual. And it would be a half half ratio of different particles
This will be fixed, check this page: https://mcreator.net/tracker/issue/48149