Make block break like cactus or sugar cane

Started by Trehmor on

Topic category: Help with modding (Java Edition)

Last seen on 17:39, 15. Jan 2024
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make block break like cactus or sugar cane

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 23:35, 19. Apr 2024
Joined Aug 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:39, 15. Jan 2024
Joined Feb 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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:
  • 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 14:36, 6. Mar 2024
Joined Jul 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • 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)