I need help figuring out how to code a flower pot

Started by Matt The Banana on

Topic category: Help with Minecraft modding (Java Edition)

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I need help figuring out how to code a flower pot
Fri, 04/05/2019 - 02:31 (edited)

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.

https://imgur.com/a/rKC8aLd

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…
Thu, 04/04/2019 - 15:48

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

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Or simply do   If -> Get…
Thu, 04/04/2019 - 15:56

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

Joined May 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
And use on Block Tick Updatr…
Thu, 04/04/2019 - 15:56

And use on Block Tick Updatr trigger

Neighbor block changes is…
Thu, 04/04/2019 - 16:25

Neighbor block changes is better as there is less load on the computer if the event only happens when the neighbor block changes.

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you guys for your help…
Thu, 04/04/2019 - 22:59

Thank you guys for your help! This information is very useful!

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How would I go about making…
Thu, 04/04/2019 - 23:18

How would I go about making it so you can't place a pot on top of a pot?

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Also, how would I make it so…
Fri, 04/05/2019 - 00:13

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…
Fri, 04/05/2019 - 13:21

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

Joined Sep 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
You canta make the particles…
Sun, 04/07/2019 - 16:47

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