Jump to content

Recommended Posts

Posted

So, my son wanted to make mods and to be honest, i am interested as well. I have setup Eclipse with Forge and watched some tutorials and I am trying to make a basic block appear in the Creative Tab. When I compile and run Minecraft I don't see a block. I will paste my code below but I was thinking that I need to pass an ID to the block. Eclipse doesn't find a method to pass those parameters. Or perhaps I need a texture or image file? Not sure...any help would be appreciated.

 

Thanks

 

package com.Jackmods.jack1mod;

 

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;

 

 

  public class jack1mod {

    @Mod.EventHandler

    public void preInit(FMLPreInitializationEvent event)

    {

 

    }

    @Mod.EventHandler

    public void Init(FMLInitializationEvent event)

    {

     

      modItems.init();

 

      modBlocks.init();

     

    }

    @Mod.EventHandler

    public void postInit(FMLPostInitializationEvent event)

    {

     

    }

}

 

class JackBlock extends Block {

 

  protected JackBlock(int i, Material materialIn) {

 

    super(i, materialIn);

    // TODO Auto-generated constructor stub

    setCreativeTab(CreativeTabs.tabMisc);

  }

}

 

public class modBlocks {

 

 

  public static Block JackBlock = new JackBlock(500, Material.rock).setUnlocalizedName("JackBlock");

  public static void init(){

 

 

  RegisterHelper.registerBlock(JackBlock);

  }

}

 

public class RegisterHelper {

 

  public static void registerBlock(Block block)

  {

      GameRegistry.registerBlock(block, block.getUnlocalizedName());

  }

 

  public static void registerItem(Item item){

      GameRegistry.registerItem(item, item.getUnlocalizedName());

  }

 

}

Posted

public static Block JackBlock = new JackBlock(500, Material.rock).setUnlocalizedName("JackBlock");

 

From this I can tell you're on 1.6.4, Please do NOT start modding for 1.6.4, update to 1.7.10 or more preferably 1.8. There's tutorials for both versions, if you can't get it to work after updating, post again and we'll try to help, most people here do not support 1.6.4.

Posted

Thanks for the quick reply. I downloaded the following zip: forge-1.8-11.14.1.1337-src from the promotions section of source forge. Is this not 1.8?

 

Thanks again

Posted

That would be 1.8, So be sure you set up your workspace right and you are following a 1.8 tutorial. Eclipse should be showing you an error at this part because IDs were removed in 1.7

super(i, materialIn);

 

Also you are missing the @Mod annotation on the main mod class file

Example:

@Mod(modid = Reference.MOD_ID, name = Reference.MOD_NAME, version = Reference.VERSION) public class RandomUtilities {

Posted

So, I found a tutorial for 1.8 and followed it and it worked. I made an item called test_item. I ran it, as shown in the tutorial and it worked. Yay!. Now, I wanted to change the code to call test_item, jack_cat instead. So, I changed all references from test_item to jack_cat. I even changed the version from 1.0 to 1.1 in my reference file. When I run minecraft it doesn't recognize any of the changes. Is there some kind of refresh I have to do?

 

Thanks again. Code below.

 

package com.Jacksmod.init;

 

import net.minecraft.client.Minecraft;

import net.minecraft.client.resources.model.ModelResourceLocation;

import net.minecraft.item.Item;

import net.minecraftforge.fml.common.registry.GameRegistry;

 

import com.Jacksmod.Reference;

 

public class JackItems {

 

  public static Item jack_cat;

 

  public static void init(){

    jack_cat = new Item().setUnlocalizedName("jack_cat");

  }

 

  public static void register(){

    GameRegistry.registerItem(jack_cat, jack_cat.getUnlocalizedName().substring(5));

 

  }

 

  public static void registerRenders()

  {

    registerRender(jack_cat);

  }

 

  public static void registerRender(Item item)

  {

    Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID+":"+item.getUnlocalizedName().substring(5),"inventory"));

  }

}

 

 

package com.Jacksmod.proxy;

 

import com.Jacksmod.init.JackItems;

 

public class clientproxy extends commonproxy {

 

  @Override

  public void registerRenders(){

    JackItems.registerRenders();

  }

}

 

package com.Jacksmod.proxy;

 

public class commonproxy {

  public void registerRenders(){

   

  }

}

package com.Jacksmod;

 

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;

 

import com.Jacksmod.init.JackItems;

import com.Jacksmod.proxy.commonproxy;

 

