Search in sources :

Example 1 with FabricItemSettings

use of net.fabricmc.fabric.api.item.v1.FabricItemSettings in project FabricWaystones by LordDeatHunter.

the class ItemRegistry method init.

public static void init() {
    if (!ITEMS.isEmpty()) {
        return;
    }
    registerItem("waystone", new WaystoneItem(BlockRegistry.WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("desert_waystone", new WaystoneItem(BlockRegistry.DESERT_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("red_desert_waystone", new WaystoneItem(BlockRegistry.RED_DESERT_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("stone_brick_waystone", new WaystoneItem(BlockRegistry.STONE_BRICK_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("nether_brick_waystone", new WaystoneItem(BlockRegistry.NETHER_BRICK_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("red_nether_brick_waystone", new WaystoneItem(BlockRegistry.RED_NETHER_BRICK_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("end_stone_brick_waystone", new WaystoneItem(BlockRegistry.ENDSTONE_BRICK_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("deepslate_brick_waystone", new WaystoneItem(BlockRegistry.DEEPSLATE_BRICK_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("blackstone_brick_waystone", new WaystoneItem(BlockRegistry.BLACKSTONE_BRICK_WAYSTONE, new Item.Settings().group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("pocket_wormhole", new PocketWormholeItem(new Item.Settings().maxCount(1).group(CustomItemGroup.WAYSTONE_GROUP).fireproof()));
    registerItem("abyss_watcher", new AbyssWatcherItem(new Item.Settings().maxCount(4).group(CustomItemGroup.WAYSTONE_GROUP).fireproof()));
    registerItem("waystone_scroll", new WaystoneScrollItem(new Item.Settings().maxCount(1).group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("local_void", new LocalVoidItem(new Item.Settings().maxCount(1).group(CustomItemGroup.WAYSTONE_GROUP)));
    registerItem("scroll_of_infinite_knowledge", new ScrollOfInfiniteKnowledgeItem(new Item.Settings().maxCount(1).group(CustomItemGroup.WAYSTONE_GROUP).fireproof()));
    registerItem("waystone_debugger", new WaystoneDebuggerItem(new FabricItemSettings().maxCount(1).fireproof().rarity(Rarity.EPIC)));
}
Also used : Item(net.minecraft.item.Item) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings)

Example 2 with FabricItemSettings

use of net.fabricmc.fabric.api.item.v1.FabricItemSettings in project WK by witches-kitchen.

the class WKBlocks method registerBlock.

// this is used to register all blocks as a modBlock and to also register all but blackthorn leaves as leaves blocks. this is used to tell the client how to render these blocks.
public static void registerBlock(String id, Block block, ItemGroup tab) {
    modBlocks.add(block);
    if (block instanceof LeavesBlock && id != "blackthorn_leaves") {
        // this logic needs work to not label blackthorn leaves as those able to be color mapped differently
        leafBlocks.add(block);
    } else {
    }
    Registry.register(Registry.BLOCK, new Identifier(WK.MODID, id), block);
    Registry.register(Registry.ITEM, new Identifier(WK.MODID, id), new BlockItem(block, new FabricItemSettings().group(tab)));
    if (WKConfig.get().debugMode) {
        WK.logger.info("Witches Kitchen Base Blocks: Successfully Loaded");
    }
}
Also used : Identifier(net.minecraft.util.Identifier) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) BlockItem(net.minecraft.item.BlockItem)

Example 3 with FabricItemSettings

use of net.fabricmc.fabric.api.item.v1.FabricItemSettings in project frame-fabric by moddingplayground.

the class FrameBlocksTest method register.

private static Block register(String id, Block block) {
    Identifier identifier = new Identifier("frame-blocks-test", id);
    Registry.register(Registry.ITEM, identifier, new BlockItem(block, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    return Registry.register(Registry.BLOCK, identifier, block);
}
Also used : Identifier(net.minecraft.util.Identifier) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) BlockItem(net.minecraft.item.BlockItem)

Example 4 with FabricItemSettings

use of net.fabricmc.fabric.api.item.v1.FabricItemSettings in project wildmod by Osmiooo.

the class RegisterBlocks method RegisterBlocks.

public static void RegisterBlocks() {
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "mud_block"), MUD_BLOCK);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "mud_block"), new BlockItem(MUD_BLOCK, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "mud_bricks"), MUD_BRICKS);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "mud_bricks"), new BlockItem(MUD_BRICKS, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "mud_brick_wall"), MUD_BRICKS_WALL);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "mud_brick_wall"), new BlockItem(MUD_BRICKS_WALL, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "mud_brick_slab"), MUD_BRICKS_SLAB);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "mud_brick_slab"), new BlockItem(MUD_BRICKS_SLAB, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "mud_brick_stairs"), MUD_BRICKS_STAIRS);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "mud_brick_stairs"), new BlockItem(MUD_BRICKS_STAIRS, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "sculk"), SCULK);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "sculk"), new BlockItem(SCULK, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "sculk_vein"), SCULK_VEIN);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "sculk_vein"), new BlockItem(SCULK_VEIN, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "sculk_sensor"), new BlockItem(Blocks.SCULK_SENSOR, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "sculk_catalyst"), SCULK_CATALYST);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "sculk_catalyst"), new BlockItem(SCULK_CATALYST, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "sculk_shrieker"), SculkShriekerBlock.SCULK_SHRIEKER_BLOCK);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "sculk_shrieker"), new BlockItem(SculkShriekerBlock.SCULK_SHRIEKER_BLOCK, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "reinforced_deepslate"), REINFORCED_DEEPSLATE);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "reinforced_deepslate"), new BlockItem(REINFORCED_DEEPSLATE, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "frog_spawn"), FROG_SPAWN);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "frog_spawn"), new FrogSpawnItem(FROG_SPAWN, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "pearlescent_froglight"), PEARLESCENT_FROGLIGHT);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "pearlescent_froglight"), new BlockItem(PEARLESCENT_FROGLIGHT, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "verdant_froglight"), VERDANT_FROGLIGHT);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "verdant_froglight"), new BlockItem(VERDANT_FROGLIGHT, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "ochre_froglight"), OCHRE_FROGLIGHT);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "ochre_froglight"), new BlockItem(OCHRE_FROGLIGHT, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    MangroveWoods.RegisterMangrove();
    Registry.register(Registry.BLOCK, new Identifier(WildMod.MOD_ID, "rooted_mud"), ROOTED_MUD);
    Registry.register(Registry.ITEM, new Identifier(WildMod.MOD_ID, "rooted_mud"), new BlockItem(ROOTED_MUD, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
}
Also used : Identifier(net.minecraft.util.Identifier) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) BlockItem(net.minecraft.item.BlockItem) FrogSpawnItem(frozenblock.wild.mod.items.FrogSpawnItem)

Example 5 with FabricItemSettings

use of net.fabricmc.fabric.api.item.v1.FabricItemSettings in project wildmodplus by Osmiooo.

the class RegisterBlocks method RegisterBlocks.

public static void RegisterBlocks() {
    Registry.register(Registry.BLOCK, new Identifier(WildModPlus.MOD_ID, "sculk_echoer"), SCULK_ECHOER);
    Registry.register(Registry.ITEM, new Identifier(WildModPlus.MOD_ID, "sculk_echoer"), new BlockItem(SCULK_ECHOER, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    Registry.register(Registry.BLOCK, new Identifier(WildModPlus.MOD_ID, "sculk_jaw"), SCULK_JAW);
    Registry.register(Registry.ITEM, new Identifier(WildModPlus.MOD_ID, "sculk_jaw"), new BlockItem(SCULK_JAW, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    Registry.register(Registry.BLOCK, new Identifier(WildModPlus.MOD_ID, "coated_sculk"), COATED_SCULK);
    Registry.register(Registry.ITEM, new Identifier(WildModPlus.MOD_ID, "coated_sculk"), new BlockItem(COATED_SCULK, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    Registry.register(Registry.BLOCK, new Identifier(WildModPlus.MOD_ID, "sculk_chirper"), SCULK_CHIRPER);
    Registry.register(Registry.ITEM, new Identifier(WildModPlus.MOD_ID, "sculk_chirper"), new BlockItem(SCULK_CHIRPER, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
}
Also used : Identifier(net.minecraft.util.Identifier) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) BlockItem(net.minecraft.item.BlockItem)

Aggregations

FabricItemSettings (net.fabricmc.fabric.api.item.v1.FabricItemSettings)14 Identifier (net.minecraft.util.Identifier)10 BlockItem (net.minecraft.item.BlockItem)7 SimpleItem (com.simplycmd.featherlib.registry.SimpleItem)3 Resources (com.simplycmd.featherlib.registry.Resources)2 SimpleBlock (com.simplycmd.featherlib.registry.SimpleBlock)2 ItemModel (com.simplycmd.featherlib.registry.SimpleBlock.ItemModel)2 Main (io.github.simplycmd.terracraft.Main)2 io.github.simplycmd.terracraft.blocks (io.github.simplycmd.terracraft.blocks)2 LifeCrystalBlockItem (io.github.simplycmd.terracraft.blocks.items.LifeCrystalBlockItem)2 Getter (lombok.Getter)2 JIngredient (net.devtech.arrp.json.recipe.JIngredient)2 JKeys (net.devtech.arrp.json.recipe.JKeys)2 JPattern (net.devtech.arrp.json.recipe.JPattern)2 JRecipe (net.devtech.arrp.json.recipe.JRecipe)2 JResult (net.devtech.arrp.json.recipe.JResult)2 FabricBlockSettings (net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings)2 net.minecraft.block (net.minecraft.block)2 net.minecraft.item (net.minecraft.item)2 Item (net.minecraft.item.Item)2