X Spawners API

Download (136 KB)
For Luanti 5.6 and above

How do I install this?

Description

Primarily adds an API for registering spawner blocks for other mods to use.

Features 🔗

  • Activations area - radius 16 blocks - when player is inside this aread the spawner will activate
  • Placing torch (group:torch) on top of the spawner will disable the spawner
  • Spawner will not work if all adjacent sides are blocked
  • Some mobs can spawn only during night/day only (or both)
  • Some mobs can spawn in water (e.g. group:water) or any other defined node in cofiguration
  • Spawner will stop spawning if there are too many mobs of the same type in the aread (9x9x9 nodes)
  • Spawner will stop spawning if there are too many entities in MapBlock area (16x16x16 nodes)
  • Mobs will spawn around spawner randomly in 9x9x3 area - mob height (collisionbox) is being accounted
  • Spawner will not spawn in protected areas
  • Spawner can spawn up to four mobs at the same time
  • If the spawner is not spawning (in 'waiting' state) for too long, it will get rusted and will not work anymore - only digging and placing the spwaner again will activate it
  • If admin (or someone with privs priviledge) will place the spawner, this spawner will never rust
  • If spawner has environmental configuration it will generate spawners during mapgen
  • Environmental can be found in dungeons and caves
  • Environmental spawners are not rusting
  • Environmental will not drop spawner when dug
  • Wrote in TypeScript

Usage 🔗

  • right click (secondary action) on spawner with egg item - works with animalia crates and net (assuming you have animal inside)

Reviews

Review

Do you recommend this mod?

  • No reviews, yet.

Releases

v0.0.6

Download

Luanti 5.6+

2025-04-28 21:12 UTC

v0.0.6 🔗

No release notes

v0.0.5

Download

Luanti 5.6+

2025-04-26 17:35 UTC

v0.0.5 🔗

  • Add deploy scripts
  • Update pipeline
  • Add push ci script
  • Add dotenv support for local push
  • Convert commonjs to module file
  • Improve readme and documentation
  • fix path to deploy script

v0.0.1

Download

Luanti 5.6+

2025-04-25 19:43 UTC

v0.0.1 🔗

No release notes

All releases