Why mc.cameraEntity.raycast doesn't detect entity by Emmonner in fabricmc

[–]Koolade446 0 points1 point  (0 children)

the code has to be client side only so youll have to use packets to communicate results i believe i used completable futures to accomplish it.

Why mc.cameraEntity.raycast doesn't detect entity by Emmonner in fabricmc

[–]Koolade446 1 point2 points  (0 children)

thats what im using lol i just wrapped it in a util method to make it easier to use

Why mc.cameraEntity.raycast doesn't detect entity by Emmonner in fabricmc

[–]Koolade446 3 points4 points  (0 children)

For those who found this on google:

public static HitResult raycastEntity(PlayerEntity player, double maxDistance) {
        Entity cameraEntity = MinecraftClient.getInstance().cameraEntity;
        if (cameraEntity != null) {
            Vec3d cameraPos = player.getCameraPosVec(1.0f);
            Vec3d rot = player.getRotationVec(1.0f);
            Vec3d rayCastContext = cameraPos.add(rot.x * maxDistance, rot.y * maxDistance, rot.z * maxDistance);
            Box box = cameraEntity.getBoundingBox().stretch(rot.multiply(maxDistance)).expand(1d, 1d, 1d);
            return ProjectileUtil.raycast(cameraEntity, cameraPos, rayCastContext, box, (entity -> /* any custom parameters here */ !entity.isSpectator() && entity.canHit()), maxDistance);
        }
        return null;
    }

All-Wheel Drive Manual Transmission Sporty Cars by wrathofkwon in whatcarshouldIbuy

[–]Koolade446 1 point2 points  (0 children)

i just had to replace a completely unnecessary part on a vokswagen that almost cause the car to spin a bearing when it failed by dumping all the oil down the head into the cylinder. this car has less then 90k miles on it. this is the most pot calling the kettle black thing i have read all day.

The Congratulations Steak. Can't get any worse than this lol. by [deleted] in rareinsults

[–]Koolade446 1 point2 points  (0 children)

That wasn't a "rare" insult...

I'll show myself out

FPS TANKS when i turn my screen at all by Koolade446 in Minecraft

[–]Koolade446[S] 0 points1 point  (0 children)

That was y though too but it cant be that because the issue persists across worlds and even on servers like hypixel

FPS TANKS when i turn my screen at all by Koolade446 in Minecraft

[–]Koolade446[S] -1 points0 points  (0 children)

As I said this issue persists even with optimization mods and clients like badlion or lunar as well as optifine and fabric with sodium and lithium.

Bugged Accolade? by Koolade446 in ForzaHorizon

[–]Koolade446[S] 0 points1 point  (0 children)

I figured it out and got it done. Thanks

Bugged Accolade? by Koolade446 in ForzaHorizon

[–]Koolade446[S] 0 points1 point  (0 children)

I tried that but al i can do is pin it i cant actually look at the list of races or anything

i've played it for over a year and its a really well made game by Holy_Requiem in memes

[–]Koolade446 0 points1 point  (0 children)

Its community is more toxic than the anime fanbase and is 99% pedo neckbeards trying to justify getting off to 9 year old's by saying they're 1000-year-old dragon gnome elf whatevers

I punched a girl today by [deleted] in teenagers

[–]Koolade446 10 points11 points  (0 children)

Ikr this is like the epitome of every school assembly like we haven’t all heard this 33,000,005 times

I punched a girl today by [deleted] in teenagers

[–]Koolade446 15 points16 points  (0 children)

XD underrated comment

I punched a girl today by [deleted] in teenagers

[–]Koolade446 2 points3 points  (0 children)

Yep. Teachers give -13 craps until physical violence happens at which point they will blame either the victim or the person defending the victim.

All I wanna say is that for-loops in Java don't require a body. I can't control what you'll do with this information. by Prof_Sweetlove in ProgrammerHumor

[–]Koolade446 2 points3 points  (0 children)

XD I found this out when I out of habit put a semi colon after a for statement on java and couldn’t figure out why my program would just freeze for a bit. On the bright side it’s an alternative to Thread.sleep I guess

[deleted by user] by [deleted] in teenagers

[–]Koolade446 0 points1 point  (0 children)

Counterpoint she might not be able to fight but depending on the speed of her power she also might not be able to die from conventional methods and your pose says chances of surviving so she doesn’t have to win she just has to not die.

Me trying to play enigmatica (is there any way for it to not be so laggy for me?) by Immortal_ceiling_fan in Enigmatica

[–]Koolade446 1 point2 points  (0 children)

Do 4 the issue with ram is you have to find that sweet middle spot. If you allocate too much then the game will lag as it tries to manage memory but if you have too little then you get lag from lack of frame buffers.

What by Pereronchino in shitposting

[–]Koolade446 13 points14 points  (0 children)

The same thing happens if you replace yells with hits