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

Hello everyone!

 

First of all, I would like to thank you for all the tools this community gave to us. Modding Minecraft seems so easy with Forge!

 

I am currently trying to create my first mod, but I am facing a wall here. Instead of adding stuff (items, blocks, etc.), I would like to change default behavior. As in, I want the chests to be rendered as 1×1×1m boxes (2×1×1 for large ones), as they used to be (but with the opening / closing animation).

 

Now I found where these dimensions (for the boundBox and the model itself) were in native code:

  • net.minecraft.block.BlockChest
  • net.minecraft.client.model.ModelChest
  • net.minecraft.client.model.ModelLargeChest

 

There are a few methods to overwrite as well.

 

But my problem is, how can I tell the game to replace native chests with mines? Should I just rewrite these files? I was not sure; for me the point of Forge is precisely to avoid this.

 

How can I do this?

 

Thank you for reading this, I hope you can give me some advices here. Have a nice day / night!

unregister the old chest and register it as your new chest

The Korecraft Mod

  • Author

Ok, it makes sense. Now how can I unregister blocks? Wiki and forum searches were not helpful.

  • Author

Thank you so much diesieben07! It was indeed pretty easy! I still have some details to polish before actually releasing, but this would have been a no-go without your help.

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.