• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Delete this file.
    • Encountered an unexpected exception net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file Mekanism/general.toml of type SERVER for modid mekanism at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:61) at net.minecraftforge.fml.config.ConfigFileTypeHandler$$Lambda$7772/2065747234.apply(Unknown Source) at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:104) at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:83) at net.minecraftforge.fml.config.ConfigTracker$$Lambda$7771/697123055.accept(Unknown Source) at java.lang.Iterable.forEach(Iterable.java:75) at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2062) at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:83) at net.minecraftforge.fml.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:95) at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:59) at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:621) at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:232) at net.minecraft.server.MinecraftServer$$Lambda$11231/2117187559.run(Unknown Source) at java.lang.Thread.run(Thread.java:745) Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22) at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36) at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49) at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123) at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166) at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:57) ... 13 more
    • You can use the following ugly hack: public class UglyHack extends Item { public static BlockRayTraceResult rayTraceAccess(World worldIn, PlayerEntity player, RayTraceContext.FluidMode fluidMode) { return Item.rayTrace(worldIn, player, fluidMode); } }  
    • Alright, so I have done that, but I cannot use the same rayTrace method that the bottle uses because it is protected, so how do I find the fluid that was clicked? @SubscribeEvent public static void playerRightClickItem(PlayerInteractEvent.RightClickItem event) { System.out.println("Player Right Clicked!"); World worldIn = event.getWorld(); PlayerEntity playerIn = event.getPlayer(); if (event.getPlayer().getHeldItem(event.getHand()).getItem() == Items.GLASS_BOTTLE) { RayTraceResult raytraceresult = rayTrace(worldIn, playerIn, RayTraceContext.FluidMode.SOURCE_ONLY); //Error: 'rayTrace(net.minecraft.world.World, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.math.RayTraceContext.FluidMode)' has protected access in 'net.minecraft.item.Item' if (raytraceresult.getType() == RayTraceResult.Type.MISS) { } else { if (raytraceresult.getType() == RayTraceResult.Type.BLOCK) { BlockPos blockpos = ((BlockRayTraceResult)raytraceresult).getPos(); if (worldIn.getFluidState(blockpos).getFluid() instanceof RedWater) { worldIn.playSound(playerIn, playerIn.getPosX(), playerIn.getPosY(), playerIn.getPosZ(), SoundEvents.ITEM_BOTTLE_FILL, SoundCategory.NEUTRAL, 1.0F, 1.0F); turnBottleIntoItem(event.getPlayer().getHeldItem(event.getHand()), event.getPlayer(), PotionUtils.addPotionToItemStack(new ItemStack(Items.POTION), Potions.HEALING)); } } } } }  
    • Holding right-click with a bow in thirdperson will make the bow aim at whereever you are looking at (i.e. follows the player's head rotation). I want my items to be able to do the same but I have no idea. What should I do?
  • Topics

  • Who's Online (See full list)