[GH-ISSUE #5556] Fake players, mod entity types and moving groups of blocks #1734

Open
opened 2026-11-02 15:49:16 +07:00 by bsakaguchi · 2 comments
Owner

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

Summary

Three larger pieces that the most popular tech mods build on, in rising size:

  1. A fake player: a block or entity that uses, places, breaks and attacks at a position as a player would.
  2. Entity types declared by mods, with their own size, model, sync and tick.
  3. A moving group of blocks: blocks lifted out of the world into an entity, moved or turned by a mod, drawn like terrain, solid to players, and placed back.

Why

  • Fake player: Create's deployer, CC: Tweaked's turtles, Cyclic's User. native_use_item_on and the other item hooks only hear real players, so a machine cannot use an item.
  • Mod entities: mob mods (Alex's Mobs, Mowzie's Mobs) and every technical entity (projectiles, seats, minecart-like vehicles). Content mods may declare blocks, items, mob effects and creative tabs; API 37 spawns vanilla mob types, and API 59's entities are displays.
  • Moving blocks: Create's pistons, gantries, bearings, minecart contraptions and trains; Valkyrien Skies' ships. Display entities are visual only, with no collision.

Proposal

  • native_fake_player(level, pos, facing, &mut inventory) with use_item_on, use_item, place, break, attack, firing the same hooks and events a real player does.
  • data/<id>/horizon/entity/*.json: a vanilla entity type as template (physics, tracking range), dimensions, a model (Java entity model JSON or block models), plus native tick, interact and hurt hooks, synced like other content registries.
  • A block-group entity: capture a box of blocks and block entities, keep them in a small grid the mod moves and rotates each tick, draw them with the chunk mesher, let entities stand on and collide with them, place them back when the mod says.

On my fork

My fork has none of these yet; my Create port stops before the deployer, contraptions and trains for this reason. They are listed so the order of work is clear: 1 is small, 2 and 3 are large.

Originally created by @JuanLuci on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5556 ## Summary Three larger pieces that the most popular tech mods build on, in rising size: 1. A fake player: a block or entity that uses, places, breaks and attacks at a position as a player would. 2. Entity types declared by mods, with their own size, model, sync and tick. 3. A moving group of blocks: blocks lifted out of the world into an entity, moved or turned by a mod, drawn like terrain, solid to players, and placed back. ## Why - Fake player: Create's deployer, CC: Tweaked's turtles, Cyclic's User. `native_use_item_on` and the other item hooks only hear real players, so a machine cannot use an item. - Mod entities: mob mods (Alex's Mobs, Mowzie's Mobs) and every technical entity (projectiles, seats, minecart-like vehicles). Content mods may declare blocks, items, mob effects and creative tabs; API 37 spawns vanilla mob types, and API 59's entities are displays. - Moving blocks: Create's pistons, gantries, bearings, minecart contraptions and trains; Valkyrien Skies' ships. Display entities are visual only, with no collision. ## Proposal - `native_fake_player(level, pos, facing, &mut inventory)` with `use_item_on`, `use_item`, `place`, `break`, `attack`, firing the same hooks and events a real player does. - `data/<id>/horizon/entity/*.json`: a vanilla entity type as template (physics, tracking range), dimensions, a model (Java entity model JSON or block models), plus native tick, interact and hurt hooks, synced like other content registries. - A block-group entity: capture a box of blocks and block entities, keep them in a small grid the mod moves and rotates each tick, draw them with the chunk mesher, let entities stand on and collide with them, place them back when the mod says. ## On my fork My fork has none of these yet; my Create port stops before the deployer, contraptions and trains for this reason. They are listed so the order of work is clear: 1 is small, 2 and 3 are large.
Author
Owner

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

the mod entity types part is #5212, i'm on it, the first PR (thrown entity types for content mods) is almost ready
the fake player and moving blocks parts are free

<!-- gh-comment-id:6550109060 --> @reservedbytes commented on GitHub (Oct 31, 2026): the mod entity types part is #5212, i'm on it, the first PR (thrown entity types for content mods) is almost ready the fake player and moving blocks parts are free
Author
Owner

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

Thanks, I missed #5212. I'll leave entity types to it; this issue stays for the fake player and moving block groups.

<!-- gh-comment-id:6550900684 --> @JuanLuci commented on GitHub (Nov 1, 2026): Thanks, I missed #5212. I'll leave entity types to it; this issue stays for the fake player and moving block groups.
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#1734
No description provided.