Everything posted by Scorpyon04
-
Client Side Events
Dont Worry THis isnt supported because im in 1.8
-
Need Help With Death Event
What debugger
-
Client Side Events
Im making a mod so when u kill a player it will spawn particles and i wont it to work on servers like hypixel but so far i cant get it working this is my code package scorpyon04.bloodeffect; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.MOD_NAME) public class BloodEffect { public static void preInit(FMLPreInitializationEvent event) { MinecraftForge.EVENT_BUS.register(new DeathEventHandler()); } public static void Init(FMLInitializationEvent event) { System.out.println("Blood Effect Init"); } public static void postInit(FMLPostInitializationEvent event) { } } And This is my event handler package scorpyon04.bloodeffect; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraftforge.event.entity.living.LivingDeathEvent; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; public class DeathEventHandler { @SubscribeEvent public void onLivingDeath(LivingDeathEvent event){ Entity e = event.entity; if (e instanceof EntityPlayer) { EntityPlayer killedplr = (EntityPlayer) e; if (event.source.getSourceOfDamage() instanceof EntityPlayer) { EntityPlayer plr = (EntityPlayer) event.source.getEntity(); plr.playSound("dig.stone", 1000.0f, 1.0f); } } } }
-
Need Help With Death Event
Yea but what do i have to do ??
-
Need Help With Death Event
So what do i need to do
-
Need Help With Death Event
Damn
-
Need Help With Death Event
Is there a way to make it on client side
-
Need Help With Death Event
I know but like i have mods like cps counter with display cps i wont a mod like that but it displays particles for the person using the mod not everyone on the server
-
Need Help With Death Event
im trying to make a mod that shows particles when you kill someone for hypixel and only the player with the mod can see it
-
Need Help With Death Event
its not my server
-
Need Help With Death Event
Wheres the log lol
-
Need Help With Death Event
ya but i have to build the jar so i cant see it in my ide
-
Need Help With Death Event
how can i see if its printing im testing this on a vanilla server
-
Need Help With Death Event
This Worked But the mod still isnt working
-
Need Help With Death Event
Still cant hear it
-
Need Help With Death Event
- Need Help With Death Event
Subscribe event is error and i cant import it btw im using 1.8.9 forge- Need Help With Death Event
Im trying to make a mod that plays a sound when a you kill a player. this is my code package scorpyon04.bloodeffect; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent; import net.minecraftforge.fml.common.event.FMLPostInitializationEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; @Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.MOD_NAME) public class BloodEffect { public static void preInit(FMLPreInitializationEvent event) { } public static void Init(FMLInitializationEvent event) { System.out.println("Blood Effect Init"); MinecraftForge.EVENT_BUS.register(new DeathEventHandler()); } public static void postInit(FMLPostInitializationEvent event) { } } and My DeathEventHandler package scorpyon04.bloodeffect; import net.minecraft.entity.Entity; import net.minecraft.entity.player.EntityPlayer; import net.minecraftforge.event.entity.living.LivingDeathEvent; public class DeathEventHandler { public void onLivingDeath(LivingDeathEvent event){ Entity e = event.entity; if (e instanceof EntityPlayer) { EntityPlayer killedplr = (EntityPlayer) e; if (event.source.getSourceOfDamage() instanceof EntityPlayer) { EntityPlayer plr = (EntityPlayer) event.source.getEntity(); plr.playSound("dig.stone", 1000.0f, 1.0f); } } } } when im in game nothing happens when i kill a player - Need Help With Death Event
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.