[GH-ISSUE #2295] Cant light mobs on fire for the cooked version of their food (Weirdest bug ever lmfao) #628

Closed
opened 2026-11-02 15:40:39 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2295

What I did: Tried to light a pig, cow, sheep, rabbit, mooshroom cow on fire
What happened: Absolutely NOTHING
What I expected: For the mobs to catch on fire
Horizon version: v0.2.73
OS, CPU, GPU: macOS, Apple M2 (CPU and GPU)

Reported on Discord by Potato in #horizon-bugs · Discord thread
Tags: gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2295 > What I did: Tried to light a pig, cow, sheep, rabbit, mooshroom cow on fire > What happened: Absolutely NOTHING > What I expected: For the mobs to catch on fire > Horizon version: v0.2.73 > OS, CPU, GPU: macOS, Apple M2 (CPU and GPU) Reported on Discord by **Potato** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564313329479057478) Tags: gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [mobs_dont_catch_on_fire_weirdest_bug_ever_lmfao.mov](https://cdn.discordapp.com/attachments/1564313329479057478/1564313330183577721/mobs_dont_catch_on_fire_weirdest_bug_ever_lmfao.mov?ex=6ae0cfd1&is=6adf7e51&hm=0ec96ce245e710bafdf3603f88e910151527a19979fee31197a0f89be572bb36&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:39 +07:00
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

This matches vanilla Java 26.3: flint and steel has no use on an entity (FlintAndSteelItem only overrides useOn for blocks), so right-clicking a pig, cow, sheep, rabbit or mooshroom with it does nothing there either. Only creepers (Creeper.mobInteract, the creeper_igniters tag) and sulfur cubes react to it. To get cooked drops, set the mob on fire another way: light the block it stands on or next to it, lava, or a Fire Aspect weapon. Checked on current main on the server thread: a pig and a zombie standing in fire catch fire and take burn damage as in vanilla.

<!-- gh-comment-id:6421518358 --> @kacpherek commented on GitHub (Oct 26, 2026): This matches vanilla Java 26.3: flint and steel has no use on an entity (`FlintAndSteelItem` only overrides `useOn` for blocks), so right-clicking a pig, cow, sheep, rabbit or mooshroom with it does nothing there either. Only creepers (`Creeper.mobInteract`, the `creeper_igniters` tag) and sulfur cubes react to it. To get cooked drops, set the mob on fire another way: light the block it stands on or next to it, lava, or a Fire Aspect weapon. Checked on current main on the server thread: a pig and a zombie standing in fire catch fire and take burn damage as in vanilla.
Author
Owner

@ludovic111 commented on GitHub (Oct 26, 2026):

Potato added on Discord:

I think your right though, you had to light the ground they were , not light the actual mobs directly

I took a long break from playing minecraft so i remembered it wrong

<!-- gh-comment-id:6422026462 --> @ludovic111 commented on GitHub (Oct 26, 2026): **Potato** added on Discord: > I think your right though, you had to light the ground they were , not light the actual mobs directly > I took a long break from playing minecraft so i remembered it wrong <!-- kira -->
Author
Owner

@levzzz5154 commented on GitHub (Oct 26, 2026):

🤖 Agent: I checked this against vanilla 26.3 (the pinned jars) and against Horizon, and Horizon already behaves like vanilla: right-clicking a pig, cow, sheep, rabbit or mooshroom with a flint and steel or a fire charge does nothing. No mob is set on fire and no item is spent.

Vanilla 26.3 says the same

  • FlintAndSteelItem has no use at all, only useOn (blocks): python3 tools/rea_vanilla.py class net.minecraft.world.item.FlintAndSteelItem → <init>, useOn.
  • FireChargeItem has no use either: python3 tools/rea_vanilla.py class net.minecraft.world.item.FireChargeItem → <init>, asProjectile, createDispenseConfig, lambda$createDispenseConfig$0, playSound, shoot, useOn. A fire charge is a projectile only when a dispenser shoots it (asProjectile), never in the hand.
  • The default Item.use has no projectile branch (python3 tools/rea_vanilla.py method net.minecraft.world.item.Item use): it starts a consumable, swaps an equippable, starts a using item, and otherwise return InteractionResult.PASS;. Compare SnowballItem (<init>, asProjectile, use), which does override use — that is why a snowball can be thrown by hand but a fire charge cannot.
  • Mob.interact calls Mob.mobInteract, which returns InteractionResult.PASS (net/minecraft/world/entity/Mob.java:1134 and :1175), and none of the animals' mobInteract overrides light anything: Animal.mobInteract (food only), Pig.mobInteract (saddle), AbstractCow.mobInteract (bucket), MushroomCow.mobInteract (bowl/shears), Sheep.mobInteract (shears).
  • The only mobs that react to a flint and steel or a fire charge are Creeper.mobInteract (#creeper_igniters → this.ignite(), Creeper.java:210-228) and SulfurCube.mobInteract (SulfurCube.java:437-491), and neither sets the mob on fire: the creeper primes its explosion, the sulfur cube primes itself.
  • The vanilla ways a mob catches fire are Entity.lavaIgnite (15 s), SmallFireball.onHitEntity (SmallFireball.java:39-46: igniteForSeconds(5.0F) and 5 damage), a burning arrow (AbstractArrow.onHitEntity: entity.igniteForSeconds(5.0F), AbstractArrow.java:461-464), a wither skeleton's arrow (100 s), a burning zombie (2 × difficulty seconds), the dragon's breath and lightning. While it burns, Entity.baseTick (Entity.java:553-567) takes 1 damage every second.

Horizon does the same — a real game, driven through the agent control socket (horizon-ctl launch --world FireTest --offscreen --wait, survival, normal difficulty):

$ command summon minecraft:pig ~ ~ ~2 {NoAI:1b}
$ command give fire_charge 1
$ command select fire_charge
$ look-at <the pig>     # the crosshair is on it: {"kind": "entity", "entity": {"distance": 2.737, "id": 441, ...}}
$ mouse right click
  held before: {"count": 1, "item": "minecraft:fire_charge"}
  held after:  {"count": 1, "item": "minecraft:fire_charge"}    # not spent
  pig after:   [{"health": 10.0, "hurt_time": 0, "id": 441, ...}]  # not hurt, not on fire
  fire blocks around the player: []

The same with a flint and steel: the item is still in hand afterwards, the pig's health stays 10.0 and no fire appears.

The vanilla ways do work: the same pig standing in a fire block catches fire and burns (health 10.0 → 6.0, Entity.baseTick), and a creeper reacts to the flint and steel exactly as Creeper.mobInteract says — it ignites and explodes (the creeper is gone and the player took the blast).

So to cook a mob you light the ground it stands on (or use lava, a fireball, a burning arrow, a Fire Aspect weapon), not the mob itself — which is what the reporter's own follow-up says too ("you had to light the ground they were, not light the actual mobs directly").

I find no bug here, so I am leaving the issue open for the maintainer to close.

<!-- gh-comment-id:6429450080 --> @levzzz5154 commented on GitHub (Oct 26, 2026): 🤖 Agent: I checked this against vanilla 26.3 (the pinned jars) and against Horizon, and Horizon already behaves like vanilla: right-clicking a pig, cow, sheep, rabbit or mooshroom with a flint and steel or a fire charge does nothing. No mob is set on fire and no item is spent. **Vanilla 26.3 says the same** - `FlintAndSteelItem` has no `use` at all, only `useOn` (blocks): `python3 tools/rea_vanilla.py class net.minecraft.world.item.FlintAndSteelItem` → `<init>, useOn`. - `FireChargeItem` has no `use` either: `python3 tools/rea_vanilla.py class net.minecraft.world.item.FireChargeItem` → `<init>, asProjectile, createDispenseConfig, lambda$createDispenseConfig$0, playSound, shoot, useOn`. A fire charge is a projectile only when a *dispenser* shoots it (`asProjectile`), never in the hand. - The default `Item.use` has no projectile branch (`python3 tools/rea_vanilla.py method net.minecraft.world.item.Item use`): it starts a consumable, swaps an equippable, starts a using item, and otherwise `return InteractionResult.PASS;`. Compare `SnowballItem` (`<init>, asProjectile, use`), which *does* override `use` — that is why a snowball can be thrown by hand but a fire charge cannot. - `Mob.interact` calls `Mob.mobInteract`, which returns `InteractionResult.PASS` (`net/minecraft/world/entity/Mob.java:1134` and `:1175`), and none of the animals' `mobInteract` overrides light anything: `Animal.mobInteract` (food only), `Pig.mobInteract` (saddle), `AbstractCow.mobInteract` (bucket), `MushroomCow.mobInteract` (bowl/shears), `Sheep.mobInteract` (shears). - The only mobs that react to a flint and steel or a fire charge are `Creeper.mobInteract` (`#creeper_igniters` → `this.ignite()`, `Creeper.java:210-228`) and `SulfurCube.mobInteract` (`SulfurCube.java:437-491`), and neither sets the mob *on fire*: the creeper primes its explosion, the sulfur cube primes itself. - The vanilla ways a mob catches fire are `Entity.lavaIgnite` (15 s), `SmallFireball.onHitEntity` (`SmallFireball.java:39-46`: `igniteForSeconds(5.0F)` and 5 damage), a burning arrow (`AbstractArrow.onHitEntity`: `entity.igniteForSeconds(5.0F)`, `AbstractArrow.java:461-464`), a wither skeleton's arrow (100 s), a burning zombie (2 × difficulty seconds), the dragon's breath and lightning. While it burns, `Entity.baseTick` (`Entity.java:553-567`) takes 1 damage every second. **Horizon does the same** — a real game, driven through the agent control socket (`horizon-ctl launch --world FireTest --offscreen --wait`, survival, normal difficulty): ``` $ command summon minecraft:pig ~ ~ ~2 {NoAI:1b} $ command give fire_charge 1 $ command select fire_charge $ look-at <the pig> # the crosshair is on it: {"kind": "entity", "entity": {"distance": 2.737, "id": 441, ...}} $ mouse right click held before: {"count": 1, "item": "minecraft:fire_charge"} held after: {"count": 1, "item": "minecraft:fire_charge"} # not spent pig after: [{"health": 10.0, "hurt_time": 0, "id": 441, ...}] # not hurt, not on fire fire blocks around the player: [] ``` The same with a flint and steel: the item is still in hand afterwards, the pig's health stays 10.0 and no fire appears. The vanilla ways do work: the same pig standing in a fire block catches fire and burns (health 10.0 → 6.0, `Entity.baseTick`), and a creeper reacts to the flint and steel exactly as `Creeper.mobInteract` says — it ignites and explodes (the creeper is gone and the player took the blast). So to cook a mob you light the ground it stands on (or use lava, a fireball, a burning arrow, a Fire Aspect weapon), not the mob itself — which is what the reporter's own follow-up says too ("you had to light the ground they were, not light the actual mobs directly"). I find no bug here, so I am leaving the issue open for the maintainer to close.
Author
Owner

@socksprox commented on GitHub (Oct 27, 2026):

🤖 Agent: Checked this against the vanilla 26.3 spec. Java Edition does not ignite regular mobs with flint & steel on right-click: FlintAndSteelItem only overrides useOn (blocks, candles, campfires), and the only entity-side consumers of flint & steel in mobInteract are Creeper (forced explosion) and SulfurCube — Item.interactLivingEntity defaults to PASS for everything else. (Armor stands ignite only via the ignites_armor_stands damage-type tag, i.e. fire damage, not the item interaction.) Setting mobs alight by clicking them is Bedrock behaviour; in Java the cooked-food trick is to light the ground under the mob so it burns standing in the fire block.

Horizon matches this: creepers ignite via Species::Creeper's CREEPER_IGNITERS check and flint & steel otherwise only places fire. So "nothing happens" is actually parity-correct — suggesting this can be closed. Verified in the decompiled 26.3 sources: FlintAndSteelItem, Mob.interact/checkAndHandleImportantInteractions, Player.interactOn.

<!-- gh-comment-id:6431949553 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: Checked this against the vanilla 26.3 spec. Java Edition does not ignite regular mobs with flint & steel on right-click: `FlintAndSteelItem` only overrides `useOn` (blocks, candles, campfires), and the only entity-side consumers of flint & steel in `mobInteract` are `Creeper` (forced explosion) and `SulfurCube` — `Item.interactLivingEntity` defaults to `PASS` for everything else. (Armor stands ignite only via the `ignites_armor_stands` damage-type tag, i.e. fire damage, not the item interaction.) Setting mobs alight by clicking them is Bedrock behaviour; in Java the cooked-food trick is to light the ground under the mob so it burns standing in the fire block. Horizon matches this: creepers ignite via `Species::Creeper`'s `CREEPER_IGNITERS` check and flint & steel otherwise only places fire. So "nothing happens" is actually parity-correct — suggesting this can be closed. Verified in the decompiled 26.3 sources: `FlintAndSteelItem`, `Mob.interact`/`checkAndHandleImportantInteractions`, `Player.interactOn`.
Author
Owner

@levzzz5154 commented on GitHub (Oct 29, 2026):

🤖 Agent: closing on behalf of levzzz5154 (comment by their AI agent, Claude Code, Claude Opus 5.5). This matches vanilla 26.3: flint and steel only ignites blocks (and creepers), not other mobs, and the reporter's own follow-up says lighting the ground works. Two agents checked it against the decompiled sources and found no bug.

<!-- gh-comment-id:6504515134 --> @levzzz5154 commented on GitHub (Oct 29, 2026): 🤖 Agent: closing on behalf of levzzz5154 (comment by their AI agent, Claude Code, Claude Opus 5.5). This matches vanilla 26.3: flint and steel only ignites blocks (and creepers), not other mobs, and the reporter's own follow-up says lighting the ground works. Two agents checked it against the decompiled sources and found no bug.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#628
No description provided.