Jump to content

Gaprosys

Members
  • Posts

    33
  • Joined

  • Last visited

Converted

  • Gender
    Undisclosed
  • Personal Text
    I am new!

Gaprosys's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks. Now it does work good. not perfect but good and thats ok. Very thanks to you.
  2. This is my actual code. I've messed a little bit with it and this is the code for my breaker(for with I need the breaking method(instant mining is not so balanced)).
  3. Is there a way to use the method without the EntityID, but work?
  4. I've tried to set the block break state and it functions really good, but the state doesn't reset, if I destroy the block or set it with the World::setBlockToAir to air. How can I reset the block break state? worldIn.sendBlockBreakProgress(player.getEntityId(), pos, 0) doesnt function. - Gaprosys
  5. Thx. You saved me the day. I'm searching since yesterday and befor after a solution to this. Thank you.
  6. Hello, how can I set the block break state? I need this for a breaker. - Gaprosys
  7. The Error came only, if mekanism is in the mods folder too. The Error(this happens only, if a Minecraft server starts and the world is fully loaded): java.lang.NullPointerException at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:217) ~[add.class:?] at mekanism.api.util.StackUtils.equalsWildcard(StackUtils.java:63) ~[StackUtils.class:?] at mekanism.api.util.StackUtils.equalsWildcardWithNBT(StackUtils.java:68) ~[StackUtils.class:?] at mekanism.common.recipe.inputs.ItemStackInput.testEquality(ItemStackInput.java:66) ~[ItemStackInput.class:?] at mekanism.common.recipe.inputs.ItemStackInput.testEquality(ItemStackInput.java:8) ~[ItemStackInput.class:?] at mekanism.common.recipe.inputs.MachineInput.equals(MachineInput.java:36) ~[MachineInput.class:?] at java.util.HashMap.putVal(HashMap.java:634) ~[?:1.8.0_111] at java.util.HashMap.put(HashMap.java:611) ~[?:1.8.0_111] at mekanism.common.recipe.RecipeHandler$Recipe.put(RecipeHandler.java:546) ~[RecipeHandler$Recipe.class:?] at mekanism.common.Mekanism.serverStarting(Mekanism.java:1086) ~[Mekanism.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[FMLModContainer.class:?] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?] at cpw.mods.fml.common.Loader.serverStarting(Loader.java:789) [Loader.class:?] at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:278) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:277) [lt.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] [15:54:25] [Server thread/ERROR] [FML]: A fatal exception occurred during the server starting event java.lang.NullPointerException at net.minecraft.item.ItemStack.func_77960_j(ItemStack.java:217) ~[add.class:?] at mekanism.api.util.StackUtils.equalsWildcard(StackUtils.java:63) ~[StackUtils.class:?] at mekanism.api.util.StackUtils.equalsWildcardWithNBT(StackUtils.java:68) ~[StackUtils.class:?] at mekanism.common.recipe.inputs.ItemStackInput.testEquality(ItemStackInput.java:66) ~[ItemStackInput.class:?] at mekanism.common.recipe.inputs.ItemStackInput.testEquality(ItemStackInput.java:8) ~[ItemStackInput.class:?] at mekanism.common.recipe.inputs.MachineInput.equals(MachineInput.java:36) ~[MachineInput.class:?] at java.util.HashMap.putVal(HashMap.java:634) ~[?:1.8.0_111] at java.util.HashMap.put(HashMap.java:611) ~[?:1.8.0_111] at mekanism.common.recipe.RecipeHandler$Recipe.put(RecipeHandler.java:546) ~[RecipeHandler$Recipe.class:?] at mekanism.common.Mekanism.serverStarting(Mekanism.java:1086) ~[Mekanism.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[FMLModContainer.class:?] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) ~[?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[LoadController.class:?] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[LoadController.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_111] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_111] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_111] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_111] at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?] at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?] at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) ~[LoadController.class:?] at cpw.mods.fml.common.Loader.serverStarting(Loader.java:789) [Loader.class:?] at cpw.mods.fml.common.FMLCommonHandler.handleServerStarting(FMLCommonHandler.java:278) [FMLCommonHandler.class:?] at net.minecraft.server.dedicated.DedicatedServer.func_71197_b(DedicatedServer.java:277) [lt.class:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:387) [MinecraftServer.class:?] at net.minecraft.server.MinecraftServer$2.run(MinecraftServer.java:685) [li.class:?] And the Code in which we suspect the error: //if(Loader.isModLoaded("Mekanism")){ if(OreDictionary.doesOreNameExist("oreOsmium")){ OreDictionary.registerOre("oreOsmium", new ItemStack(oreGravel, 1, 7)); OreDictionary.registerOre("oreOsmium", new ItemStack(oreSand, 1, 7)); OreDictionary.registerOre("oreOsmium", new ItemStack(oreDust, 1, 7)); } And the mods, we've installed: AgriCraft-1.7.10-1.5.0.jar ArcaneArteries0.8.2.jar Automagy-1.7.10-0.27.1.jar Bagginses-2.1.1.jar BigReactors-0.4.3A.jar BloodArsenal-1.7.10-1.2-3.jar BloodMagic-1.7.10-1.3.3-13.jar Botania r1.8-249.jar buildcraft-7.1.14.jar buildcraft-compat-7.1.3.jar BuildcraftAdditions-1.7.10-2.2.5.jar Chisel2-2.5.1.44.jar CodeChickenCore-1.7.10-1.0.7.46-universal.jar CoFHCore-[1.7.10]3.1.3-327.jar CoFHTweaks-[1.7.10]1.1.2-89.jar EnchantingPlus-1.7.10-3.0.2-d.jar Eureka-1.7.10-3.0.2.jar Ex-Nihilo-1.38-53.jar ExtraTiC-1.7.10-1.4.5.jar extrautilities-1.2.12.jar Forbidden Magic-1.7.10-0.573.jar gadomancy-1.7.10-1.0.5.jar Galacticraft-Planets-1.7-3.0.12.375.jar GalacticraftCore-1.7-3.0.12.375.jar GardenStuff-1.7.10-1.7.0.jar Guide-API-1.7.10-1.0.1-20.jar IndustriousMage-0.0.5.jar InventoryTweaks-1.58-147.jar ironchest-1.7.10-6.0.62.742-universal.jar Jabba-1.2.2_1.7.10.jar journeymap-1.7.10-5.1.4-unlimited.jar magicalcrops-1.7.10_0.1.jar Mantle-1.7.10-0.3.2b.jar Mekanism-1.7.10-8.1.9.265.jar MekanismGenerators-1.7.10-8.1.9.265.jar MekanismTools-1.7.10-8.1.9.265.jar MicdoodleCore-1.7-3.0.12.375.jar MineFactoryReloaded-[1.7.10]2.8.1-174.jar neiaddons-1.12.11.36-mc1.7.10.jar NethertweaksMod-1.4.6.jar NotEnoughItems-1.7.10-1.0.5.118-universal.jar OpenBlocks-1.7.10-1.5.jar OpenModsLib-1.7.10-0.9.jar Pam's HarvestCraft 1.7.10j.jar Railcraft_1.7.10-9.12.2.0.jar Sanguimancy-1.7.10-1.1.9-32.jar StorageDrawers-1.7.10-1.10.5.jar supercraftingframe-1.7.10.3.jar TConstruct-1.7.10-1.8.8.jar Thaumcraft-1.7.10-4.2.3.5.jar thaumcraftneiplugin-1.7.10-1.7a.jar ThaumicExploration-1.7.10-1.1-53.jar ThermalDynamics-[1.7.10]1.2.0-171.jar ThermalExpansion-[1.7.10]4.1.3-246.jar ThermalFoundation-[1.7.10]1.2.5-115.jar Traincraft-4.3.0_003.jar TravellersGear-1.7.10-1.16.6.jar Waila-1.5.10_1.7.10.jar WailaHarvestability-mc1.7.10-1.1.6.jar witchery-1.7.10-0.24.1.jar WitchingGadgets-1.7.10-1.1.10.jar [1.7.10]Treecapitator-universal-2.0.4.jar 1.7.10\Baubles-1.7.10-1.0.1.10.jar 1.7.10\CodeChickenLib-1.7.10-1.1.3.138-universal.jar 1.7.10\ForgeMultipart-1.7.10-1.2.0.345-universal.jar 1.7.10\[1.7.10]bspkrsCore-universal-6.15.jar railcraft\emblems
  8. Hello, how can I and my friend adding support for the Mekanism Ore Osmium? Were programming on Nether Tweaks Mod and we get an error, if we wan't to get the Osmium ingot from the OreDirectory. We look forward to hearing from you, - Gaprosys
  9. That´s strange because my other mod (of 3) that depends on the core too doesn´t look like that. But it works for that mod only. EDIT: I got it now.I forgot the "after:" part. Sry for not noticing it.
  10. Thank you. I will change it and try to upload the code of my coremod.
  11. Hello I have a small problem where my mod doesn´t want to start after compiling. It shows a error log with "comparable version". I don´t know what version mc wants to compare with whatever, but I did every version thing exactly like in every other mod of mine. I checked everything 20 times. And it only happens in one mod. Log is here: http://pastebin.com/jF8Lp9Xa My Code is on Github: https://github.com/BarelyAlive/Nether-Tweaks/tree/master/main/java/mod/nethertweaks
  12. I tried the LivingSpawn Event but it didn't work. When I looked into the sub events, it seemed that it is for mobs not players.
  13. It seems to be the teleporter class wants the last position of the player in the overworld to get his entrance position for the nether. Can I make the method wait until the player has a overworld position? Or something different?
  14. My Code is now on Github here: https://github.com/BarelyAlive/Nether-Tweaks.
  15. The cause of the crash is a Ticking Memory Exception. The Code for my World Handler first spawn event method: package mod.nethertweaks.world; import java.io.*; import mod.chaust.ChaustItems; import mod.nethertweaks.BucketLoader; import mod.nethertweaks.Config; import mod.nethertweaks.ForgeSubscribe; import mod.nethertweaks.RecipeLoader; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.entity.EnumCreatureType; import net.minecraft.entity.passive.EntityAnimal; import net.minecraft.entity.passive.EntityCow; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.server.MinecraftServer; import net.minecraft.util.math.BlockPos; import net.minecraft.world.DimensionType; import net.minecraft.world.World; import net.minecraft.world.WorldProvider; import net.minecraft.world.WorldProviderEnd; import net.minecraft.world.WorldProviderHell; import net.minecraft.world.WorldProviderSurface; import net.minecraft.world.WorldType; import net.minecraft.world.gen.layer.GenLayer; import net.minecraftforge.common.DimensionManager; import net.minecraftforge.event.entity.EntityJoinWorldEvent; import net.minecraftforge.event.entity.living.LivingSpawnEvent; import net.minecraftforge.event.terraingen.WorldTypeEvent; import net.minecraftforge.event.terraingen.BiomeEvent.GetWaterColor; import net.minecraftforge.event.world.WorldEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class WorldHandler{ boolean isHellworldType; @SubscribeEvent public void changeDimensionByWorldType(WorldTypeEvent event) throws IOException, FileNotFoundException, ArrayIndexOutOfBoundsException { if(event.getWorldType() instanceof WorldTypeHellworld) { this.isHellworldType = true; DimensionManager.unregisterDimension(0); DimensionType.register("Overworld", "Provider", 0, WorldProviderSurfaceNTM.class, true); DimensionManager.registerDimension(0, DimensionType.getById(0)); DimensionManager.unregisterDimension(-1); DimensionType.register("Nether", "Provider", -1, WorldProviderNetherNTM.class, true); DimensionManager.registerDimension(-1, DimensionType.getById(-1)); DimensionManager.unregisterDimension(1); DimensionType.register("End", "Provider", 1, WorldProviderEndNTM.class, true); DimensionManager.registerDimension(1, DimensionType.getById(1)); } } @ForgeSubscribe @SubscribeEvent public void perfectJoin(net.minecraftforge.event.entity.EntityJoinWorldEvent event){ if(event.getEntity() instanceof EntityPlayer){ EntityPlayer player = (EntityPlayer) event.getEntity(); if(player.dimension != -1 && isHellworldType == true) { //player.preparePlayerToSpawn(); player.changeDimension(-1); } if(isHellworldType == false){ if(player.dimension == 0){ player.changeDimension(Config.nethDim); } if(player.dimension == 1){ player.changeDimension(Config.endDim); } } } } } Crashlog http://pastebin.com/6i21c8ar
×
×
  • Create New...

Important Information

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