Jump to content

Drachenbauer

Members
  • Posts

    727
  • Joined

  • Last visited

Everything posted by Drachenbauer

  1. For me, the build command showed no errors after running, but i have no .jar file in my build-folder. What must i do now? edit: inside the build-folder, there is a lib-folder. and there i found a jar-file with the name of the mod and a version--number. is this the right one? edit 2: Yeah, that´s it. It works in my main-world So it may be a good idea to tell in your tutorial, that the mod-jar-file is located inside the lib-folder in the build-folder.
  2. Looks like SoundType is STONE, if not applyed another while registration
  3. for sample the concrete blocks: in the vanilla-code, they have only the value 1.8f, but in a wiki-page they have the values 1.8f and 9f. i found a hardness-table and a resistance-table there.
  4. This means, in this case both values are the same. But on minecraft wiki-pages for some of theese blocks, i found both different. why?
  5. Hello as i searches the "hardnessAndResistance" values for my tile-blocks, i noticed, that some of the official vanilla-blocks have only one value there. Why this? And what is the other value in this case?
  6. does the method mean secconds or ticks?
  7. actually i used the common BlockItem-class for theese. should i create my own class, that extends BlockItem? getBurnTime wants an Int-value. Does that mean secconds or ticks?
  8. Hello how do i make my own wooden tiles usable as fuel for furnaces? They should burn 1/16 from the time, their base-blocks do. Because my tiles have 1/16 from the base-block-volume.
  9. Helli is there anywhere a list, that shows the choices of Material, MaterialColor and Soundtype for all official blocks; I want the same options for my tiles, as used for the official blocks, they are made from. Can you please help me find this infos? I think, all stone-variants have "Material.ROCK" and all wood variants have "Material.WOOD", right?
  10. Hello As i added all concrete, terracotta and glazed terracotta-tiles to my my flat tiles mod, everything worked fine. But since i added the wood tiles, i get this crash-error: this is my main-class: package drachenbauer32.flattilesmod; import java.util.Arrays; import java.util.Comparator; import java.util.List; import com.google.common.collect.Ordering; import drachenbauer32.flattilesmod.blocks.DyableTileBlock; import drachenbauer32.flattilesmod.blocks.GlazedTerracottaTileBlock; import drachenbauer32.flattilesmod.blocks.TileBlock; import drachenbauer32.flattilesmod.init.FlatTilesBlocks; import drachenbauer32.flattilesmod.init.FlatTilesItems; import drachenbauer32.flattilesmod.util.FlatTilesItemGroup; import drachenbauer32.flattilesmod.util.Reference; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.block.material.MaterialColor; import net.minecraft.item.Rarity; import net.minecraft.item.Item; import net.minecraft.item.BlockItem; import net.minecraft.item.DyeColor; import net.minecraft.item.ItemGroup; import net.minecraft.item.ItemStack; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; @Mod(Reference.MOD_ID) public class FlatTiles { public static Comparator<ItemStack> itemSorter; public FlatTiles() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::setup); FMLJavaModLoadingContext.get().getModEventBus().addListener(this::clientRegistries); MinecraftForge.EVENT_BUS.register(this); } private void setup(final FMLCommonSetupEvent event) { List<Item> items = Arrays.asList(FlatTilesItems.acacia_log_tile, FlatTilesItems.acacia_wood_tile, FlatTilesItems.stripped_acacia_log_tile, FlatTilesItems.stripped_acacia_wood_tile, FlatTilesItems.acacia_planks_tile, FlatTilesItems.birch_log_tile, FlatTilesItems.birch_wood_tile, FlatTilesItems.stripped_birch_log_tile, FlatTilesItems.stripped_birch_wood_tile, FlatTilesItems.birch_planks_tile, FlatTilesItems.dark_oak_log_tile, FlatTilesItems.dark_oak_wood_tile, FlatTilesItems.stripped_dark_oak_log_tile, FlatTilesItems.stripped_dark_oak_wood_tile, FlatTilesItems.dark_oak_planks_tile, FlatTilesItems.jungle_log_tile, FlatTilesItems.jungle_wood_tile, FlatTilesItems.stripped_jungle_log_tile, FlatTilesItems.stripped_jungle_wood_tile, FlatTilesItems.jungle_planks_tile, FlatTilesItems.oak_log_tile, FlatTilesItems.oak_wood_tile, FlatTilesItems.stripped_oak_log_tile, FlatTilesItems.stripped_oak_wood_tile, FlatTilesItems.oak_planks_tile, FlatTilesItems.spruce_log_tile, FlatTilesItems.spruce_wood_tile, FlatTilesItems.stripped_spruce_log_tile, FlatTilesItems.stripped_spruce_wood_tile, FlatTilesItems.spruce_planks_tile, FlatTilesItems.red_concrete_tile, FlatTilesItems.orange_concrete_tile, FlatTilesItems.yellow_concrete_tile, FlatTilesItems.lime_concrete_tile, FlatTilesItems.cyan_concrete_tile, FlatTilesItems.blue_concrete_tile, FlatTilesItems.purple_concrete_tile, FlatTilesItems.magenta_concrete_tile, FlatTilesItems.pink_concrete_tile, FlatTilesItems.light_blue_concrete_tile, FlatTilesItems.green_concrete_tile, FlatTilesItems.brown_concrete_tile, FlatTilesItems.black_concrete_tile, FlatTilesItems.gray_concrete_tile, FlatTilesItems.light_gray_concrete_tile, FlatTilesItems.white_concrete_tile, FlatTilesItems.red_terracotta_tile, FlatTilesItems.orange_terracotta_tile, FlatTilesItems.yellow_terracotta_tile, FlatTilesItems.lime_terracotta_tile, FlatTilesItems.cyan_terracotta_tile, FlatTilesItems.blue_terracotta_tile, FlatTilesItems.purple_terracotta_tile, FlatTilesItems.magenta_terracotta_tile, FlatTilesItems.pink_terracotta_tile, FlatTilesItems.light_blue_terracotta_tile, FlatTilesItems.green_terracotta_tile, FlatTilesItems.brown_terracotta_tile, FlatTilesItems.black_terracotta_tile, FlatTilesItems.gray_terracotta_tile, FlatTilesItems.light_gray_terracotta_tile, FlatTilesItems.white_terracotta_tile, FlatTilesItems.red_glazed_terracotta_tile, FlatTilesItems.orange_glazed_terracotta_tile, FlatTilesItems.yellow_glazed_terracotta_tile, FlatTilesItems.lime_glazed_terracotta_tile, FlatTilesItems.cyan_glazed_terracotta_tile, FlatTilesItems.blue_glazed_terracotta_tile, FlatTilesItems.purple_glazed_terracotta_tile, FlatTilesItems.magenta_glazed_terracotta_tile, FlatTilesItems.pink_glazed_terracotta_tile, FlatTilesItems.light_blue_glazed_terracotta_tile, FlatTilesItems.green_glazed_terracotta_tile, FlatTilesItems.brown_glazed_terracotta_tile, FlatTilesItems.black_glazed_terracotta_tile, FlatTilesItems.gray_glazed_terracotta_tile, FlatTilesItems.light_gray_glazed_terracotta_tile, FlatTilesItems.white_glazed_terracotta_tile); itemSorter = Ordering.explicit(items).onResultOf(ItemStack::getItem); } private void clientRegistries(final FMLClientSetupEvent event) { } @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { public static final ItemGroup FLAT_TILES = new FlatTilesItemGroup(); @SubscribeEvent public static void registerBlocks(final RegistryEvent.Register<Block> event) { event.getRegistry().registerAll(FlatTilesBlocks.black_concrete_tile = new DyableTileBlock("black_concrete_tile", DyeColor.BLACK, Block.Properties.create(Material.ROCK, MaterialColor.BLACK).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.blue_concrete_tile = new DyableTileBlock("blue_concrete_tile", DyeColor.BLUE, Block.Properties.create(Material.ROCK, MaterialColor.BLUE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.brown_concrete_tile = new DyableTileBlock("brown_concrete_tile", DyeColor.BROWN, Block.Properties.create(Material.ROCK, MaterialColor.BROWN).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.cyan_concrete_tile = new DyableTileBlock("cyan_concrete_tile", DyeColor.CYAN, Block.Properties.create(Material.ROCK, MaterialColor.CYAN).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.gray_concrete_tile = new DyableTileBlock("gray_concrete_tile", DyeColor.GRAY, Block.Properties.create(Material.ROCK, MaterialColor.GRAY).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.green_concrete_tile = new DyableTileBlock("green_concrete_tile", DyeColor.GREEN, Block.Properties.create(Material.ROCK, MaterialColor.GREEN).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.light_blue_concrete_tile = new DyableTileBlock("light_blue_concrete_tile", DyeColor.LIGHT_BLUE, Block.Properties.create(Material.ROCK, MaterialColor.LIGHT_BLUE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.light_gray_concrete_tile = new DyableTileBlock("light_gray_concrete_tile", DyeColor.LIGHT_GRAY, Block.Properties.create(Material.ROCK, MaterialColor.LIGHT_GRAY).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.lime_concrete_tile = new DyableTileBlock("lime_concrete_tile", DyeColor.LIME, Block.Properties.create(Material.ROCK, MaterialColor.LIME).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.magenta_concrete_tile = new DyableTileBlock("magenta_concrete_tile", DyeColor.MAGENTA, Block.Properties.create(Material.ROCK, MaterialColor.MAGENTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.orange_concrete_tile = new DyableTileBlock("orange_concrete_tile", DyeColor.ORANGE, Block.Properties.create(Material.ROCK, MaterialColor.ADOBE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.pink_concrete_tile = new DyableTileBlock("pink_concrete_tile", DyeColor.PINK, Block.Properties.create(Material.ROCK, MaterialColor.PINK).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.purple_concrete_tile = new DyableTileBlock("purple_concrete_tile", DyeColor.PURPLE, Block.Properties.create(Material.ROCK, MaterialColor.PURPLE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.red_concrete_tile = new DyableTileBlock("red_concrete_tile", DyeColor.RED, Block.Properties.create(Material.ROCK, MaterialColor.RED).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.white_concrete_tile = new DyableTileBlock("white_concrete_tile", DyeColor.WHITE, Block.Properties.create(Material.ROCK, MaterialColor.SNOW).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.yellow_concrete_tile = new DyableTileBlock("yellow_concrete_tile", DyeColor.YELLOW, Block.Properties.create(Material.ROCK, MaterialColor.YELLOW).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.8f, 9f).variableOpacity()), FlatTilesBlocks.black_terracotta_tile = new DyableTileBlock("black_terracotta_tile", DyeColor.BLACK, Block.Properties.create(Material.ROCK, MaterialColor.BLACK_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.blue_terracotta_tile = new DyableTileBlock("blue_terracotta_tile", DyeColor.BLUE, Block.Properties.create(Material.ROCK, MaterialColor.BLUE_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.brown_terracotta_tile = new DyableTileBlock("brown_terracotta_tile", DyeColor.BROWN, Block.Properties.create(Material.ROCK, MaterialColor.BROWN_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.cyan_terracotta_tile = new DyableTileBlock("cyan_terracotta_tile", DyeColor.CYAN, Block.Properties.create(Material.ROCK, MaterialColor.CYAN_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.gray_terracotta_tile = new DyableTileBlock("gray_terracotta_tile", DyeColor.GRAY, Block.Properties.create(Material.ROCK, MaterialColor.GRAY_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.green_terracotta_tile = new DyableTileBlock("green_terracotta_tile", DyeColor.GREEN, Block.Properties.create(Material.ROCK, MaterialColor.GREEN_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.light_blue_terracotta_tile = new DyableTileBlock("light_blue_terracotta_tile", DyeColor.LIGHT_BLUE, Block.Properties.create(Material.ROCK, MaterialColor.LIGHT_BLUE_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.light_gray_terracotta_tile = new DyableTileBlock("light_gray_terracotta_tile", DyeColor.LIGHT_GRAY, Block.Properties.create(Material.ROCK, MaterialColor.LIGHT_GRAY_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.lime_terracotta_tile = new DyableTileBlock("lime_terracotta_tile", DyeColor.LIME, Block.Properties.create(Material.ROCK, MaterialColor.LIME_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.magenta_terracotta_tile = new DyableTileBlock("magenta_terracotta_tile", DyeColor.MAGENTA, Block.Properties.create(Material.ROCK, MaterialColor.MAGENTA_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.orange_terracotta_tile = new DyableTileBlock("orange_terracotta_tile", DyeColor.ORANGE, Block.Properties.create(Material.ROCK, MaterialColor.ORANGE_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.pink_terracotta_tile = new DyableTileBlock("pink_terracotta_tile", DyeColor.PINK, Block.Properties.create(Material.ROCK, MaterialColor.PINK_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.purple_terracotta_tile = new DyableTileBlock("purple_terracotta_tile", DyeColor.PURPLE, Block.Properties.create(Material.ROCK, MaterialColor.PURPLE_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.red_terracotta_tile = new DyableTileBlock("red_terracotta_tile", DyeColor.RED, Block.Properties.create(Material.ROCK, MaterialColor.RED_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.white_terracotta_tile = new DyableTileBlock("white_terracotta_tile", DyeColor.WHITE, Block.Properties.create(Material.ROCK, MaterialColor.WHITE_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.yellow_terracotta_tile = new DyableTileBlock("yellow_terracotta_tile", DyeColor.YELLOW, Block.Properties.create(Material.ROCK, MaterialColor.YELLOW_TERRACOTTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.25f, 21f).variableOpacity()), FlatTilesBlocks.black_glazed_terracotta_tile = new GlazedTerracottaTileBlock("black_glazed_terracotta_tile", DyeColor.BLACK, Block.Properties.create(Material.ROCK, MaterialColor.BLACK).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.blue_glazed_terracotta_tile = new GlazedTerracottaTileBlock("blue_glazed_terracotta_tile", DyeColor.BLUE, Block.Properties.create(Material.ROCK, MaterialColor.BLUE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.brown_glazed_terracotta_tile = new GlazedTerracottaTileBlock("brown_glazed_terracotta_tile", DyeColor.BROWN, Block.Properties.create(Material.ROCK, MaterialColor.BROWN).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.cyan_glazed_terracotta_tile = new GlazedTerracottaTileBlock("cyan_glazed_terracotta_tile", DyeColor.CYAN, Block.Properties.create(Material.ROCK, MaterialColor.CYAN).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.gray_glazed_terracotta_tile = new GlazedTerracottaTileBlock("gray_glazed_terracotta_tile", DyeColor.GRAY, Block.Properties.create(Material.ROCK, MaterialColor.GRAY).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.green_glazed_terracotta_tile = new GlazedTerracottaTileBlock("green_glazed_terracotta_tile", DyeColor.GREEN, Block.Properties.create(Material.ROCK, MaterialColor.GREEN).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.light_blue_glazed_terracotta_tile = new GlazedTerracottaTileBlock("light_blue_glazed_terracotta_tile", DyeColor.LIGHT_BLUE, Block.Properties.create(Material.ROCK, MaterialColor.LIGHT_BLUE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.light_gray_glazed_terracotta_tile = new GlazedTerracottaTileBlock("light_gray_glazed_terracotta_tile", DyeColor.LIGHT_GRAY, Block.Properties.create(Material.ROCK, MaterialColor.LIGHT_GRAY).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.lime_glazed_terracotta_tile = new GlazedTerracottaTileBlock("lime_glazed_terracotta_tile", DyeColor.LIME, Block.Properties.create(Material.ROCK, MaterialColor.LIME).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.magenta_glazed_terracotta_tile = new GlazedTerracottaTileBlock("magenta_glazed_terracotta_tile", DyeColor.MAGENTA, Block.Properties.create(Material.ROCK, MaterialColor.MAGENTA).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.orange_glazed_terracotta_tile = new GlazedTerracottaTileBlock("orange_glazed_terracotta_tile", DyeColor.ORANGE, Block.Properties.create(Material.ROCK, MaterialColor.ADOBE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.pink_glazed_terracotta_tile = new GlazedTerracottaTileBlock("pink_glazed_terracotta_tile", DyeColor.PINK, Block.Properties.create(Material.ROCK, MaterialColor.PINK).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.purple_glazed_terracotta_tile = new GlazedTerracottaTileBlock("purple_glazed_terracotta_tile", DyeColor.PURPLE, Block.Properties.create(Material.ROCK, MaterialColor.PURPLE).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.red_glazed_terracotta_tile = new GlazedTerracottaTileBlock("red_glazed_terracotta_tile", DyeColor.RED, Block.Properties.create(Material.ROCK, MaterialColor.RED).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.white_glazed_terracotta_tile = new GlazedTerracottaTileBlock("white_glazed_terracotta_tile", DyeColor.WHITE, Block.Properties.create(Material.ROCK, MaterialColor.SNOW).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.yellow_glazed_terracotta_tile = new GlazedTerracottaTileBlock("yellow_glazed_terracotta_tile", DyeColor.YELLOW, Block.Properties.create(Material.ROCK, MaterialColor.YELLOW).sound(SoundType.STONE). lightValue(0).hardnessAndResistance(1.4f, 7f).variableOpacity()), FlatTilesBlocks.acacia_log_tile = new TileBlock("acacia_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.birch_log_tile = new TileBlock("birch_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.dark_oak_log_tile = new TileBlock("dark_oak_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.jungle_log_tile = new TileBlock("jungle_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.oak_log_tile = new TileBlock("oak_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.spruce_log_tile = new TileBlock("spruce_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.acacia_wood_tile = new TileBlock("acacia_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.birch_wood_tile = new TileBlock("birch_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.dark_oak_wood_tile = new TileBlock("dark_oak_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.jungle_wood_tile = new TileBlock("jungle_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.oak_wood_tile = new TileBlock("oak_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.spruce_wood_tile = new TileBlock("spruce_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_acacia_log_tile = new TileBlock("stripped_acacia_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_birch_log_tile = new TileBlock("stripped_birch_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_dark_oak_log_tile = new TileBlock("stripped_dark_oak_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_jungle_log_tile = new TileBlock("stripped_jungle_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_oak_log_tile = new TileBlock("stripped_oak_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_spruce_log_tile = new TileBlock("stripped_spruce_log_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_acacia_wood_tile = new TileBlock("stripped_acacia_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_birch_wood_tile = new TileBlock("stripped_birch_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.dark_oak_wood_tile = new TileBlock("stripped_dark_oak_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_jungle_wood_tile = new TileBlock("stripped_jungle_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_oak_wood_tile = new TileBlock("stripped_oak_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.stripped_spruce_wood_tile = new TileBlock("stripped_spruce_wood_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 10f).variableOpacity()), FlatTilesBlocks.acacia_planks_tile = new TileBlock("acacia_planks_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 15f).variableOpacity()), FlatTilesBlocks.birch_planks_tile = new TileBlock("birch_planks_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 15f).variableOpacity()), FlatTilesBlocks.dark_oak_planks_tile = new TileBlock("dark_oak_planks_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 15f).variableOpacity()), FlatTilesBlocks.jungle_planks_tile = new TileBlock("jungle_planks_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 15f).variableOpacity()), FlatTilesBlocks.oak_planks_tile = new TileBlock("oak_planks_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 15f).variableOpacity()), FlatTilesBlocks.spruce_planks_tile = new TileBlock("spruce_planks_tile", Block.Properties.create(Material.WOOD, MaterialColor.WOOD).sound(SoundType.WOOD). lightValue(0).hardnessAndResistance(2f, 15f).variableOpacity())); } @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().registerAll(FlatTilesItems.black_concrete_tile = new BlockItem(FlatTilesBlocks.black_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("black_concrete_tile"), FlatTilesItems.blue_concrete_tile = new BlockItem(FlatTilesBlocks.blue_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("blue_concrete_tile"), FlatTilesItems.brown_concrete_tile = new BlockItem(FlatTilesBlocks.brown_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("brown_concrete_tile"), FlatTilesItems.cyan_concrete_tile = new BlockItem(FlatTilesBlocks.cyan_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("cyan_concrete_tile"), FlatTilesItems.gray_concrete_tile = new BlockItem(FlatTilesBlocks.gray_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("gray_concrete_tile"), FlatTilesItems.green_concrete_tile = new BlockItem(FlatTilesBlocks.green_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("green_concrete_tile"), FlatTilesItems.light_blue_concrete_tile = new BlockItem(FlatTilesBlocks.light_blue_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("light_blue_concrete_tile"), FlatTilesItems.light_gray_concrete_tile = new BlockItem(FlatTilesBlocks.light_gray_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("light_gray_concrete_tile"), FlatTilesItems.lime_concrete_tile = new BlockItem(FlatTilesBlocks.lime_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("lime_concrete_tile"), FlatTilesItems.magenta_concrete_tile = new BlockItem(FlatTilesBlocks.magenta_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("magenta_concrete_tile"), FlatTilesItems.orange_concrete_tile = new BlockItem(FlatTilesBlocks.orange_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("orange_concrete_tile"), FlatTilesItems.pink_concrete_tile = new BlockItem(FlatTilesBlocks.pink_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("pink_concrete_tile"), FlatTilesItems.purple_concrete_tile = new BlockItem(FlatTilesBlocks.purple_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("purple_concrete_tile"), FlatTilesItems.red_concrete_tile = new BlockItem(FlatTilesBlocks.red_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("red_concrete_tile"), FlatTilesItems.white_concrete_tile = new BlockItem(FlatTilesBlocks.white_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("white_concrete_tile"), FlatTilesItems.yellow_concrete_tile = new BlockItem(FlatTilesBlocks.yellow_concrete_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("yellow_concrete_tile"), FlatTilesItems.black_terracotta_tile = new BlockItem(FlatTilesBlocks.black_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("black_terracotta_tile"), FlatTilesItems.blue_terracotta_tile = new BlockItem(FlatTilesBlocks.blue_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("blue_terracotta_tile"), FlatTilesItems.brown_terracotta_tile = new BlockItem(FlatTilesBlocks.brown_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("brown_terracotta_tile"), FlatTilesItems.cyan_terracotta_tile = new BlockItem(FlatTilesBlocks.cyan_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("cyan_terracotta_tile"), FlatTilesItems.gray_terracotta_tile = new BlockItem(FlatTilesBlocks.gray_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("gray_terracotta_tile"), FlatTilesItems.green_terracotta_tile = new BlockItem(FlatTilesBlocks.green_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("green_terracotta_tile"), FlatTilesItems.light_blue_terracotta_tile = new BlockItem(FlatTilesBlocks.light_blue_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("light_blue_terracotta_tile"), FlatTilesItems.light_gray_terracotta_tile = new BlockItem(FlatTilesBlocks.light_gray_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("light_gray_terracotta_tile"), FlatTilesItems.lime_terracotta_tile = new BlockItem(FlatTilesBlocks.lime_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("lime_terracotta_tile"), FlatTilesItems.magenta_terracotta_tile = new BlockItem(FlatTilesBlocks.magenta_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("magenta_terracotta_tile"), FlatTilesItems.orange_terracotta_tile = new BlockItem(FlatTilesBlocks.orange_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("orange_terracotta_tile"), FlatTilesItems.pink_terracotta_tile = new BlockItem(FlatTilesBlocks.pink_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("pink_terracotta_tile"), FlatTilesItems.purple_terracotta_tile = new BlockItem(FlatTilesBlocks.purple_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("purple_terracotta_tile"), FlatTilesItems.red_terracotta_tile = new BlockItem(FlatTilesBlocks.red_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("red_terracotta_tile"), FlatTilesItems.white_terracotta_tile = new BlockItem(FlatTilesBlocks.white_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("white_terracotta_tile"), FlatTilesItems.yellow_terracotta_tile = new BlockItem(FlatTilesBlocks.yellow_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("yellow_terracotta_tile"), FlatTilesItems.black_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.black_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("black_glazed_terracotta_tile"), FlatTilesItems.blue_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.blue_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("blue_glazed_terracotta_tile"), FlatTilesItems.brown_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.brown_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("brown_glazed_terracotta_tile"), FlatTilesItems.cyan_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.cyan_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("cyan_glazed_terracotta_tile"), FlatTilesItems.gray_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.gray_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("gray_glazed_terracotta_tile"), FlatTilesItems.green_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.green_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("green_glazed_terracotta_tile"), FlatTilesItems.light_blue_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.light_blue_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("light_blue_glazed_terracotta_tile"), FlatTilesItems.light_gray_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.light_gray_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("light_gray_glazed_terracotta_tile"), FlatTilesItems.lime_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.lime_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("lime_glazed_terracotta_tile"), FlatTilesItems.magenta_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.magenta_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("magenta_glazed_terracotta_tile"), FlatTilesItems.orange_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.orange_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("orange_glazed_terracotta_tile"), FlatTilesItems.pink_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.pink_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("pink_glazed_terracotta_tile"), FlatTilesItems.purple_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.purple_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("purple_glazed_terracotta_tile"), FlatTilesItems.red_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.red_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("red_glazed_terracotta_tile"), FlatTilesItems.white_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.white_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("white_glazed_terracotta_tile"), FlatTilesItems.yellow_glazed_terracotta_tile = new BlockItem(FlatTilesBlocks.yellow_glazed_terracotta_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("yellow_glazed_terracotta_tile"), FlatTilesItems.acacia_log_tile = new BlockItem(FlatTilesBlocks.acacia_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("acacia_log_tile"), FlatTilesItems.birch_log_tile = new BlockItem(FlatTilesBlocks.birch_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("birch_log_tile"), FlatTilesItems.dark_oak_log_tile = new BlockItem(FlatTilesBlocks.dark_oak_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("dark_oak_log_tile"), FlatTilesItems.jungle_log_tile = new BlockItem(FlatTilesBlocks.jungle_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("jungle_log_tile"), FlatTilesItems.oak_log_tile = new BlockItem(FlatTilesBlocks.oak_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("oak_log_tile"), FlatTilesItems.spruce_log_tile = new BlockItem(FlatTilesBlocks.spruce_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("spruce_log_tile"), FlatTilesItems.acacia_wood_tile = new BlockItem(FlatTilesBlocks.acacia_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("acacia_wood_tile"), FlatTilesItems.birch_wood_tile = new BlockItem(FlatTilesBlocks.birch_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("birch_wood_tile"), FlatTilesItems.dark_oak_wood_tile = new BlockItem(FlatTilesBlocks.dark_oak_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("dark_oak_wood_tile"), FlatTilesItems.jungle_wood_tile = new BlockItem(FlatTilesBlocks.jungle_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("jungle_wood_tile"), FlatTilesItems.oak_wood_tile = new BlockItem(FlatTilesBlocks.oak_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("oak_wood_tile"), FlatTilesItems.spruce_wood_tile = new BlockItem(FlatTilesBlocks.spruce_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("spruce_wood_tile"), FlatTilesItems.stripped_acacia_log_tile = new BlockItem(FlatTilesBlocks.stripped_acacia_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_acacia_log_tile"), FlatTilesItems.stripped_birch_log_tile = new BlockItem(FlatTilesBlocks.stripped_birch_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_birch_log_tile"), FlatTilesItems.stripped_dark_oak_log_tile = new BlockItem(FlatTilesBlocks.stripped_dark_oak_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_dark_oak_log_tile"), FlatTilesItems.stripped_jungle_log_tile = new BlockItem(FlatTilesBlocks.stripped_jungle_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_jungle_log_tile"), FlatTilesItems.stripped_oak_log_tile = new BlockItem(FlatTilesBlocks.stripped_oak_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_oak_log_tile"), FlatTilesItems.stripped_spruce_log_tile = new BlockItem(FlatTilesBlocks.stripped_spruce_log_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_spruce_log_tile"), FlatTilesItems.stripped_acacia_wood_tile = new BlockItem(FlatTilesBlocks.stripped_acacia_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_acacia_wood_tile"), FlatTilesItems.stripped_birch_wood_tile = new BlockItem(FlatTilesBlocks.stripped_birch_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_birch_wood_tile"), FlatTilesItems.stripped_dark_oak_wood_tile = new BlockItem(FlatTilesBlocks.stripped_dark_oak_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_dark_oak_wood_tile"), FlatTilesItems.stripped_jungle_wood_tile = new BlockItem(FlatTilesBlocks.stripped_jungle_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_jungle_wood_tile"), FlatTilesItems.stripped_oak_wood_tile = new BlockItem(FlatTilesBlocks.stripped_oak_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_oak_wood_tile"), FlatTilesItems.stripped_spruce_wood_tile = new BlockItem(FlatTilesBlocks.stripped_spruce_wood_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("stripped_spruce_wood_tile"), FlatTilesItems.acacia_planks_tile = new BlockItem(FlatTilesBlocks.acacia_planks_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("acacia_planks_tile"), FlatTilesItems.birch_planks_tile = new BlockItem(FlatTilesBlocks.birch_planks_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("birch_planks_tile"), FlatTilesItems.dark_oak_planks_tile = new BlockItem(FlatTilesBlocks.dark_oak_planks_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("dark_oak_planks_tile"), FlatTilesItems.jungle_planks_tile = new BlockItem(FlatTilesBlocks.jungle_planks_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("jungle_planks_tile"), FlatTilesItems.oak_planks_tile = new BlockItem(FlatTilesBlocks.oak_planks_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("oak_planks_tile"), FlatTilesItems.spruce_planks_tile = new BlockItem(FlatTilesBlocks.spruce_planks_tile, new Item.Properties().defaultMaxDamage(0).group(FLAT_TILES).maxStackSize(64).rarity(Rarity.COMMON). setNoRepair()).setRegistryName("spruce_planks_tile")); } } } In the error i see nothing about my own classes. So i cannot find out, why it happens... Edit: i noticed, that one of my wooden tile-blocks was registered with the wrong block-name, so it replaced another one, instead of being a new one and the matching item had no block for it.
  11. Now i got my own code to work, that uses the already existing files to create new ones with theese little changes.
  12. But i´m not sure, how to run code, that´s not part of the mod...
  13. I´m looking for a way to switch bitween the official player-model and my own player-models. So i thaught, the custom models (with renderers) need their own PlayerEntity-Classes. This is why i copyed the vanilla-code of the ClientPlayerEntity-class and tryed to fit it for my own player-variant. Should i use the code from the PlayerEntity-class instead?
  14. Hello For my new mod i have to create alot of almost identical json-files (only different block-materials): blockstates, block-models, item-models and recipes, 102 each. But copy, paste, rename and modify each single file takes alot of time and eclipse freezes often, if i try to paste a copyed file. Then it takes alot of time until it shows the rename-dialog, or i have to close and restart it. Is there any faster and efficienter way to create all theese files?
  15. Hello Someone told me, that i sometimes have to upgrade my workspace to the latest MCP-snapshot. Now i placed the number of the latest version into my build.gradle file. Should i now run the gradle-commands again?
  16. Does no one els here, how to do this?
  17. As i sayd Forge, i meaned the team of Forge-people, who make theese updates.
  18. I thaught i only need to update, if minecraft updates to the next main version, like from 1.14 to 1.15. I thaught, all, what forge does in the remaining time after such a main-update is replacing weird method and field names in the vanilla code into clear ones.
  19. I already replaced the old code with the actual one. What you see here. is the vanilla-code, i found in the referenced librarys in my actual workspace, the 1.15.1 one. I made this just a few weeks ago, after updating the Workspace setup to use a 1.15.1 tester And then i made my modifications. It really seems like i need my own version of RenderPlayerEvent, that uses my own PlayerRenderer instead of the official vanilla one. It looks like the official vanilla RenderPlayerEvent only uses the official vanilla PlayerRenderer.
  20. i don´t know, what you mean with " then apply modifications on top of the new code "... I know no ather way than copy and paste the actual vanilla-code and replace names of official classes in the code with my matching mod classes, wich should be used and and modify some areas of the code to fit with my model. Should i create my own version of RenderPlayerEvent, that uses my own PlayerRenderer in it´s constructor?
  21. i first created a new method for them in my renderer. But now i think, the shown method (found in the pufferfish) is the right place instead. And in the Entity-class i have a boolean, that is set to true for inflating and false for deflating. The method, i now use in the renderer, checks this boolean from the Entity-class to choose the model.
  22. I still don´t know, how i can get this RenderPlayerEvent to work...
  23. Hello I create my own player-entity. I copyed the content of the common ClientPlayerEntity. But now it shows me errors on some underwater-sounds and on the elythra-sound. this.ambientSoundHandlers.add(new UnderwaterAmbientSoundHandler(this, p_i50990_1_.getSoundHandler())); this.ambientSoundHandlers.add(new BubbleColumnAmbientSoundHandler(this)); this.mc.getSoundHandler().play(new ElytraSound(this)); this.mc.getSoundHandler().play(new UnderwaterAmbientSounds.UnderWaterSound(this)); it says something about undefined constructors. Sample for the elythra-sound: How do i access theese sounds in my own player-entity?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.