• 0

    posted a message on Gui Help

    Hello,

    I have been trying to create a GUI that opens when an item is right clicked, but I couldn't figure out how to make a GUI that opens on right click.

    I'm not sure if I still need a tile-entity for a GUI that opens with an item or not, I was hoping someone could help me.


    Thanks!

    Posted in: Modification Development
  • 0

    posted a message on Mod Addon Help
    Quote from DrCyano»

    All you need is an API jar (that is one that has not been obfuscated) and add the dependencies property to the @Mod annotation. You can make an unobfuscated jar by running the command gradlew jar .


    I made a step-by-step tutorial for making add-on mods for my Power Advantage mod. You can look at the tutorial here ( http://www.minecraftforum.net/forums/mapping-and-modding/mapping-and-modding-tutorials/2432350-tutorial-making-a-steam-powered-machine-with-the ) and adapt it to your mod.


    Thanks so much DrCyano! That helped me a lot!

    Posted in: Modification Development
  • 0

    posted a message on Mod Addon Help

    Hello,

    I have recently updated one of my mods to 1.8.

    After I finished updating I decided I wanted to create addons for my mod.

    Do I need to add some code to make it able to handle addons.

    Thanks!

    p.s. This is my second post so I hope I didn't do anything wrong.

    Posted in: Modification Development
  • 0

    posted a message on Test Anomophier 2: Joe [200+ Downloads!]

    So cool! Haven't tried it yet but I will later. May I suggest that you put a link to this page on the first maps thread.

    Posted in: Maps
  • 0

    posted a message on 1.8 Vanilla Redstone Movie

    Wow! This is really cool! You should really make more movies to go with that one.

    Posted in: Redstone Creations
  • 0

    posted a message on Remove health and hunger bars??

    Well, you could do a resource pack where the hunger bars and health bars are transparent.

    They would still be there just invisible.

    Hope I helped.

    Posted in: Redstone Discussion and Mechanisms
  • 0

    posted a message on Check out this cool airship i made

    Well this is a great build anyways! You should make a pirate ship.

    Posted in: Creative Mode
  • 0

    posted a message on Check out this cool airship i made

    Really Cool! Is there a download link I missed?

    Or is it not downloadable.


    You should add a whole group of airships.

    Posted in: Creative Mode
  • 0

    posted a message on Help Texturing Items

    Thanks for reply Choonster,

    I think I may have found the problem, I put in my post that I had placed the model in assets/modid/models/item

    but I had instead placed it in

    assets/modid/textures/models/item


    Could that be the problem?


    This is the output from the console:


    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:bootsWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:chestplateBedrock#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:legsWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:chestplateWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:chestplateWoodPlank#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:swordBedrock#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:ruby#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:bootsBedrock#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:legsEmerald#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:helmetRedWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:legsBedrock#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:item#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:legsRedWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:BootsWoodPlank#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:helmetWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:helmetEmerald#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:bootsEmerald#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:helmetBedrock#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:chestplateRedWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:legsWoodPlank#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:bootsRedWool#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:helmetWoodPlank#inventory not found
    [12:47:51] [Client thread/ERROR] [FML]: Model definition for location as:chestplateEmerald#inventory not found

    Posted in: Modification Development
  • 0

    posted a message on Help Texturing Items

    I have recently been trying to update my 1.7.10 mod to 1.8 and ran into some problems.


    I have no errors or crashes but the textures won't show up in game.

    Here are my mod classes:


    Main Mod Class:


    package jakesnake523.ExtremeArmorAndSwordsMod ;

    import jakesnake523.ExtremeArmorAndSwordsMod.Proxy.CommonProxy;
    import jakesnake523.ExtremeArmorAndSwordsMod.renders.ItemRender;
    import net.minecraftforge.fml.common.Mod;
    import net.minecraftforge.fml.common.Mod.EventHandler;
    import net.minecraftforge.fml.common.SidedProxy;
    import net.minecraftforge.fml.common.event.FMLInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
    import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;

    @Mod(modid= "as", name = "Extreme Armor and Swords", version = "1.2.0")
    public class ExtremeArmorAndSwordsMod {

    @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS, serverSide = Reference.SERVER_PROXY_CLASS)
    public static CommonProxy proxy;




    //Materials


    @EventHandler
    public void preInit(FMLPreInitializationEvent event){
    //Item/Block init and registering
    //Config Handling
    //registering
    //RenderingRegistry.addNewArmourRendererPrefix("5");




    ItemManager.preInit();
    ArmorManager.preInit();

    ItemRender.init();
    ItemRender.register();



    }

    @EventHandler
    public void Init(FMLInitializationEvent event){
    //Proxy, TileEntity, entity, GUI and Packet Register
    //recipe

    proxy.registerRenders();

    ArmorManager.init();
    Recipies.init();
    ItemManager.init();


    }
    @EventHandler
    public void postInit(FMLPostInitializationEvent event){
    }


    }


    ItemManager Class:


    package jakesnake523.ExtremeArmorAndSwordsMod;

    import jakesnake523.ExtremeArmorAndSwordsMod.Items.ItemBedrockSword;
    import jakesnake523.ExtremeArmorAndSwordsMod.Items.ruby;
    import jakesnake523.ExtremeArmorAndSwordsMod.creativetabs.MoreArmorAndSwordsTab;
    import net.minecraft.creativetab.CreativeTabs;
    import net.minecraft.item.Item;
    import net.minecraftforge.common.util.EnumHelper;
    import net.minecraftforge.fml.common.registry.GameRegistry;

    //Created for 1.8+
    public class ItemManager {


    public static final Item.ToolMaterial BedrockToolMaterial = EnumHelper.addToolMaterial("BedrockToolMaterial", 1, 500, 10.0F, 80.0F, 50)


    //Items
    public static Item ruby;
    int rubyID = 600;

    public static Item swordBedrock;
    int swordBedrockID = 601;



    public static void preInit(){

    CreativeTabs cTab = new MoreArmorAndSwordsTab(1, "Tab");

    swordBedrock = new ItemBedrockSword( BedrockToolMaterial).setUnlocalizedName("swordBedrock").setCreativeTab(cTab);


    ruby = (new ruby().setUnlocalizedName("ruby")).setCreativeTab(cTab);


    }



    public static void init(){
    GameRegistry.registerItem(swordMelon, "swordMelon");

    GameRegistry.registerItem( swordBedrock, "swordBedrock");

    GameRegistry.registerItem( ruby, ruby.getUnlocalizedName().substring(5));
    }

    }


    CommonProxy Class:


    package jakesnake523.ExtremeArmorAndSwordsMod.Proxy;

    public class CommonProxy {
    public void registerRenders(){

    }
    }


    ClientProxy:


    package jakesnake523.ExtremeArmorAndSwordsMod.Proxy;

    import jakesnake523.ExtremeArmorAndSwordsMod.ArmorManager;
    import jakesnake523.ExtremeArmorAndSwordsMod.ItemManager;
    import jakesnake523.ExtremeArmorAndSwordsMod.renders.ItemRender;

    public class ClientProxy extends CommonProxy{
    @Override
    public void registerRenders(){
    ItemRender.registerRenders();
    }
    }


    ItemRender Class:


    package jakesnake523.ExtremeArmorAndSwordsMod.renders;



    import jakesnake523.ExtremeArmorAndSwordsMod.ExtremeArmorAndSwordsMod;
    import jakesnake523.ExtremeArmorAndSwordsMod.Reference;
    import net.minecraft.client.Minecraft;
    import net.minecraft.client.resources.model.ModelResourceLocation;
    import net.minecraft.item.Item;
    import net.minecraftforge.fml.common.registry.GameRegistry;

    public class ItemRender {
    public static String modid = "as";

    public static Item item;

    public static void init() {
    item = new Item().setUnlocalizedName("item");
    }

    public static void registerRenders() {
    registerRender(item);
    }

    public static void register(){
    GameRegistry.registerItem(item, item.getUnlocalizedName().substring(5));
    }

    public static void registerRender(Item itemobject){
    Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MODID + ":" + itemobject.getUnlocalizedName().substring(5)));
    }
    }


    ItemBedrockSword Class:


    package jakesnake523.ExtremeArmorAndSwordsMod.Items;

    import net.minecraft.item.ItemSword;

    public class ItemBedrockSword extends ItemSword {

    public ItemBedrockSword(ToolMaterial material) {
    super(material);

    }

    }


    I have also placed my texture named BedrockSword.png in assets/modid/textures/items

    and my model in assets/modid/models/item.


    My model file:


    {
    "parent":"builtin/generated",
    "textures": {
    "layer0":"as:items/BedrockSword"
    },
    "display": {
    "thirdperson": {
    "rotation": [ -90, 0, 0 ],
    "translation": [ 0, 1, -3 ],
    "scale": [ 0.55, 0.55, 0.55 ]
    },
    "firstperson": {
    "rotation": [ 0, -135, 25 ],
    "translation": [ 0, 4, 2 ],
    "scale": [ 1.7, 1.7, 1.7 ]
    }
    }
    }



    Thanks this is my first post so I'm sorry if I did something wrong.

    Posted in: Modification Development
  • 0

    posted a message on Creating blocks and items in 1.8 Forge

    Have you learned basic java yet? If not I would start by learning some java before modding.


    Good luck with you mod.

    Posted in: Modification Development
  • To post a comment, please or register a new account.