Make block break like cactus or sugar cane

Started by Trehmor on Thu, 12/10/2020 - 20:22

Topic category: Help with modding (Java Edition)

Last seen on 17:27, 11. May 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
Make block break like cactus or sugar cane
Thu, 12/10/2020 - 20:22

I want to make a plant (actually it is a block) that when i break it, it breaks all of the same blocks above like cactus, sugar cane or bamboo do. Theres is any way to do this?

Last seen on 13:42, 23. Mar 2022
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
There are ways do do this…
Thu, 12/10/2020 - 22:47

There are ways do do this with procedures but im not sure exactly what procedure to use. it will be something along the lines of test what block type is above (+Y) and if it matches designated type break the block. then you would go to the block settings under triggers and use the procedure for the "when block destroyed by player".

Last seen on 17:27, 11. May 2022
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
i tried that but when i do…
Fri, 12/11/2020 - 02:01

i tried that but when i do that, only 1 block above the one i broke drops, the others stay floating :c

Last seen on 01:03, 16. Dec 2020
Joined Dec 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
You can make a procedure…
Fri, 12/11/2020 - 06:35

You can make a procedure that checks the blocks above until it doesn't find sugarcane. Ex 4 canes. Then have it set to a variable that says how many y up to break.

Last seen on 15:07, 10. May 2022
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • Tracker tickets:
  • MCreator plugins:
  • Comments:
If not get block below (list…
Fri, 12/11/2020 - 11:04

If not get block below (list needed block )
then remove block at  pos (x y z)