
SpawnerDrop
Рассадник мобов, вместо спавна мобов вокруг себя, сразу помещает лут с этих мобов в ближайший сундук или другое хранилище из других модов, если такое...
00—neoforgeClient1.21.1mod
SpawnerDrop prevents mobs from leaving spawners and instead routes their drops into nearby storage. When a spawner (including trial spawners) fires, the would-be mob is canceled, its loot table is rolled on the server, and items are inserted into the closest available item handler within roughly a 6-block cube (chests, barrels, hoppers, modded inventories). Anything that still does not fit is spawned in the world at the spawner.
Implementation details:
- Loot uses the mob’s standard loot table with a generic damage source; no looting-style bonuses are applied.
- Storage lookup avoids loading new chunks; only loaded blocks/entities within range are checked.
- If no inventory is nearby, only the item drops appear; no XP is generated because the mob never spawns.