Jump to content

Recommended Posts

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!

Posted

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

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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