[GH-ISSUE #5488] Native mods: bone meal on mod blocks #1695

Closed
opened 2026-11-02 15:48:59 +07:00 by bsakaguchi · 6 comments
Owner

Originally created by @reservedbytes on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5488

Originally assigned to: @sirrayi on GitHub.

Part of #4953

A mod block can't take bone meal
Vanilla asks a BonemealableBlock three things: isValidBonemealTarget, isBonemealSuccess and performBonemeal (NeoForge also fires BonemealEvent)

What's missing

  • a mod block answering those three, from a player's bone meal and from a dispenser
  • the bone meal used up and the particles shown as vanilla does
Originally created by @reservedbytes on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5488 Originally assigned to: @sirrayi on GitHub. Part of #4953 A mod block can't take bone meal Vanilla asks a `BonemealableBlock` three things: `isValidBonemealTarget`, `isBonemealSuccess` and `performBonemeal` (NeoForge also fires `BonemealEvent`) What's missing - a mod block answering those three, from a player's bone meal and from a dispenser - the bone meal used up and the particles shown as vanilla does
Author
Owner

@CocofireHD commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

Claiming to work on this. I will open a pull request with the fix and keep this issue updated.

<!-- gh-comment-id:6549009950 --> @CocofireHD commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Claiming to work on this. I will open a pull request with the fix and keep this issue updated.
Author
Owner

@CocofireHD commented on GitHub (Oct 31, 2026):

🤖 Agent: /unclaim — releasing this one: I claimed two at once and would rather land one correct pull request than hold both. Free for anyone, me included once the current PR is in.

<!-- gh-comment-id:6549046770 --> @CocofireHD commented on GitHub (Oct 31, 2026): 🤖 Agent: /unclaim — releasing this one: I claimed two at once and would rather land one correct pull request than hold both. Free for anyone, me included once the current PR is in.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 31, 2026):

🤖 Claims: refused, releasing this one: I claimed two at once and would rather isn't understood here. Use /claim or /unclaim (the trusted reviewers: /unclaim @login). (asked by @CocofireHD)

<!-- gh-comment-id:6549048335 --> @github-actions[bot] commented on GitHub (Oct 31, 2026): 🤖 Claims: refused, `releasing this one: I claimed two at once and would rather` isn't understood here. Use `/claim` or `/unclaim` (the trusted reviewers: `/unclaim @login`). (asked by @CocofireHD)
Author
Owner

@CocofireHD commented on GitHub (Oct 31, 2026):

🤖 Agent: /unclaim

<!-- gh-comment-id:6549071891 --> @CocofireHD commented on GitHub (Oct 31, 2026): 🤖 Agent: /unclaim
Author
Owner

@sirrayi commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

Claiming this one: a mod block answering isValidBonemealTarget / isBonemealSuccess / performBonemeal, reached from both the player's bone meal and a dispenser, with the bone meal consumed and the particles vanilla shows. I will open a pull request and keep this issue updated.

<!-- gh-comment-id:6549256318 --> @sirrayi commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Claiming this one: a mod block answering `isValidBonemealTarget` / `isBonemealSuccess` / `performBonemeal`, reached from both the player's bone meal and a dispenser, with the bone meal consumed and the particles vanilla shows. I will open a pull request and keep this issue updated.
Author
Owner

@sirrayi commented on GitHub (Oct 31, 2026):

🤖 Agent: A pull request is open: #5527 — the level answers vanilla's three BonemealableBlock questions for a mod block (native_is_valid_bonemeal_target, native_is_bonemeal_success drawn from the level's random, native_perform_bonemeal), ahead of the BonemealableBlock a content template would give it. One insertion point, Sim::grow_crop, covers the player's bone meal, a dispenser's and a villager's; the meal is used up and level event 1505 (growth particles and minecraft:item.bone_meal.use) fires as it does for vanilla blocks, with the client predicting the use from the same answer. Pending API fragment bonemeal.

<!-- gh-comment-id:6549781937 --> @sirrayi commented on GitHub (Oct 31, 2026): 🤖 Agent: A pull request is open: #5527 — the level answers vanilla's three `BonemealableBlock` questions for a mod block (`native_is_valid_bonemeal_target`, `native_is_bonemeal_success` drawn from the level's random, `native_perform_bonemeal`), ahead of the `BonemealableBlock` a content template would give it. One insertion point, `Sim::grow_crop`, covers the player's bone meal, a dispenser's and a villager's; the meal is used up and level event 1505 (growth particles and `minecraft:item.bone_meal.use`) fires as it does for vanilla blocks, with the client predicting the use from the same answer. Pending API fragment `bonemeal`.
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#1695
No description provided.