-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
Since you said this, I assumed you had already done that... You need a capability attached to horses, which stores an IItemHandler for your additional inventory space. -
Correct, although that was my question to begin with. How am I meant to modify the inventory of an existing entity? I was under the impression that this would be addressed as well, though that mustn't be the case. The way you had described it in your initial reply had made it seem like the slots would have allowed the user to interact with them. Perhaps I misunderstood. I understand I am interacting with the 3rd slot (index 2) and I understand why I'm getting this exception, I'm just unsure how to address it. Overriding one of the existing slot indexes surely isn't an option. I want to maintain the vanilla functionality of a horse. So to rephrase the question in the OP, what would be the correct approach to add a slot to a horse inventory with which a player may interact and place/take items?
-
By diesieben07 · Posted
You can use the various sub-events of GuiScreenEvent to change existing GUIs. -
By diesieben07 · Posted
I haven't watched his videos. I only see people who say they used him produce terrible code and I've seen him on the Forge Discord asking stupid questions and proving has no idea what he's doing. As for other tutorials: I prefer to just look at the code and figure things out that way. But I have heard good thing's about Cadiboo's tutorials: https://cadiboo.github.io/tutorials/1.14.4/forge/. -
By diesieben07 · Posted
You are telling the slot to use index 2 of the horse inventory. The default horse inventory only has 2 slots, indices 0 and 1.
-
-
Topics
-
Who's Online (See full list)