• 0

    posted a message on Can't seem to get a custom status effect to deal damage every 25 seconds.

    It worked! It seems to deal half a heart of damage every 25 seconds like it should.


    I can't thank you enough for helping out with this problem. Thank you very much.


    This is what I used:



    public class SomethingEventHandler {

    private int minorCutTimer = 0;

    @SubscribeEvent
    public void onEntityUpdate(LivingUpdateEvent event)
    {

    if(!event.entityLiving.worldObj.isRemote) {

    if (event.entityLiving.isPotionActive(Effects.MinorCut))
    {

    minorCutTimer += 1;
    System.out.println(minorCutTimer);

    if(minorCutTimer == 500)
    {

    event.entityLiving.attackEntityFrom(DamageSource.generic, 1);
    System.out.println("hurt");
    minorCutTimer = 0;

    }

    if (event.entityLiving.getActivePotionEffect(Effects.MinorCut).getDuration()==0)
    {

    event.entityLiving.removePotionEffect(Effects.MinorCut.getId());
    return;

    }

    }

    }

    }

    Posted in: Modification Development
  • 0

    posted a message on Can't seem to get a custom status effect to deal damage every 25 seconds.

    Oh uh, sorry about that. I was trying everything in order to make it work. I had used regular int primitives at first but I changed it to that

    when I wanted to increment a int by one so I read something about it and followed it.

    I have changed the ints to what I was using at first.


    And thanks, I'll try out the server side thing you've suggested and I'll report back.

    Posted in: Modification Development
  • 0

    posted a message on Can't seem to get a custom status effect to deal damage every 25 seconds.

    Hi,


    I've been trying for hours to get a custom status effect to deal damage to a player that has the custom status effect for every 25 seconds.

    To no avail, I can't seem to get it to work.


    It's suppose to deal half a heart of damage every 500 ticks(25 seconds) but every 500 ticks, it goes back to 0 and starts again as intended but no damage is dealt.

    Sometimes it works but sometimes it doesn't and it really confuses me a lot.



    public class SomethingEventHandler {

    private Integer minorCutTimer = new Integer(0);

    @SubscribeEvent
    public void onEntityUpdate(LivingUpdateEvent event)
    {

    if (event.entityLiving.isPotionActive(Effects.MinorCut))
    {

    minorCutTimer += 1;
    System.out.println(minorCutTimer);

    if(minorCutTimer == 500)
    {

    event.entityLiving.attackEntityFrom(DamageSource.generic, 1);
    System.out.println("hurt");
    minorCutTimer = 0;

    }

    if (event.entityLiving.getActivePotionEffect(Effects.MinorCut).getDuration()==0)
    {

    event.entityLiving.removePotionEffect(Effects.MinorCut.getId());
    return;

    }

    }

    }

    Posted in: Modification Development
  • 0

    posted a message on [SMP] More Explosives Mod [over 1,500,000 downloads!]
    Hey uh im having id conflicts with thaumcraft and i cant seem to find the
    config file to change it.
    Any ideas where it could be?
    Posted in: Minecraft Mods
  • 0

    posted a message on Minecraft News - Black Spot Fixes, BL2 Skins!
    So while i was taking a look at the disco biome
    i noticed this


    hmm...

    Original Picture
    http://imgur.com/Wi1Q8mO
    Posted in: Minecraft News
  • 0

    posted a message on PLASMACRAFT 0.3.5 BETA - The Legacy Continues! {10/8/2014}
    Quote from hazerddex

    umm i don't quite understand but this is not for 1.4.7 if that what your using


    Well when i use 0.3.1r2 for voltz 1.4.7 it works
    but if i put it into my server it crashes
    so are you saying that 0.3.1r2 is not for 1.4.7?
    Posted in: Minecraft Mods
  • 0

    posted a message on PLASMACRAFT 0.3.5 BETA - The Legacy Continues! {10/8/2014}
    Ugh i am going insane here. I spent the whole day trying everything to install plasmacraft onto my voltz server and all it did was crash it
    I even updated it to ForgeModLoader Build 6.6.2.534 by getting a 1.4.7 server file and pasted FML inside and renamed it to Voltz
    and i was using plasmacraft version 0.3.1r2
    I even used older version such as 0.3.1 and 0.3.0 but no luck
    0.3.0 Plasmacraft does not get loaded in
    0.3.1 crashes
    0.3.1r2 crashes

    These are the crash logs

    0.3.1r2
    java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
    http://pastebin.com/GsP8Wdvn

    0.3.1
    java.lang.NoClassDefFoundError: net/minecraft/client/Minecraft
    http://pastebin.com/1n1m6mLD

    0.3.0
    Identified a class mod_PlasmaCraft following modloader naming convention but not directly a BaseMod or currently seen subclass
    http://pastebin.com/wTPBzvHn

    Also i am going to have war in voltz and i would like plasmacraft to be in to like make my labs and stuff lol
    Posted in: Minecraft Mods
  • 0

    posted a message on Where did isMultiplayerWorld() go?
    Quote from Sedridor

    IsRemote is also used in SSP to determine whether it's serverside or playerside. Therefore you can't just use that to determine whether a world is on a real server or just on the integrated server.

    But !isSingleplayer() might do what you're looking for.


    Okay everything is working now thanks for the help everyone :>
    Posted in: Modification Development
  • 0

    posted a message on Where did isMultiplayerWorld() go?
    I just started learning java and I still a newbie but
    I am trying to make a mod and I cant seem to find isMultiplayerWorld() in Minecraft.java.

    I tried asking my friends but they dont know anything about coding java
    then I tried googling it but no luck.
    Posted in: Modification Development
  • 0

    posted a message on 1.5.2 Pre-Release and...a Snapshot Too?
    So i saw this on the wiki
    "Zombies can spawn more zombies"

    Jeb yudodis and make the game more harder
    Posted in: Minecraft News
  • 0

    posted a message on ChickenBones Mods
    Quote from Vandesdelca32

    ChickenBones, I should let you know that your website is on Kaspersky's malicious list, I cannot download any of your files or see any of the pictures on the forum here because of it.


    Same here Kaspersky blocked me from entering/downloading and even said the program contains a trojan :Z
    I'll just take NEI out from a mod pack Nope i'll just use TMI til this gets fixed ;+;

    Posted in: Minecraft Mods
  • 0

    posted a message on Thirst Mod 1.8.15. Updated to Minecraft 1.8 100k+ Downloads!
    Hey uh wheres the download for MC1.4.7?
    all i see in the old versions are 1.2.0

    Is the mod version 1.5.1 for 1.4.7? if so then where can i download it?
    Posted in: Minecraft Mods
  • 0

    posted a message on Mods conflicting ;c
    Quote from McMichael96

    Can you upload the config file for Mekanism? I don't really feel like downloading the mod...


    Here you go
    I took it from my config folder
    https://www.dropbox.com/s/m7v2h4vxf8owsi5/Mekanism.cfg
    Posted in: Java Edition Support
  • 0

    posted a message on Mods conflicting ;c
    nobody? :<
    Posted in: Java Edition Support
  • 0

    posted a message on Mods conflicting ;c
    I am making a custom mod pack in the technic launcher for me and my friends to use
    But i am having problems with this :l

    The mods i have:

    ForgeModLoader
    AluminiumCraft MC1.4.7
    BlastCraft v0.6.1.25 MC1.4.7
    Dehydration Mod MC1.2.3
    GoreMod v1.0.3 FML MC1.4.6
    Mekanism v5.3.1
    ElectricExpansion MC1.4.7
    MinecraftRealism v4 MC1.4.7
    Still-Hungry-Mod MC1.4.7

    I suspect that the mods that are conflicting are AluminiumCraft mod and
    Mekanism because they have the same blocks called crusher
    and the error log said that there is a duplicate id:Crusher
    I tried to edit the BlockCrusher.class in the AluminiumCraft folder
    but i couldnt read anything in it
    So then i tried opening it with eclipse but it gave me a
    source not found no source file attached bla bla bla

    Here is the complete error log:
    http://pastebin.com/Sv0GXR05

    And here is the error:



    2013-02-28 02:11:58 [SEVERE] [ForgeModLoader] Fatal errors were detected during the transition from INITIALIZATION to POSTINITIALIZATION. Loading cannot continue
    2013-02-28 02:11:58 [SEVERE] [ForgeModLoader]
    mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
    FML [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    Forge [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    CodeChickenCore [CodeChicken Core] (coremods) Unloaded->Constructed->Pre-initialized->Initialized
    MrArcane111_Aluminum [AluminumCraft] (AluminumCraft 1.4.7 Update.zip) Unloaded->Constructed->Pre-initialized->Initialized
    BlastCraft [BlastCraft] (BlastCraft_v0.6.1.25.jar) Unloaded->Constructed->Pre-initialized->Initialized
    ElectricExpansion [Electric Expansion] (ElectricExpansion_v1.4.7.jar) Unloaded->Constructed->Pre-initialized->Initialized
    GoreMod [GoreMod] (GoreMod-fml-1.4.6-v1.0.3.zip) Unloaded->Constructed->Pre-initialized->Initialized
    Mekanism [Mekanism] (Mekanism-v5.3.1.jar) Unloaded->Constructed->Pre-initialized->Errored
    mod_Entities [mod_Entities] (MinecraftRealims_V4_(1.4.7).zip) Unloaded->Constructed->Pre-initialized->Initialized
    mod_MinecraftRealism [mod_MinecraftRealism] (MinecraftRealims_V4_(1.4.7).zip) Unloaded->Constructed->Pre-initialized->Initialized
    stillhungry [Still Hungry] (Still-Hungry-Mod-1.4.7.zip) Unloaded->Constructed->Pre-initialized->Initialized
    2013-02-28 02:11:58 [SEVERE] [ForgeModLoader] The following problems were captured during this phase
    2013-02-28 02:11:58 [SEVERE] [ForgeModLoader] Caught exception from Mekanism
    java.lang.IllegalArgumentException: Duplicate id: Crusher
    at any.a(TileEntity.java:55)
    at cpw.mods.fml.common.registry.GameRegistry.registerTileEntity(GameRegistry.java:273)
    at mekanism.common.Mekanism.addEntities(Mekanism.java:868)
    at mekanism.common.Mekanism.init(Mekanism.java:949)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485)
    at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
    at net.minecraft.client.Minecraft.a(Minecraft.java:456)
    at asq.a(SourceFile:56)
    at net.minecraft.client.Minecraft.run(Minecraft.java:744)
    at java.lang.Thread.run(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] java.lang.IllegalArgumentException: Duplicate id: Crusher
    2013-02-28 02:11:58 [INFO] [STDERR] at any.a(TileEntity.java:55)
    2013-02-28 02:11:58 [INFO] [STDERR] at cpw.mods.fml.common.registry.GameRegistry.registerTileEntity(GameRegistry.java:273)
    2013-02-28 02:11:58 [INFO] [STDERR] at mekanism.common.Mekanism.addEntities(Mekanism.java:868)
    2013-02-28 02:11:58 [INFO] [STDERR] at mekanism.common.Mekanism.init(Mekanism.java:949)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:485)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    2013-02-28 02:11:58 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:69)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300)
    2013-02-28 02:11:58 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:268)
    2013-02-28 02:11:58 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83)
    2013-02-28 02:11:58 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:657)
    2013-02-28 02:11:58 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:207)
    2013-02-28 02:11:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.a(Minecraft.java:456)
    2013-02-28 02:11:58 [INFO] [STDERR] at asq.a(SourceFile:56)
    2013-02-28 02:11:58 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:744)
    2013-02-28 02:11:58 [INFO] [STDERR] at java.lang.Thread.run(Unknown Source)
    2013-02-28 02:11:59 [INFO] [STDOUT] [Mekanism] Successfully retrieved data from server.
    2013-02-28 02:12:19 [INFO] [STDERR] [Mekanism] Could not connect to server, error was 'Connection refused: connect.'
    2013-02-28 02:12:26 [INFO] [STDOUT] Exiting Launcher

    Posted in: Java Edition Support
  • To post a comment, please .