3 downloads
Description:
Hold right‑click to scope — you’ll be immobilized (extreme Slowness), gain Night Vision, a zoomed FOV, a darkened overlay and an enlarged crosshair; while still holding right‑click press left‑click once to fire (the scope exits immediately after firing) and duplicate shots are blocked until the full cinematic finishes. The shot targets your crosshair up to ~200 blocks (it snaps to the top ground at that X/Z) and plays a dramatic multi‑stage sequence of rings, a collapsing “black hole” effect, then a blue soul‑flame sky laser that bores a perfect 10‑block radius shaft straight down to bedrock (bedrock is preserved); the item is put on cooldown for the entire sequence, so use it cautiously.
Manage versions and create new iterations of this mod.
This will create a new mod based on "Black Hole Sky Laser" with your modifications. The original mod will remain unchanged and you'll be credited as the author of the remix.
3
Oct 3, 2025, 03:25 AM
User request: Mod summary: - Name: black-hole-sky-laser-erwr3ru5 (item: "extremely powerful laser") - Minecraft target: Fabric, Minecraft 1.21.5 (loader 0.17.2), Fabric API 0.128.2+1.21.5 environment shown in logs. - Item behavior (original request, full sequence): - Right-click: open scoping overlay that zooms camera, adds night vision filter, and enlarges crosshair so targeting is clear. - While scoping, left-click: fire the cannon, triggering a complex firing sequence: 1. Create an X (white particles) on the ground centered on target. 2. X quickly expands to at least 10 blocks radius. 3. Particles then form a circle around the X symbol. 4. The X symbol starts spinning and quickly speeds up. 5. As it speeds, a second circle of white particles forms and expands to the size of the original circle. 6. Once the second circle completes, the circle of particles vanishes and a large black ball of particles forms (size of original white circle) — visual like a black hole surrounding target. 7. Black ball grows slightly, then collapses down to the original target until it disappears. 8. Once it shrinks and disappears, a massive sky laser (made of TNT and blue particles) appears from the sky, blasting a perfect circle down to bedrock. 9. As it blasts, rings of white particles emit from it to add to effect. - Add appropriate sounds and effects at each stage to realize the black hole + sky laser visual/audio effect. Edit history (chronological, include every edit and all diagnostics/requests): - Edit v2 (first reported crash & root cause): - Symptom: Mod prevented game from launching; Mixin injection failure crash. - Key error excerpt: "Critical injection failure: @Inject annotation on applyNightVisionWhileScoping could not find any targets matching 'tick' in net/minecraft/class_1309." - Diagnosis: LivingEntityMixin attempted to inject into LivingEntity.tick (class_1309), but in MC 1.21.5 LivingEntity no longer has tick (method renamed/moved). Mixin throws InvalidInjectionException => crash on startup. - Notes: class_1309 is obfuscated name for LivingEntity. In recent versions, per-tick logic may be in baseTick() or method_6000(). - Suggested fixes/workarounds provided: - Ensure mod built for MC 1.21.5 + Fabric loader being used (compatibility). - Update mod to a version supporting 1.21.5. - Advanced: Edit the mixin: locate replacement tick method in LivingEntity (class_1309) and change @Inject(method = "tick", ...) to correct method name (e.g., baseTick or method_6000). - User requested: "Please apply a fix to prevent this crash." - Edit v3 (game crash log posted; mod version 2.0.0 shown): - Log header: "[16:41:41] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 2.0.0 - fabric-api 0.128.2+1.21.5 (full nested modules listed in log) - User note: "User was doing: The game was launching" - Request: "Please apply a fix to prevent this crash." - (No new stacktrace details beyond mods list in this edit; implies previous Mixin problem persisted or mod still crashing.) - Edit v4 (new crash log; mod version 3.0.0 shown): - Log header: "[16:48:41] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 3.0.0 - fabric-api 0.128.2+1.21.5 (modules listed) - Request: "Please apply a fix to prevent this crash." - (Implies mod updated to 3.0.0 but crash still occurs at launch.) - Edit v5 (new crash log; mod version 4.0.0 shown): - Log header: "[16:55:20] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 4.0.0 - fabric-api 0.128.2+1.21.5 (modules listed) - Request: "Please apply a fix to prevent this crash." - (Implies further mod update to 4.0.0; crash persists.) - Edit v6 (functional bug report): - Symptom: Scoping overlay not working. - Replacement requested: "Just replace it will slowness 255 which zooms in the fov and stops the player from moving." - i.e., remove existing scoping overlay implementation and instead apply the Slowness effect level 255 to the player when scoping to simulate zoom + freeze movement. - Additional symptom: Weapon is not currently firing. - Action requested: Implement the slowness-255 scoping behavior and fix firing logic. - Edit v7 (latest crash; root cause changed to duplicate packet registration): - Crash summary header: - Time: 2025-10-02 17:22:44 - Description: Initializing game - Exception chain: - java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'black-hole-sky-laser-erwr3ru5' at 'black_hole_sky_laser_erwr3ru5.BlackHoleSkyLaserClient'! - Caused by: java.lang.IllegalArgumentException: Packet type class_9154[id=black-hole-sky-laser-erwr3ru5:fire_laser] is already registered! - Stack trace highlights: - PayloadTypeRegistryImpl.register throws IllegalArgumentException because the packet id "black-hole-sky-laser-erwr3ru5:fire_laser" already registered. - Crash occurs during client entrypoint initialization at BlackHoleSkyLaserClient.onInitializeClient(BlackHoleSkyLaserClient.java:13) where packet type registration happens. - Full startup trace shows Fabric Loader invoking client entrypoints and creating Minecraft client class_310. - User request: "Please apply a fix to prevent this crash." - Implication: mod attempts to register the same custom network packet type twice (client-side entrypoint registers payload type unconditionally, or registered both client and server or multiple times). Must ensure packet registration is done once, guarded, or use appropriate registration API for single registration. Consolidated required actions to satisfy all edits (explicit targets for fixes/implementation): - Make the item implement exact described firing visual/audio sequence, including particle types, sizes, timing, spin behavior, black-hole particle ball, collapse animation, and sky laser with TNT+blue particles, rings of white particles, and sounds. - Replace/repair scoping overlay: - Either re-implement properly for MC 1.21.5 (correct client-side rendering hooks) OR as requested, replace scoping overlay with applying Slowness effect level 255 while scoping to simulate zoom + no movement; also ensure FOV change/zoom occurs (Slowness 255 historically doesn't change FOV by itself — if replacing, apply both slowness and client FOV change). - Fix mixin injection crash: - Update LivingEntityMixin injection target: identify correct per-tick method name in MC 1.21.5 (class_1309) and change @Inject(method = "tick", ...) to the correct method (e.g., baseTick or method_6000) or use an injection target that exists in 1.21.5. - Ensure mixins are compiled/targeted for MC 1.21.5 mappings (intermediary/yarn) and that mixin strictness is handled (optional: add @Environment checks or soft failure handling). - Fix duplicate packet registration crash: - Ensure packet type "black-hole-sky-laser-erwr3ru5:fire_laser" is registered only once: - Register payload type in a single initialization context (e.g., server registers server-side handlers, client registers client-side handlers with unique registration, guard with a static boolean or try/catch to ignore duplicate registration). - Use Fabric's recommended networking registration API patterns (ServerPlayNetworking/ClientPlayNetworking) and avoid registering payload type twice across entrypoints. - Ensure mod build targets Fabric Loader 0.17.2 + Minecraft 1.21.5 and test to confirm: - No mixin InvalidInjectionException. - No duplicate packet registration IllegalArgumentException. - Scoping behavior functions per requested replacement (slowness 255 + zoom) or proper overlay restored. - Firing sequence triggers and completes visual/audio sequence; firing actually works when left-clicking while scoping. Versions and observed states while iterating: - Initial mod (no explicit version in original request) — spec of item/functionality. - v2: reported mixin injection error (tick not found in LivingEntity / class_1309). - v3: mod version 2.0.0, crash at startup (mods list shown). - v4: mod version 3.0.0, crash at startup (mods list shown). - v5: mod version 4.0.0, crash at startup (mods list shown). - v6: functional bug: scoping overlay broken; requested replacement with Slowness 255 and noted firing not working. - v7 (latest): runtime crash at client entrypoint due to IllegalArgumentException: packet id black-hole-sky-laser-erwr3ru5:fire_laser already registered — occurs in BlackHoleSkyLaserClient.onInitializeClient at line registering packet type. All user requests to apply fixes: - Fix mixin injection target to match MC 1.21.5 method names or update mod/mappings. - Prevent duplicate packet registration (ensure single registration or guard). - Replace scoping overlay with Slowness 255 zoom-and-stop movement if easier; fix firing logic so weapon fires while scoping. - Ensure final mod build runs cleanly on Minecraft 1.21.5 + Fabric Loader 0.17.2 + Fabric API 0.128.2+1.21.5, producing the described particle/sound/laser behavior. Edit v8: The scoping mode / slowness should only be active when right click is held. Instead of right click constantly triggering an action on the gun, it should just trigger the item once and activate the most as long as it is held. Also, the gun still isnt firing when left clicked. Edit v9: Now the scoping works great, but left clicking should trigger the attack sequence with a cooldown that lasts until the sequence ends Edit v10: The gun still wont fire: this is the full original sequence. Make it happen. When scoping, the player can left click to fire the cannon. When the cannon is fired, it begins a complex firing sequence. First, it creates an x made of white particles on the ground. The x quickly expands to be at least 10 blocks in radius. The particles then form a circle around the x symbol. After this, the x symbol starts spinning. It quickly speeds up, and as it speeds up a second circle of white particles forms and expands to the size of the original circle. Once this happens, the circle of particles vanishes and instead a large black ball of particles forms, the size of the original white circle. It should look kind of like a black hole surrounding the original target. At first it grows slightly, and then it collapses down to the original target until it disappears. Once it shrinks down and disappears, a massive sky laser made of tnt and blue particles will appear from the sky, blasting a perfect circle down to bedrock. As it blasts, rings of white particles will come out from it to add to the effect. Add appropriate sounds and effects to make this black hole sky laser come to life.
1
Oct 3, 2025, 02:58 AM
User request: Mod summary: - Name: black-hole-sky-laser-erwr3ru5 (item: "extremely powerful laser") - Minecraft target: Fabric, Minecraft 1.21.5 (loader 0.17.2), Fabric API 0.128.2+1.21.5 environment shown in logs. - Item behavior (original request, full sequence): - Right-click: open scoping overlay that zooms camera, adds night vision filter, and enlarges crosshair so targeting is clear. - While scoping, left-click: fire the cannon, triggering a complex firing sequence: 1. Create an X (white particles) on the ground centered on target. 2. X quickly expands to at least 10 blocks radius. 3. Particles then form a circle around the X symbol. 4. The X symbol starts spinning and quickly speeds up. 5. As it speeds, a second circle of white particles forms and expands to the size of the original circle. 6. Once the second circle completes, the circle of particles vanishes and a large black ball of particles forms (size of original white circle) — visual like a black hole surrounding target. 7. Black ball grows slightly, then collapses down to the original target until it disappears. 8. Once it shrinks and disappears, a massive sky laser (made of TNT and blue particles) appears from the sky, blasting a perfect circle down to bedrock. 9. As it blasts, rings of white particles emit from it to add to effect. - Add appropriate sounds and effects at each stage to realize the black hole + sky laser visual/audio effect. Edit history (chronological, include every edit and all diagnostics/requests): - Edit v2 (first reported crash & root cause): - Symptom: Mod prevented game from launching; Mixin injection failure crash. - Key error excerpt: "Critical injection failure: @Inject annotation on applyNightVisionWhileScoping could not find any targets matching 'tick' in net/minecraft/class_1309." - Diagnosis: LivingEntityMixin attempted to inject into LivingEntity.tick (class_1309), but in MC 1.21.5 LivingEntity no longer has tick (method renamed/moved). Mixin throws InvalidInjectionException => crash on startup. - Notes: class_1309 is obfuscated name for LivingEntity. In recent versions, per-tick logic may be in baseTick() or method_6000(). - Suggested fixes/workarounds provided: - Ensure mod built for MC 1.21.5 + Fabric loader being used (compatibility). - Update mod to a version supporting 1.21.5. - Advanced: Edit the mixin: locate replacement tick method in LivingEntity (class_1309) and change @Inject(method = "tick", ...) to correct method name (e.g., baseTick or method_6000). - User requested: "Please apply a fix to prevent this crash." - Edit v3 (game crash log posted; mod version 2.0.0 shown): - Log header: "[16:41:41] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 2.0.0 - fabric-api 0.128.2+1.21.5 (full nested modules listed in log) - User note: "User was doing: The game was launching" - Request: "Please apply a fix to prevent this crash." - (No new stacktrace details beyond mods list in this edit; implies previous Mixin problem persisted or mod still crashing.) - Edit v4 (new crash log; mod version 3.0.0 shown): - Log header: "[16:48:41] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 3.0.0 - fabric-api 0.128.2+1.21.5 (modules listed) - Request: "Please apply a fix to prevent this crash." - (Implies mod updated to 3.0.0 but crash still occurs at launch.) - Edit v5 (new crash log; mod version 4.0.0 shown): - Log header: "[16:55:20] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 4.0.0 - fabric-api 0.128.2+1.21.5 (modules listed) - Request: "Please apply a fix to prevent this crash." - (Implies further mod update to 4.0.0; crash persists.) - Edit v6 (functional bug report): - Symptom: Scoping overlay not working. - Replacement requested: "Just replace it will slowness 255 which zooms in the fov and stops the player from moving." - i.e., remove existing scoping overlay implementation and instead apply the Slowness effect level 255 to the player when scoping to simulate zoom + freeze movement. - Additional symptom: Weapon is not currently firing. - Action requested: Implement the slowness-255 scoping behavior and fix firing logic. - Edit v7 (latest crash; root cause changed to duplicate packet registration): - Crash summary header: - Time: 2025-10-02 17:22:44 - Description: Initializing game - Exception chain: - java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'black-hole-sky-laser-erwr3ru5' at 'black_hole_sky_laser_erwr3ru5.BlackHoleSkyLaserClient'! - Caused by: java.lang.IllegalArgumentException: Packet type class_9154[id=black-hole-sky-laser-erwr3ru5:fire_laser] is already registered! - Stack trace highlights: - PayloadTypeRegistryImpl.register throws IllegalArgumentException because the packet id "black-hole-sky-laser-erwr3ru5:fire_laser" already registered. - Crash occurs during client entrypoint initialization at BlackHoleSkyLaserClient.onInitializeClient(BlackHoleSkyLaserClient.java:13) where packet type registration happens. - Full startup trace shows Fabric Loader invoking client entrypoints and creating Minecraft client class_310. - User request: "Please apply a fix to prevent this crash." - Implication: mod attempts to register the same custom network packet type twice (client-side entrypoint registers payload type unconditionally, or registered both client and server or multiple times). Must ensure packet registration is done once, guarded, or use appropriate registration API for single registration. Consolidated required actions to satisfy all edits (explicit targets for fixes/implementation): - Make the item implement exact described firing visual/audio sequence, including particle types, sizes, timing, spin behavior, black-hole particle ball, collapse animation, and sky laser with TNT+blue particles, rings of white particles, and sounds. - Replace/repair scoping overlay: - Either re-implement properly for MC 1.21.5 (correct client-side rendering hooks) OR as requested, replace scoping overlay with applying Slowness effect level 255 while scoping to simulate zoom + no movement; also ensure FOV change/zoom occurs (Slowness 255 historically doesn't change FOV by itself — if replacing, apply both slowness and client FOV change). - Fix mixin injection crash: - Update LivingEntityMixin injection target: identify correct per-tick method name in MC 1.21.5 (class_1309) and change @Inject(method = "tick", ...) to the correct method (e.g., baseTick or method_6000) or use an injection target that exists in 1.21.5. - Ensure mixins are compiled/targeted for MC 1.21.5 mappings (intermediary/yarn) and that mixin strictness is handled (optional: add @Environment checks or soft failure handling). - Fix duplicate packet registration crash: - Ensure packet type "black-hole-sky-laser-erwr3ru5:fire_laser" is registered only once: - Register payload type in a single initialization context (e.g., server registers server-side handlers, client registers client-side handlers with unique registration, guard with a static boolean or try/catch to ignore duplicate registration). - Use Fabric's recommended networking registration API patterns (ServerPlayNetworking/ClientPlayNetworking) and avoid registering payload type twice across entrypoints. - Ensure mod build targets Fabric Loader 0.17.2 + Minecraft 1.21.5 and test to confirm: - No mixin InvalidInjectionException. - No duplicate packet registration IllegalArgumentException. - Scoping behavior functions per requested replacement (slowness 255 + zoom) or proper overlay restored. - Firing sequence triggers and completes visual/audio sequence; firing actually works when left-clicking while scoping. Versions and observed states while iterating: - Initial mod (no explicit version in original request) — spec of item/functionality. - v2: reported mixin injection error (tick not found in LivingEntity / class_1309). - v3: mod version 2.0.0, crash at startup (mods list shown). - v4: mod version 3.0.0, crash at startup (mods list shown). - v5: mod version 4.0.0, crash at startup (mods list shown). - v6: functional bug: scoping overlay broken; requested replacement with Slowness 255 and noted firing not working. - v7 (latest): runtime crash at client entrypoint due to IllegalArgumentException: packet id black-hole-sky-laser-erwr3ru5:fire_laser already registered — occurs in BlackHoleSkyLaserClient.onInitializeClient at line registering packet type. All user requests to apply fixes: - Fix mixin injection target to match MC 1.21.5 method names or update mod/mappings. - Prevent duplicate packet registration (ensure single registration or guard). - Replace scoping overlay with Slowness 255 zoom-and-stop movement if easier; fix firing logic so weapon fires while scoping. - Ensure final mod build runs cleanly on Minecraft 1.21.5 + Fabric Loader 0.17.2 + Fabric API 0.128.2+1.21.5, producing the described particle/sound/laser behavior. Edit v8: The scoping mode / slowness should only be active when right click is held. Instead of right click constantly triggering an action on the gun, it should just trigger the item once and activate the most as long as it is held. Also, the gun still isnt firing when left clicked. Edit v9: Now the scoping works great, but left clicking should trigger the attack sequence with a cooldown that lasts until the sequence ends
1
Oct 3, 2025, 02:37 AM
User request: Mod summary: - Name: black-hole-sky-laser-erwr3ru5 (item: "extremely powerful laser") - Minecraft target: Fabric, Minecraft 1.21.5 (loader 0.17.2), Fabric API 0.128.2+1.21.5 environment shown in logs. - Item behavior (original request, full sequence): - Right-click: open scoping overlay that zooms camera, adds night vision filter, and enlarges crosshair so targeting is clear. - While scoping, left-click: fire the cannon, triggering a complex firing sequence: 1. Create an X (white particles) on the ground centered on target. 2. X quickly expands to at least 10 blocks radius. 3. Particles then form a circle around the X symbol. 4. The X symbol starts spinning and quickly speeds up. 5. As it speeds, a second circle of white particles forms and expands to the size of the original circle. 6. Once the second circle completes, the circle of particles vanishes and a large black ball of particles forms (size of original white circle) — visual like a black hole surrounding target. 7. Black ball grows slightly, then collapses down to the original target until it disappears. 8. Once it shrinks and disappears, a massive sky laser (made of TNT and blue particles) appears from the sky, blasting a perfect circle down to bedrock. 9. As it blasts, rings of white particles emit from it to add to effect. - Add appropriate sounds and effects at each stage to realize the black hole + sky laser visual/audio effect. Edit history (chronological, include every edit and all diagnostics/requests): - Edit v2 (first reported crash & root cause): - Symptom: Mod prevented game from launching; Mixin injection failure crash. - Key error excerpt: "Critical injection failure: @Inject annotation on applyNightVisionWhileScoping could not find any targets matching 'tick' in net/minecraft/class_1309." - Diagnosis: LivingEntityMixin attempted to inject into LivingEntity.tick (class_1309), but in MC 1.21.5 LivingEntity no longer has tick (method renamed/moved). Mixin throws InvalidInjectionException => crash on startup. - Notes: class_1309 is obfuscated name for LivingEntity. In recent versions, per-tick logic may be in baseTick() or method_6000(). - Suggested fixes/workarounds provided: - Ensure mod built for MC 1.21.5 + Fabric loader being used (compatibility). - Update mod to a version supporting 1.21.5. - Advanced: Edit the mixin: locate replacement tick method in LivingEntity (class_1309) and change @Inject(method = "tick", ...) to correct method name (e.g., baseTick or method_6000). - User requested: "Please apply a fix to prevent this crash." - Edit v3 (game crash log posted; mod version 2.0.0 shown): - Log header: "[16:41:41] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 2.0.0 - fabric-api 0.128.2+1.21.5 (full nested modules listed in log) - User note: "User was doing: The game was launching" - Request: "Please apply a fix to prevent this crash." - (No new stacktrace details beyond mods list in this edit; implies previous Mixin problem persisted or mod still crashing.) - Edit v4 (new crash log; mod version 3.0.0 shown): - Log header: "[16:48:41] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 3.0.0 - fabric-api 0.128.2+1.21.5 (modules listed) - Request: "Please apply a fix to prevent this crash." - (Implies mod updated to 3.0.0 but crash still occurs at launch.) - Edit v5 (new crash log; mod version 4.0.0 shown): - Log header: "[16:55:20] Loading Minecraft 1.21.5 with Fabric Loader 0.17.2" - Mods loaded (55), includes: - black-hole-sky-laser-erwr3ru5 4.0.0 - fabric-api 0.128.2+1.21.5 (modules listed) - Request: "Please apply a fix to prevent this crash." - (Implies further mod update to 4.0.0; crash persists.) - Edit v6 (functional bug report): - Symptom: Scoping overlay not working. - Replacement requested: "Just replace it will slowness 255 which zooms in the fov and stops the player from moving." - i.e., remove existing scoping overlay implementation and instead apply the Slowness effect level 255 to the player when scoping to simulate zoom + freeze movement. - Additional symptom: Weapon is not currently firing. - Action requested: Implement the slowness-255 scoping behavior and fix firing logic. - Edit v7 (latest crash; root cause changed to duplicate packet registration): - Crash summary header: - Time: 2025-10-02 17:22:44 - Description: Initializing game - Exception chain: - java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors, provided by 'black-hole-sky-laser-erwr3ru5' at 'black_hole_sky_laser_erwr3ru5.BlackHoleSkyLaserClient'! - Caused by: java.lang.IllegalArgumentException: Packet type class_9154[id=black-hole-sky-laser-erwr3ru5:fire_laser] is already registered! - Stack trace highlights: - PayloadTypeRegistryImpl.register throws IllegalArgumentException because the packet id "black-hole-sky-laser-erwr3ru5:fire_laser" already registered. - Crash occurs during client entrypoint initialization at BlackHoleSkyLaserClient.onInitializeClient(BlackHoleSkyLaserClient.java:13) where packet type registration happens. - Full startup trace shows Fabric Loader invoking client entrypoints and creating Minecraft client class_310. - User request: "Please apply a fix to prevent this crash." - Implication: mod attempts to register the same custom network packet type twice (client-side entrypoint registers payload type unconditionally, or registered both client and server or multiple times). Must ensure packet registration is done once, guarded, or use appropriate registration API for single registration. Consolidated required actions to satisfy all edits (explicit targets for fixes/implementation): - Make the item implement exact described firing visual/audio sequence, including particle types, sizes, timing, spin behavior, black-hole particle ball, collapse animation, and sky laser with TNT+blue particles, rings of white particles, and sounds. - Replace/repair scoping overlay: - Either re-implement properly for MC 1.21.5 (correct client-side rendering hooks) OR as requested, replace scoping overlay with applying Slowness effect level 255 while scoping to simulate zoom + no movement; also ensure FOV change/zoom occurs (Slowness 255 historically doesn't change FOV by itself — if replacing, apply both slowness and client FOV change). - Fix mixin injection crash: - Update LivingEntityMixin injection target: identify correct per-tick method name in MC 1.21.5 (class_1309) and change @Inject(method = "tick", ...) to the correct method (e.g., baseTick or method_6000) or use an injection target that exists in 1.21.5. - Ensure mixins are compiled/targeted for MC 1.21.5 mappings (intermediary/yarn) and that mixin strictness is handled (optional: add @Environment checks or soft failure handling). - Fix duplicate packet registration crash: - Ensure packet type "black-hole-sky-laser-erwr3ru5:fire_laser" is registered only once: - Register payload type in a single initialization context (e.g., server registers server-side handlers, client registers client-side handlers with unique registration, guard with a static boolean or try/catch to ignore duplicate registration). - Use Fabric's recommended networking registration API patterns (ServerPlayNetworking/ClientPlayNetworking) and avoid registering payload type twice across entrypoints. - Ensure mod build targets Fabric Loader 0.17.2 + Minecraft 1.21.5 and test to confirm: - No mixin InvalidInjectionException. - No duplicate packet registration IllegalArgumentException. - Scoping behavior functions per requested replacement (slowness 255 + zoom) or proper overlay restored. - Firing sequence triggers and completes visual/audio sequence; firing actually works when left-clicking while scoping. Versions and observed states while iterating: - Initial mod (no explicit version in original request) — spec of item/functionality. - v2: reported mixin injection error (tick not found in LivingEntity / class_1309). - v3: mod version 2.0.0, crash at startup (mods list shown). - v4: mod version 3.0.0, crash at startup (mods list shown). - v5: mod version 4.0.0, crash at startup (mods list shown). - v6: functional bug: scoping overlay broken; requested replacement with Slowness 255 and noted firing not working. - v7 (latest): runtime crash at client entrypoint due to IllegalArgumentException: packet id black-hole-sky-laser-erwr3ru5:fire_laser already registered — occurs in BlackHoleSkyLaserClient.onInitializeClient at line registering packet type. All user requests to apply fixes: - Fix mixin injection target to match MC 1.21.5 method names or update mod/mappings. - Prevent duplicate packet registration (ensure single registration or guard). - Replace scoping overlay with Slowness 255 zoom-and-stop movement if easier; fix firing logic so weapon fires while scoping. - Ensure final mod build runs cleanly on Minecraft 1.21.5 + Fabric Loader 0.17.2 + Fabric API 0.128.2+1.21.5, producing the described particle/sound/laser behavior. Edit v8: The scoping mode / slowness should only be active when right click is held. Instead of right click constantly triggering an action on the gun, it should just trigger the item once and activate the most as long as it is held. Also, the gun still isnt firing when left clicked.
Click here for installation instructions
This mod is licensed under the CreativeMode Mods License.