-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
I made a packet which send the "Y" velocity to the server. public boolean handle(Supplier<Context> ctx) { ctx.get().enqueueWork(() -> { ServerPlayer player = ctx.get().getSender(); if (player != null) { //player.sendSystemMessage(Component.literal(String.valueOf(player.getDeltaMovement()))); player.getAbilities().flying = false; Vec3 vec3 = player.getDeltaMovement(); player.setDeltaMovement(vec3.x, dy, vec3.z); player.hasImpulse = true; //player.sendSystemMessage(Component.literal(String.valueOf(player.getDeltaMovement()))); } }); return true; } Where I trying to set new movement vector (setDeltaMovement) but it is not works. But the "sendSystemMessage" works perfectly here
-
By perromercenary00 · Posted
not a bug when you declaring the block BlockBehaviour.Properties.ofFullCopy(Blocks.ACACIA_WOOD) the one you are copyng from has different set of properties seems it has horizontal facing but the yours don't -
By perromercenary00 · Posted
~ you need to detect all the entities in front of the player then trace a line betwen the player eye position and where the ray trace vector hits Vec3 vi = pe.getEyePosition(); Vec3 vo = pe.getLookAngle();//is a delta float dist = 6.0F; Vec3 vh; vh = new Vec3( (vi.x + (vo.x * dist) ), (vi.y + (vo.y * dist) ), (vi.z + (vo.z * dist) ) ); and check from the entites detected whitch one hitbox touch the line and then gets the closer to the player that one is the one you are looking at the code you need is inside the arrow entity you have to extract from it and make your thing -
By unclickable · Posted
The problematic mods turned out to be: -- Supplementaries -- Amendments -
By unclickable · Posted
Yes, I removed 15 mods and the server/game does not crash, now I will look for which one. Thanks for the help!
-
-
Topics
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.