▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Max's QOL Library
Max's QOL Library

Max's QOL Library

Adds some simpler ways of creating blocks, items & more (soon™️)

165
1

MOD DISCONTINUED

title

Dynamic JSON Badge Dynamic JSON Badge

This does one thing on its own

adds an item called debug_block

Technical stuff

To use this library add it 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" 
}

correct me if im wrong!

Wiki
Creating a block with an item To create a block and an item use the following code:
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 use the following code:
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 an item use the following code:
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"));
	}
}

Thanks for downloading the mod (:

Совместимость

Minecraft: Java Edition

1.20.x

Платформы

Поддерживаемые окружения

Клиент и сервер

Создатели

Детали

Лицензия:MIT
Опубликован:1 год назад
Обновлён:1 год назад
Главная