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.

[1.7.10] [SOLVED] Replace any class vanilla without the use of forge.

Featured Replies

Posted

I need the nether portal that does not light up with the BlockObsidian. As I'm fleeing from the coremod the best way to recreate the BlockPortal was clearing your registry. This is very important for my mod. Anyone who can help, you could put the code ready.

 

an example:

 

1- blockRegistry.addObject(90, "portal", (new BlockPortal()).setHardness(-1.0F).setStepSound(soundTypeGlass).setLightLevel(0.75F).setBlockName("portal").setBlockTextureName("portal"));  :'(

 

2- blockRegistry.addObject(90, "portal", (new BlockPortal1()).setHardness(-1.0F).setStepSound(soundTypeGlass).setLightLevel(0.75F).setBlockName("portal").setBlockTextureName("portal")) 8)

 

public class BlockPortal1 extends BlockBreakable...  :o8);D

 

a1oaw2.png

 

[move]Please help me. :'( [/move]

Thank you and good day.

remove it from Blocks.class would be too much hasle, you could just hook the method that makes the block portal (i dont remember if its block obsidian or  item flint and steel).

I have a old utility class that i done back in 1.3 that replaces classes at runtime (all of it, not just one), i could send for you to take a look, but it would be better to look if forge already provides hook for that, or if use asm, replace just the method itself, not the whole class

  • Author

The best solution was to base edit, insert the modified class to jar file:.minecraft\libraries\net\minecraftforge\forge\1.7.10-forgeversion-1.7.10\forge-forgeversion-1.7.10.jar and apply the JVM argument "-Dfml.ignoreInvalidMinecraftCertificates = true -Dfml.ignorePatchDiscrepancies = true" or install LiteLoader to break the protection against non-original files.

 

Thank you for your idea Opssemnik.

Guest
This topic is now closed to further replies.

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.