• 0

    posted a message on hasItemStack

    I can't figure out how to use hasItemStack inside of the code of an item, I've tried using "this". Keep in mind I'm using an event.

    Posted in: Modification Development
  • 0

    posted a message on Break Event

    I've been trying to use break event in any possible way I can, but it doesn't seem to want to work.

    package Drakus.MagnetMod;
    
    import com.google.common.eventbus.Subscribe;
    
    import cpw.mods.fml.common.Mod.EventHandler;
    import cpw.mods.fml.common.Mod.Instance;
    import cpw.mods.fml.common.eventhandler.EventPriority;
    import cpw.mods.fml.common.eventhandler.SubscribeEvent;
    import net.minecraft.entity.player.EntityPlayer;
    import net.minecraft.item.Item;
    import net.minecraft.item.ItemStack;
    import net.minecraft.world.World;
    import net.minecraftforge.event.world.BlockEvent.BreakEvent;
    
    public class ItemMagnet extends Item {
    	@SubscribeEvent
    	public void breakEvent(BreakEvent event){
    		System.out.println("testing");
    	}
    }
    
    Posted in: Modification Development
  • 0

    posted a message on BlockEvent

    So I'm not doing anything complicated right now, but my code isn't printing anything...

    public class ItemPick extends Item {
    	@SubscribeEvent
    		public void BreakBlock(BlockEvent.HarvestDropsEvent even) {
    			System.out.println("Testinglakjsdflkasjdfk");
    		}
    }
    
    This is my code which is an item the player can hold. currently I'm just trying to see if I can call an event when a block brakes in the world right now.
    Posted in: Modification Development
  • 0

    posted a message on Crash when trying to go into game

    Bump

    Posted in: Java Edition Support
  • 0

    posted a message on Crash when trying to go into game

    http://paste.atlauncher.com/view/c108cb9b


    When I try to go into a game it crashes.

    Posted in: Java Edition Support
  • To post a comment, please or register a new account.