Open WindClan opened 7 months ago
local laser = peripheral.find("plethora:laser")
laser.fire(0,180,5) --fire from below the turtle
as i said, exactly as the title says
So this happens from pitch angles 61 to 180 due to this logic (specifically line 66): https://github.com/SwitchCraftCC/Plethora-Fabric/blob/7e59a368d0710a2a401bdfb833a1e64d7923be8e/src/main/java/io/sc3/plethora/gameplay/modules/laser/LaserMethods.kt#L60-L75
Seeing that condition you'd then expect that it's possible to launch the projectile a block above the turtle, but it's never reached due to Utils.mod
always coercing values to be positive (used to normalize pitch):
https://github.com/SwitchCraftCC/Plethora-Fabric/blob/7e59a368d0710a2a401bdfb833a1e64d7923be8e/src/main/java/io/sc3/plethora/util/Helpers.java#L25-L48
working on a fix for it rn that better handles the laser placement
Eve's suggestion is to perform a single-step raycast to find where the laser leaves the block, then add a little extra offset along the ray
You probably don't need to ray trace - just project it ~0.7 blocks away from the middle of the turtle.
Exactly what the title says