A pretty UwU library mod
This library provides:
- Generic block networking
- Energy API and Energy Networks
- Item API
- Fluid API
- Block Capabilities
- Server driven particles and sounds/music
- Block Templates in the form of template classes and template models
- Basic structures with collision checking and rotation
- Multipart API
- Many utility features (e.g HasCraftingReturnStack, Slot Locking, EnhancedPlacement ContextItem etc.)
How to Install NyaLib (Mod)
NyaLib by DanyGames2014 is verified for Babric, Fabric across Minecraft versions b1.7.3 (latest release: 0.22.0, file size: 710 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (b1.7.3) and platform (Babric, Fabric).
- Make sure you have the compatible loader or environment installed for Babric, Fabric.
- Move the downloaded NyaLib file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Add automatic item models
- Block Templates have been moved to the NyaLib Templates modules
- Removed the ability for a bucket to specify its size
- Fixed NyaLib Item API implementation for chests not working on blocks extending it
- Fixed a NullPointerException in ItemHandler
- Fix a wrong log message when registering capabilities
- Fix block network discovery finding duplicate entries, improving performance
- Fix Block Networks not loading properly on server
- Fix Block Networks not taking into account whether a chunk is loaded
- Refactor Block Networks to use fastutil
- Added HasBlockEntity interface that can be implemented on Block
- Rewrite Block Networks loading and saving
- The saved data will no longer be corrupted when incorrectly quitting the game
- Corrupted save will no longer cause a forever read-only state
- Moved part of saving to be off-thread
- Moved BlockEntityInit into the NyaLib Block module
- Add ItemStack context to FluidBucket methods
- Block Templates now use StationAPI Runtime Resources Event
- Fix custom bucket items extending FluidBucket not being handled properly
- Extended Data Tracker
- Provides Identifier based data tracker for entities
- Supports custom data types
- By default provides: boolean, byte, char, double, float, int, long, short, ItemStack, String, Vec3i, NbtCompound
- Removed an instance of evil division
- Abilities API
- Allows entities to have abilities provided either by custom providers or by items in their inventory
- Items can implemented the InventoryAbilityItem
- Mods can register custom abilities
- By default provides: Fire Immunity, Flight, Flight Speed, Invincibility, Extra Health
- If multiple mods provide the same ability, the result ability value depends on the rule set by the ability
- Fix EnergyWireBlockTemplate not really caring about EnergyCapable.canConnectEnergy
- InventoryManager and TankManager now check isItemAllowed and isFluidAllowed
- Allow placing milk in world by default
- ScreenHandler will no longer void an item if it cannot be inserted into a Managed Inventory
- Fix the Furnace Item Handler implementation
- Change how energy is distributed in an EnergyNetwork to being distributed according to the conductor resistance and length
- Update to StationAPI 2.0.0-alpha.6.5
- Fix DropInventoryOnBreak running on client when on server
- Improve DropInventoryOnBreak to be implementable on both Block and BlockEntity
- Fix multipart render state not updating when last multipart component is removed
- Update to StationAPI Alpha 6
- Fix a crash when setting and item in a double chest
- Fix chests having wrong inventory size
- Milk bucket now returns milk fluid
- Added FluidTankInfoProvider
- Changed the behavior of TankManager.getFluidSlots to always return the total amount of slots
- Make WhatsThis display fluids from all tanks
- Improve the A* pathing algorithm
- Add pathing cost to cables
- Make lava not drown players
- Fix Furnace/Dispenser/Chest Item API impl
- Added Energy Loss to cables
- Fix fluid tooltips rendering below buttons
- Change how networks are ticked
- Remove the long deprecated and unused SimpleEnergyHandler
- Cleanup code
- Fix a crash when checking block interactions with non NyaLib fluids
- Don't register a bucket automatically if a item bucket is provided
- Add a block item color multiplier to automatically registered fluids with color
- Fix a crash in ItemHandlerInventoryBlockCapability
- Fix a crash in BucketItemMixin.playEmptySound
- Add HasSmeltingReturnStack
- Custom block interactions with fluids
- Fluids can now specify which one has a priority when they want to spread into the same block
- Added a way to create a fluid using only a color multiplier
- Fix MultipartComponent.onBreak not being called on server and sounds not working
- Fix a crash when right clicking a block with empty hand in multiplayer
- Fix a crash on server when using buckets
- Finish modularizing the API
Base
- Abstract setBlockState in Structure to a overrideable method
Block
- BlockEntityInit interface
- Voxel Shapes (Thanks to Slainlight)
- Added Redstone API
Block Networks
- Fix FlattenedChunkMixin crashing in production (AlphaMode)
- Add an ability to fetche edge and non-edge nodes in a Network
- Improve Block Network loading resilience and error correction
Block Templates
- Add opening and closing sound to the template fence gate
- Fix erroneously loading json overrides on server
- Fix several crashes when requesting collision/bounding box of a template block which was broken
- Fix collision shape and bounding box of panes and fences
Capability
- Add Block Entity related methods to CapabilityHelper
Compat
- Do not show the fluid amount in Whats This when the tank is empty
- Fix NyaLib hard depending on WhatsThis
- New graphic for WhatsThis fluid tooltip integration
Energy API
- Fix energy pathfinding thru edge nodes
- Fix energy not pathing thru initial block
- Improve EnergyNetwork energy distribution and use fastutil
Fluid API
- Fix a crash in getRemainingCapacity when Fluid is null
- Add FluidSlots to ScreenHandlers
- Automatically register fluid buckets
- Add automatic fluid blocks with animated texture support
- Added fluid screen overlay, custom swim speed and drowning in fluids
- Add an AfterFluidRegistryEvent
- Fix a server crash when registering fluid colors
- Respect when fluids are not placeable in world
- Rewrite the logic of putting fluids in and out of tanks in the ScreenHandler
- Milk is now a fluid
- Fluids will now try to find the closest map color before creating a new one
- Custom fluid slot rendering and size
- Add Simple and Managed Handlers for blocks, entities and items
Item API
- Disable simplified furnace handling by default
- Add an extractItem with an Item and meta parameter
- Fix a crash in ItemHandler when null Item is supplied
- Add shouldDropStack into DropInventoryOnBreak
- Add Managed handlers for blocks, entities and items
- Add slot locking via LockableSlot and SlotLockingItem
- Added EnhancedPlacementContextItem
Multipart API
- Added Multipart API
- Multiparts allow you to create multipart components which can exist in any block space
- Fix production building
- Add getRemainingFluidCapacity method to Fluid Handlers
- OwO Whats This Compat
- Capabilities
- ItemHandler capability
- Capability Providers and registry
- Block Capabilities
- Energy Storage
- Energy Handler
- Item Handler
- Fluid Handler
- Item Capabilities
- Energy Storage
- Item Handler
- Fluid Handler
- Entity Capabilities
- Energy Storage
- Item Handler
- Fluid Handler
- Add FluidHandler interfaces for entities and items
- Improve block FluidHandler interface
- Removed unnecessary methods in ItemHandler
- Improved documentation
- DropInventoryOnBreak interface
- Fixed networks still saving in read-only mode
- Do not run network processing code (adding, removing, creating etc.) on remote worlds
- Modularize the library
- Block Templates
- Button
- Fence
- Fence Gate
- Pane
- Pressure Plate
- Slab
- Stairs
- Wall
- Updated dependencies
- Initial Modrinth Release
- Fix CME when a component was disconnected when drawing power
- Block/Entity/Item Capabilities
- Cleanup some Handler methods
- Fix wording in some docs