Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

In the 1.6.4 code, I could change a block at a chunk coordinate like this:

 

world.setBlock(pt.posX, pt.posY, pt.posZ, blockID, 0, 3);

 

How do I do this in the 1.7.2 world?

 

Probably the same way.  Except that that function likely isn't deobfuscated yet.

 

You need to look for a function that returns void and takes 6 integers as an input.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

World.func_147449_b(Xcoord, Ycoord, Zcoord, Blocks.stone);

Like Draco18s said

[spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler][spoiler=Spoiler]LOL,Its nothing interesting here

[spoiler=Spoiler]And here too

[spoiler=Spoiler]But that image is pretty good

 

 

 

 

 

 

 

 

 

 

 

 

  • Author

I'm finding this really helpful:

 

bbdiff forge/mcp/src/minecraft/net/minecraft/world/World.java MinecraftForge/eclipse/Forge/src/main/java/net/minecraft/world/World.java

 

Diffing the older sources against the new ones. This tells me that

 

World.getBlockId() now maps to World.func_147439_a(), which now returns a Block.

 

What's the best way to contribute these findings to mcp?

  • 3 weeks later...

The function that seems to be the equivalent, with the metadata and flags variables seems to be:

 

world.func_147446_b(x, y, z, block, a, b);

 

...now if I could just figure out a way to get all the block names/references -- the list of static final Block variables having been replaced with something else is looking like a nightmare to me.

Developer of Doomlike Dungeons.

I'm finding this really helpful:

 

bbdiff forge/mcp/src/minecraft/net/minecraft/world/World.java MinecraftForge/eclipse/Forge/src/main/java/net/minecraft/world/World.java

 

Diffing the older sources against the new ones. This tells me that

 

World.getBlockId() now maps to World.func_147439_a(), which now returns a Block.

 

What's the best way to contribute these findings to mcp?

 

have you used the icq MCPbot before?  It's a bit clunky to do it manually but if you are any good at scripting that might be the easiest.

 

DieSieben has expressed some interest in writing a decent web interface for querying and making suggestions about mappings.  I'd recommend talking to him about it; you could try contacting the MCP guys but I haven't had much luck with that myself, they are very busy folks.

 

Ultimately I dream of a day when Mojang just release their source directly (with comments removed and variable names anonymised, of course).  Would save everyone a whole heap of trouble and speed up the release cycle a huge amount.  I'm sure the idea has been thought of, don't know why it hasn't happened since I can't see any disadvantage for Mojang.  Anything which helps the modding community will help extend the life of Minecraft, which is getting rather mature now.  Anyway that's for more influential folks than me to progress...

 

-TGG

 

 

  • Author

I did try to generate some queries with the mcp bot. The IRC experience has never been my cup of tea. I'd much prefer having a git repository somewhere that holds the mappings. If that's not practical, sigh.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.