Search in sources :

Example 1 with LifeCrystalBlockItem

use of io.github.simplycmd.terracraft.blocks.items.LifeCrystalBlockItem in project Terracraft by SimplyCmd.

the class BlockRegistry method register.

public static void register() {
    // Blocks
    hellstone_block = new SimpleBlock(ID("hellstone_block"), new Block(FabricBlockSettings.of(Material.METAL).strength(1.5f, 6.0f).requiresTool())).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    grass_bale = new SimpleBlock(ID("grass_bale"), new HayBlock(FabricBlockSettings.of(Material.SOLID_ORGANIC, MapColor.PALE_GREEN).strength(0.5F).sounds(BlockSoundGroup.GRASS))).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.BUILDING_BLOCKS)));
    dart_trap = new SimpleBlock(ID("dart_trap"), new DartTrapBlock(FabricBlockSettings.of(Material.STONE).strength(1.5f, 6.0f).requiresTool())).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.REDSTONE)));
    blue_berry_bush = new SimpleBlock(ID("blue_berry_bush"), new BlueBerryBushBlock(FabricBlockSettings.of(Material.PLANT).ticksRandomly().noCollision().sounds(BlockSoundGroup.SWEET_BERRY_BUSH)));
    daybloom = new SimpleBlock(ID("daybloom"), new DaybloomBlock(FabricBlockSettings.of(Material.PLANT).ticksRandomly().noCollision().sounds(BlockSoundGroup.CROP)));
    life_crystal = new SimpleBlock(ID("life_crystal"), new Block(FabricBlockSettings.of(Material.AMETHYST, MapColor.BRIGHT_RED).sounds(BlockSoundGroup.LARGE_AMETHYST_BUD))).defaultBlockstate().withItem(ItemModel.ITEM, (block) -> new LifeCrystalBlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    ice_torch = torch("ice", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.ICE));
    bone_torch = torch("bone", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.BONE));
    ultrabright_torch = torch("ultrabright", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.GLOW_BERRIES));
    demon_torch = torch("demon", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.GHAST_TEAR));
    cursed_torch = torch("cursed", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.PHANTOM_MEMBRANE));
    ichor_torch = torch("ichor", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.DANDELION));
    rainbow_torch = torch("rainbow", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.PRISMARINE_SHARD));
    desert_torch = torch("desert", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.SANDSTONE));
    coral_torch = torch("coral", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.SEA_PICKLE));
    corrupt_torch = torch("corrupt", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.BLACKSTONE));
    crimson_torch = torch("crimson", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.NETHER_WART));
    hallowed_torch = torch("hallowed", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.SWEET_BERRIES));
    jungle_torch = torch("jungle", ParticleTypes.SOUL_FIRE_FLAME, tr(Items.BAMBOO));
    forest_pot = new SimpleBlock(ID("forest_pot"), new PotBlock(4, 1 / 500.0, Items.TORCH, 1.0F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    tundra_pot = new SimpleBlock(ID("tundra_pot"), new PotBlock(3, 1 / 461.0, BlockRegistry.ice_torch.getItem().getItem(), 1.25F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    jungle_pot = new SimpleBlock(ID("jungle_pot"), new PotBlock(3, 1 / 400.0, BlockRegistry.jungle_torch.getItem().getItem(), 1.75F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    dungeon_pot = new SimpleBlock(ID("dungeon_pot"), new PotBlock(3, 1 / 384.0, Items.TORCH, 1.9F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    underworld_pot = new SimpleBlock(ID("underworld_pot"), new PotBlock(3, 1 / 365.0, Items.TORCH, 2.1F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    corrupt_pot = new SimpleBlock(ID("corrupt_pot"), new PotBlock(3, 1 / 365.0, BlockRegistry.corrupt_torch.getItem().getItem(), 1.6F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    crimson_pot = new SimpleBlock(ID("crimson_pot"), new PotBlock(3, 1 / 365.0, BlockRegistry.crimson_torch.getItem().getItem(), 1.6F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    hallowed_pot = new SimpleBlock(ID("hallowed_pot"), new PotBlock(3, 1 / 365.0, BlockRegistry.hallowed_torch.getItem().getItem(), 1.6F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    spider_pot = new SimpleBlock(ID("spider_pot"), new PotBlock(3, 1 / 272.0, Items.TORCH, 3.5F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    pyramid_pot = new SimpleBlock(ID("pyramid_pot"), new PotBlock(3, 1 / 125.0, Items.TORCH, 10.0F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    lihzahrd_pot = // TODO: Portal values are 1/250 for hm and 1/500 for pre-hm AND modifier is 4.0F hm and 1.0F pre-hm
    new SimpleBlock(ID("lihzahrd_pot"), new PotBlock(3, 1 / 250.0, Items.TORCH, 4.0F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    marble_pot = new SimpleBlock(ID("marble_pot"), new PotBlock(3, 1 / 375.0, Items.TORCH, 2.0F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
    desert_pot = new SimpleBlock(ID("desert_pot"), new PotBlock(3, 1 / 461.0, BlockRegistry.desert_torch.getItem().getItem(), 1.25F)).withItem(ItemModel.BLOCK, (block) -> new BlockItem(block, new FabricItemSettings().group(ItemGroup.DECORATIONS)));
}
Also used : SimpleBlock(com.simplycmd.featherlib.registry.SimpleBlock) io.github.simplycmd.terracraft.blocks(io.github.simplycmd.terracraft.blocks) JRecipe(net.devtech.arrp.json.recipe.JRecipe) Getter(lombok.Getter) ParticleType(net.minecraft.particle.ParticleType) FabricBlockSettings(net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings) LifeCrystalBlockItem(io.github.simplycmd.terracraft.blocks.items.LifeCrystalBlockItem) SimpleBlock(com.simplycmd.featherlib.registry.SimpleBlock) JIngredient(net.devtech.arrp.json.recipe.JIngredient) net.minecraft.item(net.minecraft.item) JKeys(net.devtech.arrp.json.recipe.JKeys) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) net.minecraft.block(net.minecraft.block) ParticleTypes(net.minecraft.particle.ParticleTypes) ItemModel(com.simplycmd.featherlib.registry.SimpleBlock.ItemModel) Resources(com.simplycmd.featherlib.registry.Resources) Identifier(net.minecraft.util.Identifier) JResult(net.devtech.arrp.json.recipe.JResult) SimpleItem(com.simplycmd.featherlib.registry.SimpleItem) JPattern(net.devtech.arrp.json.recipe.JPattern) Main(io.github.simplycmd.terracraft.Main) BlockSoundGroup(net.minecraft.sound.BlockSoundGroup) LifeCrystalBlockItem(io.github.simplycmd.terracraft.blocks.items.LifeCrystalBlockItem) FabricItemSettings(net.fabricmc.fabric.api.item.v1.FabricItemSettings) SimpleBlock(com.simplycmd.featherlib.registry.SimpleBlock) LifeCrystalBlockItem(io.github.simplycmd.terracraft.blocks.items.LifeCrystalBlockItem)

Aggregations

Resources (com.simplycmd.featherlib.registry.Resources)1 SimpleBlock (com.simplycmd.featherlib.registry.SimpleBlock)1 ItemModel (com.simplycmd.featherlib.registry.SimpleBlock.ItemModel)1 SimpleItem (com.simplycmd.featherlib.registry.SimpleItem)1 Main (io.github.simplycmd.terracraft.Main)1 io.github.simplycmd.terracraft.blocks (io.github.simplycmd.terracraft.blocks)1 LifeCrystalBlockItem (io.github.simplycmd.terracraft.blocks.items.LifeCrystalBlockItem)1 Getter (lombok.Getter)1 JIngredient (net.devtech.arrp.json.recipe.JIngredient)1 JKeys (net.devtech.arrp.json.recipe.JKeys)1 JPattern (net.devtech.arrp.json.recipe.JPattern)1 JRecipe (net.devtech.arrp.json.recipe.JRecipe)1 JResult (net.devtech.arrp.json.recipe.JResult)1 FabricItemSettings (net.fabricmc.fabric.api.item.v1.FabricItemSettings)1 FabricBlockSettings (net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings)1 net.minecraft.block (net.minecraft.block)1 net.minecraft.item (net.minecraft.item)1 ParticleType (net.minecraft.particle.ParticleType)1 ParticleTypes (net.minecraft.particle.ParticleTypes)1 BlockSoundGroup (net.minecraft.sound.BlockSoundGroup)1