Bender: type: assignment Interact Scripts: - 1 NPC_Bender NPC_Bender: type: interact actions: on assignment: - trigger name:damage state:true steps: 1: click trigger: script: - define %bender_type% # ^^^ # Make sure you set this flag somewhere # - if %bender_type% == fire { - define blocks li@m@netherrack|m@fire|m@lava # ^^^ # Blocks to bend } else if %bender_type% == water { # etc } else if %bender_type% == earth { # etc } else if %bender_type% == air { # etc } - - define lift_blocks ].within[70]> + - define lift_blocks # ^^^ # set the range - flag remaining_blocks:|:%lift_blocks% - run s@BenderBlocks as: BenderBlocks: type: task script: - if > 0 { - define location - define block <%location%.material.id> - modifyblock %location% m@air - spawn e@falling_block,%block%[velocity=] %location% save:%location%_block - push destination: speed:0.1 - flag remaining_blocks:<-:%location% - wait d@1.5s - run s@BenderBlocks as: }