-
Issues when registering ItemBlock
Version 1.8.9
-
Issues when registering ItemBlock
I created a class called ModBlocks for my blocks. There are two blocks, arock and brock. As you can see I created a method called registerBlocks() to register my blocks and also their ItemBlocks. And finally, use the register() method to register all of them in my main class. But the following exception occurs: package Sixs.FirstMod.blocks; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.item.ItemBlock; import net.minecraftforge.fml.common.registry.GameRegistry; public class ModBlocks { public static Block arock = new Block(Material.rock).setUnlocalizedName("arock").setRegistryName("arock"); public static Block brock = new Block(Material.rock).setUnlocalizedName("brock").setRegistryName("brock"); public static void init() { } public static void register() { registerBlocks(arock,brock); } public static void registerBlocks(Block... blocks) { for (Block block1 : blocks) { GameRegistry.registerBlock(block1); ItemBlock itemBlock = new ItemBlock(block1); itemBlock.setRegistryName(block1.getRegistryName()); GameRegistry.registerItem(itemBlock); } } } It says that I use the name fm:arock to register ItemBlocks twice, but I don't know how. The ItemBlocks's registry names are the same from their corresponding blocks. Help will be appreciated.
-
Adding optifine to forge gradle
Alright guys. I finally got it to work. I changed the optifine version and it worked out! Thx for your help and patients!
-
Adding optifine to forge gradle
while it failed again, but I feel like this time is better Btw I'm using the --all jar and Optifine 1.8.8_HD_U_H8 version. Got them in the mod folder
-
Adding optifine to forge gradle
So I need to put my tweaker with the decompiled Optifine jar by using simpledeobf in the run/mod folder?
-
Adding optifine to forge gradle
I have my optifine installed only in the playable forge launcher but not the development environment. But I have the other source and normal tweaker jar in the build lib.
-
Adding optifine to forge gradle
@Cadiboo I tried the --all version. And this is what I got,
-
Adding optifine to forge gradle
what do you mean by --all version?
-
Adding optifine to forge gradle
i build it with .\gradlew jar command
-
Adding optifine to forge gradle
It doesn't work
-
Adding optifine to forge gradle
one question, where can i get the optifinedevtweaker jar file?
-
[SOLVED] [1.12.2] Compatibility with Optifine (Forge 14.23.4.2729)
Thx I will try
-
Adding optifine to forge gradle
So I am trying to adding the optifine mod to my development environment but I struggled on it. I tried different methods but it doesn't work. I'm trying to add the optifine by using optifine src. And also, I'm using intellij. Helps please.
IPS spam blocked by CleanTalk.