Started by
Trehmor
on
Topic category: Help with Minecraft modding (Java Edition)
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?
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".
i tried that but when i do that, only 1 block above the one i broke drops, the others stay floating :c
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.
If not get block below (list needed block )
then remove block at pos (x y z)