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))
{
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
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
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 :>
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 ;+;
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
0
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;
}
}
}
}
0
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.
0
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;
}
}
}
0
config file to change it.
Any ideas where it could be?
0
i noticed this
hmm...
Original Picture
http://imgur.com/Wi1Q8mO
0
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?
0
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
0
Okay everything is working now thanks for the help everyone :>
0
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.
0
"Zombies can spawn more zombies"
Jeb yudodis and make the game more harder
0
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 packNope i'll just use TMI til this gets fixed ;+;0
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?
0
Here you go
I took it from my config folder
https://www.dropbox.com/s/m7v2h4vxf8owsi5/Mekanism.cfg
0
0
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