Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mazen

Members
  • Joined

  • Last visited

  1. That's already done. I added an && event.side == Side.SERVER check, which should techically be the same if i'm not mistaken. I'm a relative Java newb although i have a professioal programming background, but are HashMaps with 6 entries really that bad? (this is not the Forge registry we are talking about, here). I don't get any damage though, which seems to be contradicting. Anyhow, still after using either event.SIDE or player.getEntityWorld().isRemote , i still experience the choppieness when double tapping the space bar. I can fly fine after spamming the spacebar enough however that is really an annoying behaviour
  2. Full repo here: https://github.com/mc-mazen/moreenchantments And no, you don't get fall damage if allowFlying is true, even if in survival mode.
  3. Have you read my post at all? It's an Enchantment, setting the allowFlying capability on the player if present on the Armor. Have you checked the link? It shows the stuttering pretty well.
  4. First time modder here, so please excuse me if I failed massively, but can anyone explain why this behaviour is happening? The flight becomes very stuttery for some odd reason which I cannot really figure out Extract from the code in question: @SubscribeEvent public void onLivingUpdateEvent(LivingEvent.LivingUpdateEvent event) { if (event.getEntityLiving() == null || !(event.getEntityLiving() instanceof EntityPlayer) || event.isCanceled()) { return; } EntityPlayer player = (EntityPlayer) event.getEntityLiving(); if (Registry.enableFlightEnchantment && !player.isCreative()) handleFlight(player); // ... more abilities player.sendPlayerAbilities(); } private void handleFlight(EntityPlayer player) { if (hasEnchantment(EnchantmentFlight.NAME, player) && !player.capabilities.allowFlying) { player.capabilities.allowFlying = true; } else if(!hasEnchantment(EnchantmentFlight.NAME, player) && player.capabilities.allowFlying) { player.capabilities.allowFlying = false; } } private boolean hasEnchantment(String key, EntityPlayer player) { return EnchantmentHelper.getMaxEnchantmentLevel(Registry.enchantments.get(key), player) > 0; }

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.