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)));
}
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");
}
}
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);
}
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)));
}
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)));
}
Aggregations