Back to 9Minecraft
Wiki 9Minecraft Wiki 9Minecraft

StationAPI Mod FAQ

10 questions players actually ask, answered.

How do I start making a mod with StationAPI?
Create a new Fabric Loader project targeting Beta 1.7.3, add StationAPI as a dependency in your build file, and import the core API classes. You can then register custom blocks and items using StationAPI's registration system in your mod's initialization method.
What's the difference between StationAPI events and vanilla game ticks?
StationAPI events are custom hooks that fire at specific moments (like block placement or player interaction) without requiring tick loops, making your code cleaner and more efficient. Vanilla ticks run every frame regardless, so events let you respond only when something actually happens.
Can I use StationAPI with other mods?
Yes, StationAPI is designed as a shared base layer for Fabric Loader mods on legacy versions. Other mods built on StationAPI can coexist, but mods using different modding frameworks may conflict—check each mod's dependencies first.
How do I save custom data when a player exits a world?
Use StationAPI's world save hooks to write your mod data into the updated save format when the world is saved. Listen for the appropriate save event and serialize your data; StationAPI handles storing it safely in the world folder.
Why aren't my custom block textures showing up?
Make sure your texture files are in the correct resource folder path and that you've registered them with StationAPI's renderer before the block is registered. Also verify the texture format matches what the renderer expects (usually PNG at the right resolution).
Does StationAPI break vanilla survival mode?
No, StationAPI is designed to preserve core mechanics—vanilla crafting, mining, and world generation work normally. Mods built on top of it may add new features, but the base game stays intact.
Can I register a block that doesn't drop an item when broken?
Yes, during block registration you can define custom drop behavior, including no drops at all. Use the drop configuration options when setting up your block's properties.
What happens if I listen to the same event twice in my mod?
Both event listeners will fire in sequence, so your code will run twice. If you only want one response, use a single listener or add a condition inside it to prevent duplicate behavior.
How do I make a custom item that works in recipes?
Register your item with StationAPI, then use the vanilla recipe system to add crafting recipes that include it. StationAPI's item registration integrates with Beta 1.7.3's recipe handler automatically.
Will my mod world break if I remove StationAPI?
Worlds saved with StationAPI mods may lose custom mod data if you remove the mod, but the vanilla terrain and structures should remain playable. Always back up worlds before removing core dependencies.