Jump to content

[1.7.10] How to add inventory slot?


Grim1ight

Recommended Posts

Depends "add slot" - to what? Player I guess, but you want to have additional slot inside player inv or maybe have additional inv?

 

In any case - this is like clash of 4 biggest parts of intermidiate modding:

* IExtendedEntityProperties

* SimpleNetworkWrapper (packets)

* Container+GUI+Slot

* Events

And few lesser parts of MC like:

* NBT

* PlayerInventory (IInventory)

 

I doubt you will find (maybe) tutorial telling exatly what to do (there are many approaches), but you should be able to find enough on mentioned topics to make your own thingy. Success is directly dependent on how well you know Java.

 

I can walk you through, but no code will be provided - now the question is - are you capable (if this would be 1st mod, it might be too hard)?

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Depends "add slot" - to what? Player I guess, but you want to have additional slot inside player inv or maybe have additional inv?

 

In any case - this is like clash of 4 biggest parts of intermidiate modding:

* IExtendedEntityProperties

* SimpleNetworkWrapper (packets)

* Container+GUI+Slot

* Events

And few lesser parts of MC like:

* NBT

* PlayerInventory (IInventory)

 

I doubt you will find (maybe) tutorial telling exatly what to do (there are many approaches), but you should be able to find enough on mentioned topics to make your own thingy. Success is directly dependent on how well you know Java.

 

I can walk you through, but no code will be provided - now the question is - are you capable (if this would be 1st mod, it might be too hard)?

1.7.10 is no longer supported by forge, you are on your own.

Link to comment
Share on other sites

Capable? I think yes. I don't know Java much but I think enought for forge and I still studying. I started to making mods recently (few month ago). I usually trying to find tutorials or see Minecraft code to make basic code and then making my own stuff. If I will learn how to do something (Inventory slots for example), I will know how to make it further. And that's why I asking tutorial (now I want learn inventory, containers, GUIs).

 

P.S. I want slot inside player inventory.

Link to comment
Share on other sites

Capable? I think yes. I don't know Java much but I think enought for forge and I still studying. I started to making mods recently (few month ago). I usually trying to find tutorials or see Minecraft code to make basic code and then making my own stuff. If I will learn how to do something (Inventory slots for example), I will know how to make it further. And that's why I asking tutorial (now I want learn inventory, containers, GUIs).

 

P.S. I want slot inside player inventory.

Link to comment
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.
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.

×
×
  • Create New...

Important Information

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