Jump to content
  • Home
  • Files
  • Docs
  • Merch
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [Coding][Help] New to to forge and modding with 1.7.2
1.13 Update Notes for Mod Creators
Sign in to follow this  
Followers 1
Osky2918

[Coding][Help] New to to forge and modding with 1.7.2

By Osky2918, January 3, 2014 in ForgeGradle

  • Reply to this topic
  • Start new topic

Recommended Posts

Osky2918    1

Osky2918

Osky2918    1

  • Tree Puncher
  • Osky2918
  • Members
  • 1
  • 8 posts
Posted January 3, 2014

Hi forge!

 

I'm a bit new to modding in Minecraft but learning fast and have some basic skills with Java.

 

But my question is:

 

Are you supposed to use for example "modBlock.func_149739_a()" instead of "modBlock.getUnlocalizedName()"?

Is there a list somewhere that tells what I should use instead?

 

Or am I totally wrong and there is a new way to code with 1.7.2 and you can't use the old "functions"?

 

I had to check to check the old code to figure out where to find these function numbers, as I call them.

 

Keep up the good work on the code!

  • Quote

Share this post


Link to post
Share on other sites

Mazetar    271

Mazetar

Mazetar    271

  • World Shaper
  • Mazetar
  • Forge Modder
  • 271
  • 1343 posts
Posted January 3, 2014

The function numbers are what they are named when they get decompiled. As we do not have access to the unobfuscated minecraft source, we have to decompile and deobfuscate it ourselfs.

That is what the tools the MCP Team provides is doing. By using their system, we (the modders) can submit understandable "real" names to methods.

 

In every major minecraft update it is changed up a lot and therefore a lot of the names must be re-added or completely re-done as methods change etc.

Therefore when the new versions are just comming out, we (the modders) haven't had time to mess around to much with the new code and submit names, therefore a lot of things will have such names for the time being.

 

Also keep in mind that Forge is NOT out with a stable release for 1.7.2 it's still very much indev, and so is MCP.

Therefore I would NOT recommend starting to learn modding by starting for 1.7.2 now, I would either wait 1 month and spend the time learning more Java and computer science or whatever.

And come back once things are a bit more beginner friendly.

Either that or start for 1.6.4 and re-learn some of it when things are more settled for 1.7.2 :)

 

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

  • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 1
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • matt1999rd
      [1.14-newer] deprecated method onBlockActivated

      By matt1999rd · Posted 1 minute ago

      okay so how can I replace it if I cannot use blockState ? I saw on other post that people in 1.14 are using onBlockActivated too and nothing is suggest to replace it in the Block class unfortunately...
    • DragonITA
      [1.14.4] Why minecraft with mod dont want start?

      By DragonITA · Posted 2 minutes ago

      i try with delete the entier Config Folder but it still dont work and the Folder come back.
    • plugsmustard
      on/off button for custom furnace

      By plugsmustard · Posted 3 minutes ago

      what exactly is wrong with them. i was told to return a new packet?
    • JetCobblestone
      [1.14] moving item assignment to a separate function

      By JetCobblestone · Posted 5 minutes ago

      Hey everyone,   I'm trying to move my item assignment into a new class. I've stuck in into the same package as my main and called it ItemsLoader.   package jetcobblestone.firstmod; import jetcobblestone.firstmod.lists.itemList; import net.minecraft.item.Foods; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.RegistryEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import net.minecraftforge.fml.common.Mod; public class ItemsLoader { public static final String modid = "first_mod"; public static void Items() { @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { @SubscribeEvent public static void registerItems(final RegistryEvent.Register<Item> event) { event.getRegistry().registerAll ( itemList.hair_fibre = new Item(new Item.Properties().food(Foods.COOKIE).group(ItemGroup.FOOD).maxStackSize(1)).setRegistryName(location("hair_fibre")) ); } } private static ResourceLocation location(String name) { return new ResourceLocation(modid, name); } } }   This is the new class, however I'm running into an issue with the new Items function. It's giving me an error saying that it's expecting a volatile at the void token. Why is it trying to force me to do this? I don't want to send this to main memory? If I do replace void with volatile, it tells me there's a syntax error on the 'void' token, despite the fact there is no void. Any help would be much appreciated, thank you!
    • Draco18s
      on/off button for custom furnace

      By Draco18s · Posted 9 minutes ago

      Good. Now fix these two lines. https://github.com/drmdgg/marijuanacraft1.14.4/blob/a246b0229e61058b95672d7f4813b5c3deb28229/src/main/java/drmdgg/marijuanacraft/network/PacketButtonClicked.java#L28-L29
  • Topics

    • matt1999rd
      9
      [1.14-newer] deprecated method onBlockActivated

      By matt1999rd
      Started November 1

    • DragonITA
      1
      [1.14.4] Why minecraft with mod dont want start?

      By DragonITA
      Started 1 hour ago

    • plugsmustard
      43
      on/off button for custom furnace

      By plugsmustard
      Started Wednesday at 03:11 PM

    • JetCobblestone
      0
      [1.14] moving item assignment to a separate function

      By JetCobblestone
      Started 6 minutes ago

    • FaxeeK
      0
      Can't launch the game with forge

      By FaxeeK
      Started 43 minutes ago

  • Who's Online (See full list)

    • LexManos
    • FaxeeK
    • Vorquel
    • plugsmustard
    • DragonITA
    • matt1999rd
    • xVoidZx
    • Silverpool64
    • Lea9ue
    • Hendoor64
    • JetCobblestone
    • Atila1091
    • maycool12
    • vaartis
    • Draco18s
    • loordgek
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • ForgeGradle
  • [Coding][Help] New to to forge and modding with 1.7.2
  • Theme
  • Contact Us
  • Discord

Copyright © 2019 ForgeDevelopment LLC · Ads by Curse Powered by Invision Community