mojira.dev
MC-111480

Firework boosting doesn't work in the first world loaded after a game start / if player has entity id 0

The bug

You cannot use fireworks to boost while you fly with an elytra if your entity id is 0, which is typically right after you started the game.

How to reproduce

  1. Start the game

  2. Open a world with no other entities

  3. Start flying with an elytra and try to use fireworks to boost
    → The fireworks are used but fly straight in the air even if you are not right clicking a block

Code analysis

Based on 1.11.2 decompiled using MCP 9.35 rc1

The data parameter net.minecraft.entity.item.EntityFireworkRocket.field_191512_b stores the entity id of the entity being boosted. The problem is that it treats 0 as not set, but stores the entity id without adding 1. Therefor a player with entity id 0 will not be boosted.

Linked issues

MC-111512 Can still place fireworks while flying with the elytra MC-111563 Firework boosting doesn't work in superflat worlds MC-111780 Rocket Elytra Wont work. MC-111824 Elyta Boosting Broken MC-112113 fireworks are not working MC-112157 I can't so some things in the game... MC-112234 Elytra flying issue in "VOID world" MC-112408 Fireworks not working when using the elytra MC-112496 Can't propell elytra using fireworks MC-113402 Firework flight doesnt work in snapshots in random worlds MC-114841 Firework rockets broken MC-115010 Firework rockets don't provide boost. MC-115131 You can`t use the elytra fireworks boost MC-115163 Can't launch using fireworks MC-115318 Fire Works not working when using elytra. MC-116000 Elytra with fireworks stopped working randomly MC-116001 Elytra with fireworks stopped working randomly MC-116439 Elytra doesn't activate MC-117578 No Firwork rocket boost with Elytra MC-117612 Unable to use rockets to propel elytra flight MC-117777 Cannot use fireworks while gliding with an Elytra MC-117878 Unable to use rockets to propel elytra flight MC-118029 Fireworks don't boost the player when flying with elytra MC-118300 fireworks don't propell MC-119839 Elytra's can't be impulsed via fireworks MC-119869 elytra dosent boost with firework 17w31a MC-121391 Fireworks no longer boost elytra flight MC-121545 Elytra and Fireworks not working in creative MC-121860 fireworks are not boosting the elytras MC-122360 fireworks don't popel you forward while flying with elytra MC-123219 With the firework rocket and elytra, i can't fly infinitely. MC-123789 Firework boosted elytra is not working MC-123795 Firework rockets don't power elytra flight MC-127743 can't boost elytra MC-128304 Fireworks simply don't work with elytra. MC-128695 Firework Rockets don't boost elytra MC-129662 rocket powered elytra flight MC-132359 Fireworks no longer launch you while gliding with elytra MC-134048 Elytra and fireworks doesn't work MC-135913 Elytra Bug in V. 1.13 MC-136377 Fireworks do not affect Elytra MC-136667 Rocket propelled elytra do not work in superflat preset The Void MC-136821 Fireworks with flight duration do not boost the player. MC-138083 ELytra fireworks activate like normal ones MC-138467 Fire works aren't working when I use elytra MC-140380 fireworks and elytra not working

Comments

migrated

so annoying.. I really wanted to try the new feature but it wouldn't work..
Windows 10 Home
Intel Core i7

migrated

I have the same issue but only on old worlds. Maybe it is by design, because they removed the Mending/ Infinity combo?

migrated

This bug doesn't require old worlds for me.

migrated

Video: https://youtu.be/0Tpta3dRZv4
A reload of the world fix this.

migrated

Still in 1.11.2 🙂

migrated

Please do not mark unreleased versions as affected.
You don't have access to them yet.

migrated

I also experience this issue on MC:PC 1.11.2, in both creative and survival.

migrated

In my testing, this seems to be unrelated to teleporting or creative flying. Fireworks fail to work in the first world loaded after starting the game. If you close the world and open any other world, fireworks work correctly. You can trigger the bug again if you exit the game, restart the game, and load a single player world.

migrated

I've tested under Windows 10 and OS X Sierra. The bug happens for me under Windows 10, but not OS X.

migrated

I experienced this last night. Created a super flat world with the redstone conditions and the rockets had no affect on my flight. Flight works in my normal survival world that I purchase from a host and in a local single player game I've had since 1.8.

11people5

Confirmed for 17w06a

migrated

Confirmed for 1.12pre3

11people5

Confirmed for Minecraft 1.12

migrated

Can't confirm for 1.12.1-pre1?

bemoty

Can confirm for MC 1.12.1.

Pepijn96

Still in 1.12.2

Pepijn96

Still in 17w45b.

migrated

Affects 18w01a.

migrated

Affects 18w10d

migrated

Affects 1.13

migrated

This bug does not only affect the first player that enters the game. After about two weeks of running a busy server, the entity IDs will overflow, which results in no player being able to use fireworks. Negative entity IDs are also ignored by this function (from 1.12.1 decompiled with MCP):

public boolean isAttachedToEntity() {
      return ((Integer)this.dataManager.get(BOOSTED_ENTITY_ID)).intValue() > 0;
   }

migrated

coschevi

Confirmed

boost, elytra, fireworks, fireworks_rocket

Minecraft 16w50a, Minecraft 1.11.1, Minecraft 1.11.2, Minecraft 17w06a, Minecraft 1.12 Pre-Release 3, ..., Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w47b, Minecraft 18w48a, Minecraft 18w48b

Minecraft 18w49a

Retrieved