@Mod(modid = Reference.MOD_ID,name = Reference.MOD_NAME, version = Reference.VERSION)

public class mainmod {

 

  @SidedProxy(clientSide = Reference.CLIENT_PROXY_CLASS,serverSide = Reference.SERVER_PROXY_CLASS)

  public static commonproxy proxy;

 

 

  @EventHandler

  public void preInit(FMLPreInitializationEvent event){

   

    JackItems.init();

    JackItems.register();

  }

  @EventHandler

  public void Init(FMLInitializationEvent event){

   

    proxy.registerRenders();

  }

  @EventHandler

  public void postInit(FMLPostInitializationEvent event){

 

  }

}

 

package com.Jacksmod;

 

public class Reference {

  public static final String MOD_ID = "Jack";

  public static final String MOD_NAME = "JackMod";

  public static final String VERSION = "1.1";

 

  public static final String CLIENT_PROXY_CLASS = "com.Jacksmod.proxy.clientproxy";

  public static final String SERVER_PROXY_CLASS = "com.Jacksmod.proxy.commonproxy";

}

 

Posted

when you want to rename a class in eclipse do the following

right click the class in the package explorer

from the dropdown select refactor then rename

 

 

items are remembered in a list by their name, if you change this the map will no longer know what the old items/ blocks where as they are no longer registered

these old items will be removed from the map

to prevent this, leave the old items in the mod, but remove them from the creative tabs and recipes

create the new items as new items

I also noticed you are registering the item by the first 5 letters of its unlocalized name, this isnt a good idea as you may end up with 2 items being registered with the same name

 

 

Posted
  On 3/17/2015 at 9:41 AM, Ewe Loon said:

to prevent this, leave the old items in the mod, but remove them from the creative tabs and recipes

create the new items as new items

 

No, remove the old items, this mod isn't even released yet, it won't matter, there is no point having junk coffee like that.

Don't make mods if you don't know Java.

Check out my website: http://shadowfacts.net

