Jump to content

xtay2

Members
  • Posts

    1
  • Joined

  • Last visited

Everything posted by xtay2

  1. Hello, I have tried my best do do a Forgemod for the MC 1.15.2. (Forgeversion: 31.2), but I keep getting this error: My whole log https://pastebin.com/D3109NaF The "error" is displayed to be in the class BlocksInit: package xtay2.vanillaedits.init; import xtay2.vanillaedits.VanillaEdits; import net.minecraft.block.Block; import net.minecraft.block.Block.Properties; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraftforge.common.ToolType; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.Mod.EventBusSubscriber.Bus; import net.minecraftforge.registries.IForgeRegistry; @Mod.EventBusSubscriber(modid = VanillaEdits.MODID, bus = Bus.MOD) public class BlocksInit { public static final Block ep_ore = new Block(Properties.create(Material.ROCK).harvestLevel(2).hardnessAndResistance(3.0F).harvestTool(ToolType.PICKAXE).sound(SoundType.STONE).lightValue(1)).setRegistryName("ep_ore"); public static final Item ep_ore_item = new BlockItem(ep_ore, new Item.Properties().group(ItemGroup.BUILDING_BLOCKS).maxStackSize(64)).setRegistryName("ep_ore"); @SubscribeEvent public static void registerBlocks(final RegistryEvent.Register<Block> event) { final IForgeRegistry<Block> registry = event.getRegistry(); registry.register(ep_ore); } @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { final IForgeRegistry<Item> registry = event.getRegistry(); registry.register(ep_ore_item); } } When I load the mod.jar in normal MC and not Eclipse/Forge the Textures of my added block "ep_ore" wont load at all and I get the purple/black unassigned texture. I hope you can help me, have a wonderful day!
×
×
  • Create New...

Important Information

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