ALNStructurePlacer V1
What's new
v1 Latest Release · 2026-12-03
What's new in v1: Includes: First Release.
v1 · First Release (2026-12-03)
Added
- Per-structure items: Added `alnsp:starter_hut` and `alnsp:watchtower` items backed by `.mcstructure` files under `structures/alnsp/`.
- Automatic N/E/S/W rotation: Structures rotate automatically to match the player's cardinal facing direction.
- Sneak preview & Undo tool: Added particle bounding-box preview while sneaking and `alnsp:undo_tool` to revert up to 5 recent placements per player.
- TypeScript source: Added `scripts/main.ts` compiled against `@minecraft/server` (`2.11.0`) to `scripts/main.js`.
Fixed
- Item use & raycast targeting: Switched from unsupported `itemUseOn` to `world.afterEvents.itemUse` with `getBlockFromViewDirection({ maxDistance: 12 })`.
- Pack structure lookup: Used `world.structureManager.getPackStructureIds()` instead of `get(id)` so Behavior Pack `.mcstructure` files are found and placed reliably.
- Loot-free Undo: Added `clearDroppedLootInBounds` to remove dropped `minecraft:item` entities inside the restored area when undoing.
Documentation
- Added `.mcstructure` custom pack builder link (`https://mc-structure-placer-builder.vercel.app/`) and world-backup disclaimer in `DESCRIPTION.md`.
This mod has no additional files