Library for Simplifying Development

This development library has been discontinued but continues to perform its main function.
Key Features
Although the modification is no longer supported, it provides developers with convenient tools to simplify the content creation process. The library automatically adds a debug_block object that can be used when debugging new projects.
Project Integration
To use the library in your project, add the following lines to your build.gradle file:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
filter {
includeGroup "maven.modrinth"
}
}
}
dependencies {
modImplementation "maven.modrinth:mql-tir5d-turtle:1.0.0"
}
Creating a Block with an Item
To create a block with a corresponding item, use the following code:java import net.msl.blocks; public class ModName implements ModInitializer { public static final Logger LOGGER = LoggerFactory.getLogger("mod-id"); @Override public void onInitialize() { LOGGER.info("Initialized Very Cool Mod!"); Block block = new Block(FabricBlockSettings.create()); blocks.createBlockWithItem(block, new BlockItem(block, new FabricItemSettings()), new Identifier("mod-id", "cool_block")); } }
Creating a Block without an Item
To create a block without a corresponding item, use this code:java import net.msl.blocks; public class ModName implements ModInitializer { public static final Logger LOGGER = LoggerFactory.getLogger("mod-id"); @Override public void onInitialize() { LOGGER.info("Initialized Very Cool Mod!"); Block block = new Block(FabricBlockSettings.create()); blocks.createBlockNoItem(block, new Identifier("mod-id", "cool_block")); } }
Creating an Item
To create a separate item, use the following code:java import net.msl.items; public class ModName implements ModInitializer { public static final Logger LOGGER = LoggerFactory.getLogger("mod-id"); @Override public void onInitialize() { LOGGER.info("Initialized Very Cool Mod!"); Item item = new Item(new FabricItemSettings()); items.createItem(item, new Identifier("mod-id", "cool_item")); } }