All users will need to merge their Minecraft Forum account with a new or existing Twitch account starting October 23rd. You can merge your accounts by clicking here. Have questions? Learn more here.
Dismiss
  • 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 [1.6.x]v1.1 *UPDATED* Flare Mod - Flareguns in Minecraft (Addition to fireworks)
    Meh i kinda gave up :P
    Feel free to use the textures and stuff
    and i kinda have some classes in there such as a camera when i was busy testing something
    The flare only gives night vision because i dont know how to make it emit a light source while thrown or if the player is holding it

    https://www.dropbox.com/s/8rez8xw70wmnqbw/src.zip
    Posted in: WIP Mods
  • 0

    posted a message on [1.6.x]v1.1 *UPDATED* Flare Mod - Flareguns in Minecraft (Addition to fireworks)
    Quote from Tupolev144

    Having screenshots for me? I m really interest how other modders did it.

    Currently all my flares do is give night vision and flaregun that shoots but does not show the effect
    Maybe i will try to release my own version once i don did do get the flaregun and flares working or something



    Posted in: WIP Mods
  • 0

    posted a message on [1.6.x]v1.1 *UPDATED* Flare Mod - Flareguns in Minecraft (Addition to fireworks)
    Oh darn.. I was working on a flares mod because there wasn't any.
    I guess you beat me to it
    Posted in: WIP Mods
  • 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
  • To post a comment, please or register a new account.