mojira.dev
MC-195599

Lightning spawners render full lightning bolt

The bug

If a spawner is set to spawn lightning bolts, a full lightning bolt is displayed, unlike miniature models of entities as usual in a spawner. Previously, lightning bolts were not rendered and could not be spawned using a spawner, but that has since changed, and now a full lightning bolt is rendered, spinning around the spawner.

When a player leaves the area around the spawner, the lightning bolt freezes in place. While looking from certain angles (upwards) at this frozen lightning bolt, it can become invisible.

The expected behavior is that either:

  • The lightning will not render at all and will not be spawnable by spawners, or

  • The spawner will render miniature model of a lightning bolt instead of a full-sized one

How to reproduce

  1. Run one of the following commands based on the version you're using:

    1.17.1 and older

    /setblock ~ ~-1 ~ minecraft:spawner{SpawnData:{id:"minecraft:lightning_bolt"}}

    21w37a and newer

    /setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:lightning_bolt"}}}

    ❌ A full lightning bolt is shown

Video

Click this link to view this bug: https://youtu.be/kOufLlgOC3c

Additional information

  • This bug was not present in 1.15.2

  • This bug was present in 1.16.1

  • The spawner in the video attached has had data values changed to accelerate the speed at which it spawns lightning bolts

Related issues

Attachments

Comments

migrated
[media][media]
pulpetti

Can confirm.

migrated

Can confirm the lightning spawner will have a small render or no longer uses as spawner

It doesn't fix now.

Avoma

Can confirm in 21w03a.

Avoma

Can confirm in 21w05a.

Avoma

Can confirm in 21w13a.

Avoma

Can confirm in 21w15a.

Avoma

Can confirm in 1.16.5 and 1.17 Release Candidate 1.

Avoma

Can confirm in 1.17.

Avoma

Can confirm this in 21w39a. The expected behavior would be that lightning bolt spawners would not render the full lightning bolt. Instead, it should only render part of it, or have it render really small to fit inside of the spawner. Please also take into consideration that the command usage of spawners has changed in 21w37a. You can use the following command to reproduce this in versions 21w37a and above.

/setblock ~ ~ ~ minecraft:spawner{SpawnData:{entity:{id:"minecraft:lightning_bolt"}}}
ampolive

Can confirm in 21w40a.

Avoma

Can confirm in 1.18.1.

Avoma

Can confirm in 1.18.2.

Avoma

Can confirm in 1.19.

[media]
Avoma

Can confirm in 1.19.2.

migrated

Can confirm in 1.19.4 Pre-release 1.

ampolive

Also affects trial spawners:

/setblock ~ ~ ~ trial_spawner{spawn_data:{entity:{id:"lightning_bolt"}}}

[Mod] markderickson

(Unassigned)

Confirmed

Platform

Low

Rendering

lightning_bolt, spawner

1.16.1, 20w29a, 20w30a, 1.16.2 Pre-release 1, 1.16.2 Pre-release 2, ..., 24w03b, 1.20.5 Pre-Release 1, 1.21.1, 1.21.4 Pre-Release 1, 25w05a

Retrieved