• 0

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    The main post has been updated to reflect changes to the website. Please take a look!

    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Minecraft: Adaptive Lifestyles

    It could be interesting if you made it so you had to unlock the different lifestyles after living as one for a while (since being able to fly right after spawn is a little op, imo). For example, you have to start as a more basic, "tier one" lifestyle like the terrestrial lifestyle, then you can upgrade to "tier two" (such as terrestrial-arboreal) after a certain time of play, then tier three (e.g. flying). Maybe have this as a config option, or something? idk. But great idea, I'm looking forward to seeing how it will turn out!

    Posted in: Requests / Ideas For Mods
  • 0

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    Your code looks fine (except that all classes should begin with a capital letter, but that's probably not what's causing this). The only thing I can think of is to make sure that your project is set up correctly, because right now, your beefpp class can't access the setUnlocalizedName() method from the Item class.

    Posted in: Mapping and Modding Tutorials
  • 1

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    I took a look at your entire class, and I didn't see anything wrong with it (except that Java class names should begin with a capital letter). If you could post all of your code (preferably on GitHub), that would be helpful.

    Posted in: Mapping and Modding Tutorials
  • 0

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    Is this still an active thing?



    It is, although I'm not planning on doing any more 1.12.2 tutorials because of the massive amount of changes coming in 1.13.



    I followed the tutorials to the "basic item" part, and it gives an error:


    It sounds like you didn't have your basic item class extend Item. Make sure to do that, and if that doesn't help, posting your code to Pastebin or Github would be appreciated.

    Posted in: Mapping and Modding Tutorials
  • 2

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    Ah, I forgot about I18n. Definitely better to do it that way.


    Also, I added a tutorial on exporting the mod for you! :D

    Posted in: Mapping and Modding Tutorials
  • 2

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    Sorry for the late reply; I've been fairly busy lately. It's good to hear that you're enjoying the tutorials!


    If you want to add a custom tooltip to your item, you can override the addInformation() method in your item class, like so:


    @Override
    public void addInformation(ItemStack stack, World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
    	tooltip.add("Damage: " + stack.getItemDamage());
    }

    Alternatively, you could subscribe to the ItemTooltipEvent and add to the tooltip there, using

    event.getToolTip().add("Tooltip here");

    to add to the tooltip (after checking if it is the right item). This is good for changing the tooltips of vanilla items, but is a bit more complicated, as it uses event handlers. I'll get my own tutorial on this out eventually, but until then, check out jabelar's tutorial on the subject. I'll also cover the jar exporting in my own tutorial soon.

    Posted in: Mapping and Modding Tutorials
  • 3

    posted a message on Cubicoder's 1.12.2 Minecraft Forge Modding Tutorials

    https://cubicoder.github.io/


    These tutorials are meant to help others learn how to mod Minecraft using Forge, as well as learn the concepts behind the code. If you don’t know any Java, please go learn some and come back! There are lots of great Java tutorials online, and trying to mod Minecraft without a good understanding of Java is very confusing.

    EDIT: Please note that the website has moved! I have decided to move to GitHub Pages as my host. All of the previous tutorials have been moved over.

    The purpose of this change is to make it easier for people other than myself to contribute to these tutorials, as all it takes is a simple pull request to contribute a tutorial. I am open to contributions at this time; however please make sure you know what you’re talking about and explain the concepts thoroughly. Also, please keep tutorials to Minecraft versions 1.12.2 and above. More contributing guidelines should be available on the GitHub repo soon.

    Posted in: Mapping and Modding Tutorials
  • To post a comment, please or register a new account.