Jump to content

Recommended Posts

Posted

hey guys, im having trouble with a forge event, the event doesnt seem to be getting called at all, ill post any relevant code if needed

 

 package com.MCR.MinecraftReloaded.Event;

import net.minecraft.entity.passive.EntityCow;
import net.minecraft.init.Items;
import net.minecraftforge.event.entity.living.LivingDeathEvent;

import com.google.common.eventbus.Subscribe;

public class DropsEvent {

@Subscribe
public void LivingDropsEvent(LivingDeathEvent event){
System.out.println("eventdrops working");

             if (event.entityLiving instanceof EntityCow) {
                     event.entityLiving.dropItem(Items.bone, 3);
                }
          }
}

 

its being registered like so in forge preinit like my other events

        MinecraftForge.EVENT_BUS.register(new DropsEvent());

 

thanks in advance

 

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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