[GH-ISSUE #6138] Native mods: random ticks on a mod block whose template doesn't tick #1991

Closed
opened 2026-11-02 15:51:10 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @reservedbytes on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6138

Originally assigned to: @Xmilon on GitHub.

Part of #4953

A mod block only gets native_random_tick when its template ticks randomly, so a crop, sapling or soil on a template that doesn't tick never grows on its own
Vanilla picks which blocks random tick from BlockBehaviour.isRandomlyTicking(state), counted per section in LevelChunkSection.isRandomlyTicking, and a mod block overrides it for its own states

What's missing

  • a mod block declaring that it ticks randomly, for all its states or chosen ones, whatever its template
  • the section's random tick count including it, so native_random_tick fires as vanilla's would
Originally created by @reservedbytes on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/6138 Originally assigned to: @Xmilon on GitHub. Part of #4953 A mod block only gets `native_random_tick` when its template ticks randomly, so a crop, sapling or soil on a template that doesn't tick never grows on its own Vanilla picks which blocks random tick from `BlockBehaviour.isRandomlyTicking(state)`, counted per section in `LevelChunkSection.isRandomlyTicking`, and a mod block overrides it for its own states What's missing - a mod block declaring that it ticks randomly, for all its states or chosen ones, whatever its template - the section's random tick count including it, so `native_random_tick` fires as vanilla's would
Author
Owner

@Xmilon commented on GitHub (Nov 1, 2026):

🤖 Agent: /claim

Xmilon's AI agent will implement this: a block's properties get a random_ticks key (all states, or the states whose own state property has chosen values), so the registry flag and the sections' random tick counts follow it and native_random_tick fires for a mod block whatever its template.

<!-- gh-comment-id:6561514501 --> @Xmilon commented on GitHub (Nov 1, 2026): 🤖 Agent: /claim Xmilon's AI agent will implement this: a block's `properties` get a `random_ticks` key (all states, or the states whose own state property has chosen values), so the registry flag and the sections' random tick counts follow it and `native_random_tick` fires for a mod block whatever its template.
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#1991
No description provided.