praeteritum_futurum 0.1.3
Curse Maven Snippet
What's new
Added
- Ejection Module for ejecting items from the machine to the world
- Three ejection styles:
DISPENSE(uses vanillaDispenseItemBehavior— arrows fire, snowballs throw, potions splash, eggs throw, spawn eggs spawn, bone meal fertilizes, boats place, buckets collect/place fluids, armor equips mobs, etc.),DROP(simple entity drop — items eject as pickups), andCATCH(captures item entities spawned by DISPENSE/DROP and routes them to a designated output slot) - DISPENSE mode delegates entirely to vanilla dispenser logic, so all current and future dispenser-compatible items work automatically
- CATCH mode captures items returned by dispenser behaviors (e.g., shearing sheep drops wool, bucket collecting returns filled bucket, armor ejection) before they fall to the ground
- Direction buttons adapt to adjacent module type: inventory modules cycle DISPENSE/DROP/CATCH, IO modules cycle ENABLED/DISABLED
- Only interacts with
OUTPUTandOPENIO faces;INPUTfaces are ignored - Requires an adjacent IO module to determine world directions and adjacent Inventory modules for item storage
- Three ejection styles:
- Adjacent-module detection infrastructure in
BaseModuleItemAdjacentModuleTypeenum for classifying modules (INVENTORY, IO, FILTER, PROCESSING, LOGISTICS)getAllowedAdjacentModuleTypes()hook for configurable modules to declare which adjacent types they care about- Shared UI helpers (
getClickedDirection,hasAdjacentSlot,isInsideButton) eliminate code duplication across modules - Processing modules now detect only Inventory modules, preventing invalid direction configuration
- Generic direction-toggle packet handler for all configurable modules via
BaseModuleItem.toggleDirectionMode() - Blast Module for faster ore and metal smelting
- Uses
RecipeType.BLASTINGwith 100-tick cook time (faster than Smelting Module) - Crafted with a Blast Furnace and Refined Scrap
- Uses
- Smoker Module for faster food cooking
- Uses
RecipeType.SMOKINGwith 100-tick cook time (faster than Smelting Module) - Crafted with a Smoker and Refined Scrap
- Uses
- Jukebox Module for automated music disc playback
- Plays music discs with sound and vanilla song title subtitles
- Playlist building from connected external inventories via IO modules
- Queue mode: plays discs in strict order, looping when finished
- Shuffle mode: shuffles playlist once, plays through, then reshuffles
- Disc lifecycle: extracts disc from chest, plays it, returns it after playback
- Disc retention: holds finished disc in module slot when no output inventories are available, auto-returns when a chest appears
- Single-disc auto-replay when it is the only disc in any connected inventory
- Uses
c:music_discsCommon Tags for disc detection
- Husk sand drops: Husks have a chance to drop sand on death, with configurable drop chance and amount
Changed
GridDirectionenum replaces rawDirectionfor all grid-adjacent slot navigation- Separates grid directions (
UP,DOWN,LEFT,RIGHT) from world-facing IO directions (NORTH,SOUTH,WEST,EAST,UP,DOWN) - Prevents confusion between grid-adjacent slot lookup and world-facing block directions
- All configurable module overlays, NBT config maps, and adjacent-module detection now use
GridDirection
- Separates grid directions (
- Slot mode cycle is now declarative via
getSupportedModes()inProcessingModuleItem- Each module declares which
SlotModevalues it supports (e.g., Smelting uses INPUT/FUEL/OUTPUT; Brewing uses POTION/INGREDIENT) - The base
getCycledMode()iterates only over supported modes, so modules never cycle into modes they don't use - Per-mode limits are controlled by
getMaxForMode(), eliminating duplicate cycling logic across subclasses
- Each module declares which
- ProcessingModuleItem NBT save/restore now uses a stalled-flag guard instead of a slot-empty check, fixing mid-progress module pickup for all processing modules (Smelting, Blast, Smoker, Brewing)
- MachineFrameworkBlockEntity data channels increased from 4 to 6 to support module-specific state (e.g., Jukebox stalled flag and shuffle cycle)
- Machine UI click behavior is now consistent: holding a valid item for a module places it directly; empty hand or invalid item opens the config overlay
This mod has no additional files