[1.8] looking for documentation / restrict items from being crafted
-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
YEESSSSSSSSSSSSS OH MY GOD devs please pay attention at PostChain#parseUniformNode method it seems to be broken (or i am just dumb) and finally i can change this to [SOLVED]
-
i have a suspicion that projmat crashes it
-
The github is here: https://github.com/DJ-Laser/BetterAllaysMod It worked fine until I downloaded it from github on my new computer. I ran the gradle genIntelijRuns task and didnt change anything, and the build suceeded
-
By perromercenary00 · Posted
goo days i have made some panels and trapdoors basically you take a block and split in four simetrical parts By the way this panels works it has sense to make them in the cutting table is posible to add mi blocks in a json some where ? or its the cutting table a michine whit a close predefined pool of recipes and i have to make a custome cutting table ? -
Hello, I'm having an issue with getting players to use elytra flight. They do not have any elytra armour on their chest plate but rather the elytra is rendered on the player. What I've got so far seems to make the server 'fight' with itself making the person with the elytra begin flying but immediately go back to non-flight. I'm checking if the player is off the ground and such client and server side using packets. Client code: @SubscribeEvent(priority = EventPriority.HIGHEST) public static void onKeyInput(InputEvent.Key event) { if (Minecraft.getInstance().options.keyJump.consumeClick()) { Player player = Minecraft.getInstance().player; if (!player.isOnGround() && !player.isFallFlying() && !player.isInWater() && !player.hasEffect(MobEffects.LEVITATION)) { NetworkManager.sendToServer(new ElytraAttemptFlyPacket()); } } } } Server code: public class ElytraAttemptFlyPacket { public ElytraAttemptFlyPacket(FriendlyByteBuf buf) { } public ElytraAttemptFlyPacket() { } public void toBytes(FriendlyByteBuf buf) { } public boolean handle(Supplier<NetworkEvent.Context> supplier) { NetworkEvent.Context context = supplier.get(); context.enqueueWork(() -> { //Server ServerPlayer player = context.getSender(); if (!player.isOnGround() && !player.isFallFlying() && !player.isInWater() && !player.hasEffect(MobEffects.LEVITATION)) { player.startFallFlying(); } }); return true; } } As I said before it kind of works but it looks like the server is fighting with itself putting the player in elytra mode and normal mode. Any suggestions would be appreciated!!
-
-
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.