Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

xModRed

Members
  • 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)); } }; }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.