-
Posts
193 -
Joined
-
Last visited
Everything posted by Mitchellbrine
-
You don't need to see a video. Use a TileEntitySpecialRenderer with your model. Register the renderer in your client proxy. Make sure the block is not a full 1m block. Then... TA DA! You're finished!
-
Need more info. This isn't enough information to know EXACTLY what's wrong, but I would advise opening the GUI on the client.
-
Stop now! DO NOT EDIT BASE CLASSES! NO MATTER WHAT! If you need to, use ASM or Reflection, but never, and I repeat NEVER edit base classes!
-
Learn Java and look around at the code. It's so easy, I'm not going to post any code. Just look around at how Minecraft handles achievements. As for the page: public static AchievementPage page; @EventHandler public void preInit(FMLPreInitializationEvent event) { page = new AchievementPage("Achievement Page",new Achievement[]{/* All the achievements */}); AchievementPage.registerAchievementPage(page); } Hope this helped!
-
[1.6.4] @Mod not working(very nooby question)
Mitchellbrine replied to Xcox123's topic in Modder Support
It goes: @Mod(modid = "TinkersTweaks), name = "Tinkers Tweaks", version = "1.1.1") public class MainClass { @NetworkMod(clientSideRequired = true, serverSideRequired = false) /* Everything in the class */ } -
Great! That was honestly a guess but I thought, by the way add stat worked, it would work!
-
I would assume: player.addStat(/* Stat */, -100); The -100 is just to be safe. I'm doing this off the top of my head. Correct me if I'm wrong.
-
sigurd4, the path you specified is correct. Try running gradlew build --stacktrace and see if you DO get any errors. If not, I'd reinstall ForgeGradle.
-
For your item, do the id like this: itemlol = new Item(this.itemlolID - 256).setCreativeTab(EnhancedItems); Oh and do not use Init for your initializing your items. Use pre-init!
-
Simple, without one you see a block's name something like this, for instance: "tile.blockName.name" In the .lang file, you just need to put that equal to the correct value like: tile.blockName.name=My Real Block Name If all's well and it's in the right place, the name in game should be: "My Real Block Name" Hope that helped!
-
[1.6.4] Error with macerator when inserting ore
Mitchellbrine replied to ZippyBling's topic in Modder Support
Hey, um, I wouldn't make the arrays 0. Just saying. In the crash report, it says that there is an IndexOutOfBoundsException with zero involved. In all the instances, i is equal to 0 or slots[0] is involved. That's most likely your error. -
[Solved][1.7.2] Did the Item/Block Instances move somewhere else?
Mitchellbrine replied to Xaw.4's topic in Modder Support
As of 1.7, the only way to access the blocks/items is to use Blocks.java or Items.java. They are no longer contained in their Item and Block classes. -
Okay, first, you could have new pages for ages no rhyme intended, and second, check out http://www.minecraftforge.net/wiki/How_to_add_an_Achievement. It is literally on the tutorials page. Check there if you need to know something before asking everyone.
-
[SOLVED][1.7.2] Achievement page error when loading it
Mitchellbrine replied to MinecraftMart's topic in Modder Support
*Sigh* I thought it would pull a NPE. You do know post-init comes AFTER init right? You're rendering something that came after the achievement page was registered. To do it correctly, you should've done this: public static AchievementPage page1; public static Achievement Dirt; public static Achievement Cobble; @EventHandler public void load(FMLInitializationEvent event) { Dirt = new Achievement("achievement.getDirt", "getDirt", 0, 0, Blocks.dirt, (Achievement)null).registerStat(); this.addAchievementName("Dirt", "Dirt.. Really?"); this.addAchievementDesc("Dirt", "You just found a piece of dirt.."); Cobble = new Achievement("achievement.getCobble", "getCobble", 0, 1, Blocks.cobblestone, (Achievement)null).registerStat(); this.addAchievementName("Cobble", "Well atleast its stone"); this.addAchievementDesc("Dirt", "1st pieve of cobble! You must be so proud of yourself "); page1 = new AchievementPage("More Achievements!", Dirt, Cobble); } @EventHandler public void postInit(FMLPostInitializationEvent event) { System.out.println("Loaded!"); MinecraftForge.EVENT_BUS.register(new PickupHandler()); AchievementPage.registerAchievementPage(page1); } private void addAchievementName(String ach, String name) { LanguageRegistry.instance().addStringLocalization("achievement." + ach, "en_US", name); } private void addAchievementDesc(String ach, String desc) { LanguageRegistry.instance().addStringLocalization("achievement." + ach + ".desc", "en_US", desc); } Enjoy! -
[1.7.2] How to tell if a player has an achievement
Mitchellbrine replied to Mitchellbrine's topic in Modder Support
Thanks diesieben! That really helps! -
*Sigh* Please tell me you guys have made a mod in 1.7 or at least learned the new system. It's Items.class and Blocks.class instead of Item.class and Block.class In 1.6.4, use Item and Block, but for 1.7, it's Items and Blocks. Enjoy!
-
Now, in my mod, I need to tell if a player has an achievement. While I have distrust of NBT, I'll use it as last resort. I need to know if there's a way to see if a player has earned an achievement. Any help would be great! Thanks
-
Config File Question and Optimization suggestions
Mitchellbrine replied to bigbaddevil6's topic in Modder Support
Something is still null. Is there any more information in the crash? -
[1.7.2] What ever happened to the ICraftingHandler?
Mitchellbrine replied to Mitchellbrine's topic in Modder Support
Thank you so much Alias! Just got it to work! -
Config File Question and Optimization suggestions
Mitchellbrine replied to bigbaddevil6's topic in Modder Support
I'd use config.get instead of config.getBlock. It has the same parameters and you can just add it to the category CATEGORY_BLOCK in it. And I'd use your public static int titaniumOreID; because then it's static and can be used by other classes and methods. Oh and don't add int before "titaniumOreID" when you define it. That should work and have no syntax errors then. Hope that helped! -
[1.7.2] What ever happened to the ICraftingHandler?
Mitchellbrine replied to Mitchellbrine's topic in Modder Support
Okay, here are the classes. I would link you to my repository, but I'd have to add you to it on BitBucket (it's private while I'm updating). So here they are: Here's my MainMod class (Sorry it's so long, It's a big mod) And here's my class for the event: -
[1.7.2] What ever happened to the ICraftingHandler?
Mitchellbrine replied to Mitchellbrine's topic in Modder Support
Thanks, Alias, but I already got that part. It still doesn't work after I register it. -
[1.7.2] What ever happened to the ICraftingHandler?
Mitchellbrine replied to Mitchellbrine's topic in Modder Support
Um, diesieben, I'm having a bit of issues with the fact that the event is not working. I have it with a @SubscribeEvent, but it doesn't seem to even run the event. -
[1.7.2] What ever happened to the ICraftingHandler?
Mitchellbrine replied to Mitchellbrine's topic in Modder Support
Funny, when I remembered the crafting handlers, I had always wanted a way of cancelling them. Thanks diesieben07!