LavaFishing: type: world debug: false events: after player fishes: ## throw hook into lava - if && && : - waituntil rate:1t max:5s - define SplashLocation # Hook entering liquid effect - playeffect LAVA at:<[SplashLocation]> quantity:20 offset:0.3,0.1,0.3 visibility:50 velocity:0,2,0 - playeffect CAMPFIRE_COSY_SMOKE at:<[SplashLocation]> quantity:1 offset:0.3,0.1,0.3 visibility:50 velocity:0,0.01,0 - playsound ENTITY_GENERIC_EXTINGUISH_FIRE at:<[SplashLocation]> # End of effect # - run LavaFishingEvent - drop HookPlaceHolder <[SplashLocation]> - attach to:<[SplashLocation].find_entities.within[0.3].filter[has_flag[HookPlaceHolder]].get[1]> - while : - if && && : - narrate "<&7><&o>Hook in <&c><&o>LAVA<&7><&o>!" - else: # - run LavaFishingReelIn - stop - wait 5t #LavaFishingReelIn: # type: task # debug: false # - define tmpRod # - inventory set origin: destination: slot:HAND # - wait 1t # - inventory set origin:<[tmpRod]> destination: slot:HAND #LavaFishingEvent: # type: task # debug: false # script: # - define TimeToCatch s # - wait <[TimeToCatch]> # - animate ARM_SWING HookPlaceHolder: type: item material: netherite_sword display name: mechanisms: custom_model_data: 1901 HookPlaceHolderFlagging: type: world debug: false events: on HookPlaceHolder spawns: - flag HookPlaceHolder on player picks up HookPlaceHolder: - determine cancelled