• 0

    posted a message on Control Wheel Mod *Idea*

    This is actually a very good idea, looking into it...

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on How to remove drops from animals/blocks?
    If your using forge you can do this simply with events. First your going to need an event handler class lets call it tutEventHandler. Add this to your load/init method
     MinecraftForge.Event_Bus.register(new tutEventHandler())

    To fix the error make a class called tutEventHandler. Now we need to tell forge to subscribe to our event. We can do so by adding this method inside our EventHandler class
    @ForgeSubscribe onEntityLivingDeath(LivingDeathEvent event){ }
    now every time an entity dies we have full control over what happens next. Now we need to check if the entity is an instance of the entity u want to change the drop of. We can do so with this code
     if(entity.entityliving instanceof EntityCow){ }
    now we simply add a drop in the if statement
     event.entityLiving.dropItem(Item.appleGold.itemID, 1);
    your whole method should now look like this
    @ForgeSubscribe public onEntityLivingDeath(LivingDeathEvent event) { if(event.entityLiving instanceof EntityCow){
    event.entityLiving.dropItem(Item.appleGold.itemID, 1); }}
    Posted in: Modification Development
  • 1

    posted a message on Help for a n00b wanting to build a Modloader mod.
    I believe forge also modifies that class so thats probably why your mod isn't working. Your mod modifies base files so making it a modloader mod wont really change anything. The only thing i can think of is to install the forge source in mcp and then edit the file there. Pm me if you need additional help.
    Posted in: Modification Development
  • 0

    posted a message on Item Textures Wont load
    Try this tutorial.
    Posted in: Modification Development
  • 0

    posted a message on Texture error in MCP
    Can you post the code for your blocks?
    Posted in: Modification Development
  • 0

    posted a message on Help for a n00b wanting to build a Modloader mod.
    Is your mod a mod that installs in the mods folder or directly into the .jar file?
    Posted in: Modification Development
  • 1

    posted a message on Looking for well experienced Mod Coder to help on Mods
    So i'm being replaced. :(
    Posted in: Modification Development
  • 0

    posted a message on [Forge] Teleporting to a custom dimension using and item. [SOLVED!]
    Quote from creeperkilller

    in which class do i put your line of code

    The item class that you want to teleport you.
    Posted in: Modification Development
  • 0

    posted a message on Switching from Modloader to Forge (Help!)
    I suggest Wuppy21's tutorials. They helped me get started.
    Posted in: Modification Development
  • 1

    posted a message on [Forge Coding] Crash When Trying To Start Mc (Coding with Eclipse)
    Whats on line 234 of decormod.decormods.BlockCreation class and line 142 of decormod.decormods.load class.
    at decormod.decormods.BlockCreation(decormods.java:234)
    at decormod.decormods.load(decormods.java:142)
    Posted in: Modification Development
  • 0

    posted a message on [Forge] Need help detecting if player is wearing armor
    The onArmourtick method goes in the items class and you don't need the if statements. Do you have the latest forge?
    Posted in: Modification Development
  • 0

    posted a message on How do you make an item in your hot-bar render with a 3D model?
    Quote from Challos

    I'm sure there's a way to do it, I'm just wondering what I should do to make it (think iChun's portal gun render).

    Hey oHaiiChun(Creater of portal gun mod) just uploaded a cool video that explains this.
    Posted in: Modification Development
  • 1

    posted a message on Exp. decrease when in certain dimension
    you register a tick handler like this in the main @mod file

    TickRegistry.registerTickHandler(new TickHandlerClass(), Side.CLIENT);

    and then just do if statements like this

    if(player.dimension == Htw.dimension ){
    player.experienceTotal--;
    }

    You can use this to get the player variable
    EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;


    The whole file should then look like this

    public class TickHandler implements ITickHandler{
    private Minecraft mc;
    
    @Override
    public void tickStart(EnumSet<TickType> type, Object... tickData) {
    	
    }
    @Override
    	 public void tickEnd(EnumSet<TickType> type, Object... tickData)
    	 {
    		 if (type.equals(EnumSet.of(TickType.RENDER)))
    		 {
    			 onRenderTick();
    		 }
    		 else if (type.equals(EnumSet.of(TickType.WORLD))){
    		 onWorldTick();
    		 }
    		 else if (type.equals(EnumSet.of(TickType.CLIENT)))
    		 {
    			 GuiScreen guiscreen = Minecraft.getMinecraft().currentScreen;
    			 if (guiscreen != null)
    			 {
    				 onTickInGUI(guiscreen);
    			 } else {
    			 onTickInGame();
    			 }
    		 }
    	 }
    @Override
    public EnumSet<TickType> ticks() {
    
    return EnumSet.of(TickType.CLIENT, TickType.PLAYER, TickType.RENDER,TickType.WORLD);
    
    }
    @Override
    public String getLabel() {
    return "Tick Handler";
    }
    
    public void onRenderTick()
    	 {
    
    	 }
    public void onTickInGUI(GuiScreen guiscreen)
    	 {
    
    	 }
    	 public void onTickInGame()
    	 {
    
    	 EntityPlayer thePlayer = FMLClientHandler.instance().getClient().thePlayer;
    	 World theWorld = FMLClientHandler.instance().getClient().theWorld;
    	
    	 if(thePlayer.dimension == Htw.dimension){
    	 thePlayer.experienceTotal--;
    }
    	 }
    
    	 public void onWorldTick() {
    	 }
    }

    Posted in: Modification Development
  • 1

    posted a message on [Solved] New Mob Created, Won't Render Armor
    Quote from Restomak

    Thank you for the response, but I seem to have explained my issue incorrectly. The mobs do in fact have the armor programmed in, and correctly work as if they are equipped. The issue, however, is that none of the armor or weapons are rendered. All the player sees is the bandit model and skin, but as if with nothing equipped.

    You may need a render file.
    Posted in: Modification Development
  • 0

    posted a message on Custom skinned minecarts
    Quote from KareemOWheat

    I'm currently working on a mod to make custom minecarts (handcars, wood minecarts, etc but I'm running into trouble getting the entity to accept custom texture. For the first part of my mod I'm just doing a simple wood cart with modified stats and texture, the new cart just extends Minecraft's cart entity with a few modifications but there seems to be no easily accessible method to change the texture.

    Can someone point me in the right direction on how to change the texture?

    I think your gonna need a render file. Just copy the normal minecarts render file then change a few things. Are you using forge or modloader?
    Posted in: Modification Development
  • To post a comment, please .