Jump to content

xModRed

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by xModRed

  1. I do mine like this just to have it. public static void registerToolCrafting() { GameRegistry.addShapedRecipe(new ResourceLocation("obsidian_axe"), new ResourceLocation("OTA_Tools"), new ItemStack(OTA_Items.obsidian_axe), new Object[]{"ii ", "is ", " s ", 'i', OTA_Items.obsidian_ingot, 's', Items.STICK}); } and then call it in the main class you use to run the mod @Mod.EventHandler() public static void init(FMLInitializationEvent event) { Obsidian_Crafting.registerToolCrafting(); } the JSON file is structured like this Sorry if this wasn't helpful for your meta problem.
  2. I made an access transformer to change the methods and field to public. It works now no need to use reflection. #Season colouring public-f net.minecraft.world.biome.BiomeColorHelper field_180291_a #GRASS_COLOR public-f net.minecraft.world.biome.BiomeColorHelper field_180289_b #FOLIAGE_COLOR public net.minecraft.world.biome.BiomeColorHelper$ColorResolver #Seasonal melting public net.minecraft.world.World field_73005_l #updateLCG public net.minecraft.block.BlockIce func_185679_b(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)V #Seasonal freezing public net.minecraft.world.World func_175696_F(Lnet/minecraft/util/math/BlockPos;)Z #isWater public net.minecraft.item.crafting.ShapedRecipes func_192402_a([Ljava/lang/String;Ljava/util/Map;II)Lnet/minecraft/util/NonNullList;
  3. If you are trying to setupDecompWorkspace and create the eclipse environment you could just do them together. Try if this works for you. gradlew setupDecompWorkspace eclipse
  4. I'm trying to get the biome color and it keeps crashing. This is the error code The field BiomeColorHelper.GRASS_COLOR is not visible The type BiomeColorHelper.ColorResolver is not visible The field BiomeColorHelper.FOLIAGE_COLOR is not visible The type BiomeColorHelper.ColorResolver is not visible Here is the script @SideOnly(Side.CLIENT) private static void registerSeasonColourHandlers() { net.minecraft.world.biome.BiomeColorHelper.GRASS_COLOR = new BiomeColorHelper.ColorResolver() { @Override public int getColorAtPos(Biome biome, BlockPos blockPosition) { SeasonTime calendar = new SeasonTime(SeasonHandler.clientSeasonCycleTicks); return SeasonColourUtil.applySeasonalGrassColouring(calendar.getSubSeason(), biome.getGrassColorAtPos(blockPosition)); } }; net.minecraft.world.biome.BiomeColorHelper.FOLIAGE_COLOR = new BiomeColorHelper.ColorResolver() { @Override public int getColorAtPos(Biome biome, BlockPos blockPosition) { SeasonTime calendar = new SeasonTime(SeasonHandler.clientSeasonCycleTicks); return SeasonColourUtil.applySeasonalFoliageColouring(calendar.getSubSeason(), biome.getFoliageColorAtPos(blockPosition)); } }; }
×
×
  • Create New...

Important Information

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