Developer of many mods

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • We know you're always on the lookout for the best deals, and that's precisely why we're highlighting the "ALB496107" Temu coupon code today. This code is specially created to give maximum benefits to people in European nations, such as Germany, France, Italy, Switzerland, and many more, ensuring you can enjoy premium products at unbeatable prices. Prepare yourselves for an unparalleled shopping spree because this article will guide you through unlocking massive savings with both the Temu coupon 100€ off and the Temu 100 off coupon code. Get ready to transform your online shopping experience with incredible discounts and exciting perks. What Is The Coupon Code For Temu 100€ Off? We are delighted to inform you that both new and existing customers can get amazing benefits if they use our 100€ coupon code on the Temu app and website. With the Temu coupon 100€ off and 100€ off Temu coupon, you're not just getting a discount; you're unlocking a world of savings and incredible deals tailored just for you. Here’s what our special code, ALB496107, brings to the table: ALB496107: Enjoy a flat 100€ off your entire purchase, giving you instant savings at checkout. ALB496107: Access a fantastic 100€ coupon pack, allowing you to enjoy multiple discounts across various orders. ALB496107: New customers receive a generous 100€ flat discount, making your first Temu experience truly special. ALB496107: Existing users are also rewarded with an extra 100€ promo code, ensuring your loyalty is celebrated with significant savings. ALB496107: This 100€ coupon is perfectly tailored for European users, guaranteeing maximum value in your region. Temu Coupon Code 100€ Off For New Users In 2025 New users are in for an absolute treat! If you're just joining the Temu family, you can get the highest benefits if you use our coupon code on the Temu app. With the Temu coupon 100€ off and Temu coupon code 100€ off, your first shopping experience becomes a celebration of savings and exciting discoveries. Here’s how ALB496107 will revolutionize your first Temu purchase: ALB496107: A flat 100€ discount for new users when making your first purchase, providing substantial savings right from the start. ALB496107: Receive a 100€ coupon bundle designed specifically for new customers, giving you ongoing discounts as you continue to explore Temu's diverse offerings. ALB496107: Access up to 100€ worth of coupons for multiple uses, ensuring your savings continue long after your first order. ALB496107: Enjoy free shipping all over European Nations, such as Germany, France, Italy, Switzerland, etc., making your shopping even more convenient and cost-effective. ALB496107: Avail an extra 30% off on any purchase for first-time users, stacking up your savings for an truly unbeatable deal. How To Redeem The Temu coupon 100€ off For New Customers? Redeeming your Temu 100€ coupon and making the most of your Temu 100€ off coupon code for new users is incredibly straightforward. We want to ensure you experience seamless savings from the moment you decide to shop with Temu. Just follow these simple steps to unlock your discount: Download the Temu app or visit their official website. If you haven't already, install the Temu app on your mobile device for the best shopping experience, or head to their website on your computer. Sign up as a new customer. Create a new account using your email address or phone number. This is essential to qualify for the new user benefits. Browse your favorite items and add them to your cart. Explore Temu’s vast selection of products, from fashion to electronics, home goods, and more. Fill your cart with everything you desire! Proceed to checkout. Once you’re satisfied with your selections, click on the shopping cart icon and proceed to the checkout page. Locate the coupon/promo code field. On the checkout page, you will find a dedicated field for "Apply Coupon," "Promo Code," or "Coupon Code." Carefully enter our exclusive code: ALB496107. Double-check to ensure you've entered the code correctly to avoid any issues. Click "Apply." After entering the code, click the "Apply" button. You should instantly see the discount reflected in your order total. Complete your purchase. Finalize your payment details and complete your order. Congratulations, you've just enjoyed significant savings! Temu Coupon 100€ Off For Existing Customers For our valued existing customers, we haven't forgotten about you! You can also get fantastic benefits if you continue to use our coupon code on the Temu app. We believe in rewarding loyalty, and with the Temu 100€ coupon codes for existing users and Temu coupon 100€ off for existing customers free shipping, you’ll find even more reasons to love shopping with Temu. Here’s how ALB496107 continues to deliver value for you: ALB496107: Get a 100€ extra discount for existing Temu users, providing a significant boost to your savings. ALB496107: Receive a 100€ coupon bundle for multiple purchases, stretching your savings even further across various items. ALB496107: Enjoy a free gift with express shipping all over Europe, a delightful bonus for your continued patronage. ALB496107: Stack up to 70% off on top of existing discounts, maximizing your savings on already great deals. ALB496107: Benefit from free shipping in the European Nations, such as Germany, France, Italy, Spain, Switzerland, etc., making every order more convenient and budget-friendly. How To Use The Temu Coupon Code 100€ Off For Existing Customers? Using the Temu coupon code 100€ off and the Temu coupon 100€ off code as a returning user is just as simple and rewarding. We’ve streamlined the process to ensure you can continue to enjoy your discounts without any hassle. Just follow these steps: Log in to your existing Temu account. Open the Temu app or visit the website and sign in with your credentials. Choose your desired items and add them to your cart. Explore the latest arrivals or revisit your favorites. Add everything you need to your shopping cart. Navigate to the checkout page. Once you're ready to complete your purchase, proceed to the checkout. Enter the promo code ALB496107. Look for the designated field for entering a promo code or coupon. This is usually found before you enter your payment details. Carefully type in our exclusive coupon code: ALB496107. Click "Apply." Hit the "Apply" button, and you'll see the 100€ discount instantly applied to your order total, along with any other applicable benefits. Complete your purchase. Finalize your payment, and enjoy your continued savings with Temu! Latest Temu Coupon 100€ Off First Order Make your very first order on Temu truly unforgettable by leveraging our exceptional coupon code. Customers can get the highest benefits if they use our coupon code during the first order. With the Temu coupon code 100€ off first order, Temu coupon code first order, and Temu coupon code 100€ off first time user, you're setting yourself up for incredible savings from the get-go. Here’s how ALB496107 enhances your initial Temu shopping experience: ALB496107: A flat 100€ discount for the first order, providing substantial savings on your inaugural purchase. ALB496107: A 100€ Temu coupon code specifically for the first order, designed to maximize your initial savings and welcome you warmly. ALB496107: Access up to 100€ worth of coupons for multiple uses, ensuring your savings journey with Temu has a strong start and continues beyond your first purchase. ALB496107: Benefit from free shipping to European countries, making your initial delivery completely free and convenient. ALB496107: An extra 30% off on any purchase for your first order in Germany, France, Italy, Switzerland, Spain, etc., giving you an unparalleled discount right from the start. How To Find The Temu Coupon Code 100€ Off? Finding the Temu coupon 100€ off and avoiding the endless search for "Temu coupon 100€ off Reddit" is simpler than you think! We want to ensure you always have access to verified and working coupon codes. Here's how you can easily find the latest and greatest Temu offers, including our special ALB496107 code: Firstly, the most reliable way to get verified and tested coupons is by signing up for the Temu newsletter. Temu frequently sends out exclusive deals, personalized offers, and early access to sales directly to your inbox when you're subscribed. This ensures you're always in the loop for the best discounts available. Secondly, we highly recommend visiting Temu’s official social media pages. Platforms like Facebook, Instagram, and Twitter are often where Temu announces flash sales, limited-time promotions, and special coupon codes. Following their official accounts keeps you updated on exciting opportunities to save. Lastly, and perhaps most importantly, you can always find the latest and working Temu coupon codes, including our exceptional ALB496107, by visiting any trusted coupon site like ours. We diligently update our listings with verified codes to ensure you get genuine savings every time you shop. We do the hard work of finding and testing codes so you don't have to! Is Temu 100€ Off Coupon Legit? You might be asking, "Is the Temu 100€ Off Coupon Legit?" or "Is the Temu 100 off coupon legit?" We can confidently assure you that our Temu coupon code ALB496107 is absolutely legitimate and ready for you to use! We understand the importance of trust when it comes to online discounts, and we pride ourselves on providing only verified and tested codes. You can safely and confidently use our Temu coupon code ALB496107 to get 100€ off on your first order and then on recurring orders. We want to emphasize that our code is not only legit but also regularly tested and verified by our team to ensure it delivers the promised savings. We are committed to transparency and reliability, so you can shop with complete peace of mind. Furthermore, we're excited to confirm that our Temu coupon code ALB496107 is valid all over Europe. Whether you're in Germany, France, Italy, Switzerland, Spain, or any other European nation, this code will work for you. And here’s another fantastic piece of news: our code doesn’t have any expiration date, meaning you can use it anytime you’re ready to shop and save! How Does Temu 100€ Off Coupon Work? The Temu coupon code 100€ off first-time user and Temu coupon codes 100 off work by providing you with instant savings at checkout. When you apply the coupon code during your purchase, the total amount is instantly reduced by 100€ or an equivalent bundle amount, depending on your user status and the specific offer triggered. Essentially, when you input ALB496107 into the designated promo code field during the checkout process on the Temu app or website, Temu's system automatically recognizes the code. It then applies the applicable discount based on whether you are a new or existing customer. For new users, this typically translates into a flat 100€ reduction on their first order, often accompanied by a coupon bundle for future purchases. Existing users might receive a direct 100€ discount or a substantial coupon pack for multiple transactions. The beauty of this system is its simplicity and direct impact on your final price. It's designed to be a seamless experience, requiring nothing more than entering the code to unlock significant savings, making your shopping experience more affordable and enjoyable. How To Earn Temu 100€ Coupons As A New Customer? To earn the Temu coupon code 100€ off and the 100 off Temu coupon code as a new customer, the process is incredibly straightforward and rewarding. You simply need to sign up for a new account on the Temu app or website, and our exclusive code ALB496107 will pave the way for your incredible savings. Upon successfully registering as a new user, you become eligible for a host of introductory benefits. When you proceed to checkout for your very first purchase, you'll be prompted to enter a coupon or promo code. This is where you input ALB496107. Once applied, this code instantly unlocks a 100€ discount on your initial order. Furthermore, this also qualifies you for a generous 100€ coupon bundle, which can be utilized for subsequent purchases, extending your savings far beyond your first transaction. Temu aims to welcome new customers with open arms and substantial discounts, making your entry into their shopping world as delightful and economical as possible. What Are The Advantages Of Using Temu Coupon 100€ Off? The advantages of using the Temu coupon code 100 off and the Temu coupon code 100€ off are truly plentiful, making your shopping experience on Temu exceptionally rewarding. We believe in providing you with maximum value, and this coupon code delivers on that promise in numerous ways. Here are all the fantastic benefits you can enjoy: A 100€ discount on your first order, providing an immediate and substantial saving. A 100€ coupon bundle for multiple uses, allowing you to save across various purchases over time. A 70% discount on popular items, enabling you to grab hot products at an even lower price. An extra 30% off for existing Temu Europe customers, a special thank you for your loyalty. Up to 90% off in selected items, offering incredible deals on clearance and promotional products. A free gift for new European users, adding a delightful surprise to your first order. Free delivery all over Europe, eliminating shipping costs and making your purchases even more affordable. Temu 100€ Discount Code And Free Gift For New And Existing Customers We are thrilled to highlight that there are multiple benefits to using our Temu coupon code, whether you are a brand new shopper or a loyal existing customer. With the Temu 100€ off coupon code and 100€ off Temu coupon code, you’re not just saving money, you’re unlocking a treasure trove of perks designed to enhance your shopping experience. Our special code, ALB496107, ensures that everyone gets to enjoy fantastic deals: ALB496107: A 100€ discount for the first order, making your initial Temu purchase unbelievably affordable. ALB496107: An extra 30% off on any item, giving you an even deeper discount on your chosen products. ALB496107: A free gift for new Temu customers, a delightful welcome gesture to kickstart your shopping journey. ALB496107: Up to 70% discount on any item on the Temu app, providing massive savings on a wide range of products. ALB496107: A free gift with free shipping in the European Nations, such as Germany, France, Italy, Switzerland, etc., combining convenience with extra value. Pros And Cons Of Using Temu Coupon Code 100€ Off This Month Utilizing the Temu coupon 100€ off code and the Temu 100 off coupon this month comes with a host of exciting advantages, alongside a couple of minor considerations. We want to provide you with a balanced view so you can make the most informed decision for your shopping needs. Pros: Instant 100€ savings applied directly to your purchase. Valid for both new and existing customers, ensuring everyone can benefit. Includes a generous 100€ coupon bundle for future multiple uses. Offers additional percentage discounts (e.g., 30% off) for new buyers. Provides free shipping across a wide range of European countries, adding to your overall savings. Cons: The discount might be a "coupon pack" that requires multiple smaller purchases to fully utilize the 100€ value. Some highly popular or already heavily discounted items might have specific exclusions from the additional 30% off. Terms And Conditions Of Using The Temu Coupon 100€ Off In 2025 Understanding the terms and conditions of using the Temu coupon code 100€ off free shipping and latest Temu coupon code 100€ off ensures a smooth and rewarding shopping experience. We've made these terms as simple as possible so you can enjoy your savings without any hidden surprises. Here are the key points to remember: Our coupon code, ALB496107, doesn’t have any expiration date, and readers can use it anytime they want throughout 2025 and beyond. The coupon code is valid for both new and existing users, ensuring everyone can benefit from these amazing discounts. It is applicable to users in European Nations, such as Germany, France, Italy, Switzerland, Spain, and many other countries across Europe. There are no minimum purchase requirements for using our Temu coupon code ALB496107, making it easy to apply to any order, big or small. While our code offers substantial savings, it cannot always be combined with other promotional coupons or specific flash sales, so always check for the best combination of discounts. Final Note: Use The Latest Temu Coupon Code 100€ Off In conclusion, seizing the opportunity to use the Temu coupon code 100€ off is an absolute must for anyone looking to maximize their savings on the Temu platform. We are committed to helping you make the most of your online shopping. Don't miss out on these incredible benefits that the Temu coupon 100€ off provides, whether you're a first-time shopper or a loyal customer. Happy shopping, and enjoy your fantastic savings! FAQs Of Temu 100€ Off Coupon Is ALB496107 the best Temu coupon code for 100€ off? Yes, ALB496107 is currently the best working coupon offering a flat 100€ off across Europe, alongside various other fantastic benefits for both new and existing users.  Can existing users use the Temu 100€ coupon? Absolutely! Our ALB496107 code is valid for both new and returning users, offering an extra 100€ discount and benefits like a coupon bundle for multiple purchases and free shipping.  Does the Temu coupon code expire? No, our specific coupon code, ALB496107, does not have an expiration date. You can use it confidently anytime you wish to shop on Temu. How many times can I use the Temu 100€ off coupon? While the flat 100€ discount typically applies once per user type (new/existing), the code often unlocks a 100€ coupon bundle that can be used across multiple subsequent orders, maximizing your long-term savings. Can I combine the Temu 100€ off coupon with other discounts? Generally, our 100€ off coupon provides significant standalone savings. While it may not always stack with other specific promotional coupons, it often works on top of existing product discounts on Temu.
    • Where did you get the schematic? Source/Link? And do use an own modpack or a pre-configured from curseforge? If yes, which one On a later time, I can make some tests on my own - but I need the schematic and the modpack name
    • man i dont undderstand what you are trying to say. i put the schematic in the schamatic folder and i used the stick from the forgematica mod and i used the loader and itr just crashed
  • Topics

×
×
  • Create New...

Important Information

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