Breaking Modified blocks doesn't regenerate them
martdamp opened this issue · 5 comments
Hey Nathan,
If you break a block that has been modified, then when you break one of those blocks it doesn't regenerate the block. I created a spell to test this and I have a 100% succes rate at recreating this bug. Just cast the spell, break some of the blocks and wait till the spell undos.
Greetings, martdamp
earth_test:
icon: stone
actions:
cast:
- class: ChangeContext
target_offset: 0,1,0
actions:
- class: Disc
radius: 5
actions:
- class: Cover
actions:
- class: ModifyBlock
- class: Delay
delay: 500
- class: Disc
radius: 5
actions:
- class: Brush
brush: erase
actions:
- class: ModifyBlock
speed: 0.4
direction: 0,1,0
parameters:
target: block
y_size: 1
brush: sand
undo: 10000
falling: true
I think that’s intentional. If you break a block by hand, it’s broken. I don’t think it makes sense to restore it, it’s just as if you had broken a block without casting a spell first, right?
When you break a block that has been changed it won't drop anything.
My 2 ideas would be then:
1: Drop the original block
2: Undo
But if you want, I'll add an option for #1.
I feel like either of those solutions will be confusing and just cause someone else to open up a bug, e.g. "I broke a wood block and got dirt back" or "I tried to break a wood block and it turned to dirt".