8000 GitHub - CrispyChips6660/Kiwi: Minecraft Forge modding library
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CrispyChips6660/Kiwi

 
 

Repository files navigation

Kiwi

Make modding no longer cumbersome.

中文指南

Registration

@KiwiModule
@KiwiModule.Group("building_blocks")
public class MyModule extends AbstractModule
{
    // Register a simple item. Kiwi will automatically register it
    public static final Item FIRST_ITEM = new Item(itemProp().rarity(Rarity.EPIC));

    // Register a simple block and its BlockItem
    public static final Block FIRST_BLOCK = new Block(blockProp(Material.WOOD));
}

Plugin

// This module will be loaded only when `dependency` mod is loaded
@KiwiModule(name = "test", dependency = "modid")
@KiwiModule.Optional
public class MyAddon extends AbstractModule
{
    // This method is called in FMLCommonSetupEvent
    @Override
    public void init(FMLCommonSetupEvent event)
    {
        // Do something
    }
}

How to start

  1. Add Kiwi to your build path
  2. Follow the Readme.txt of MDK

About

Minecraft Forge modding library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%
0