Hey, I'm having trouble with my custom chest. What I want is to make it so that the player can only hold 6 certain items (from my mod) in the chest. I already have the chest created and working and all that. I heard that you can restrict items from being put into containers with the "isStackValidForSlot" thing.
public boolean isStackValidForSlot(int par1, ItemStack par2ItemStack)
{
return true;
}
I just don't know what to put in to make it restrict all but those 6 items in those slots.
Hello all. I am looking for an experienced coder to help me with my mod: Skies of Minecraftia
If you would like to help, please leave a reply and add me on Skype or PM me for my Steam name.
I made a custom KeyHandler... class... thing. But what I'm trying to do is check if a certain item is in the players inventory and if the player has said item, then change the texture of the currently equipped weapon using the NBTTag stuff (which I do not understand). Some people that I talk to are saying use Player.Inventory.hasItem(itemnamehere) but I keep getting errors on either "Player" or "Inventory". Does anyone know how to correctly do this? I have searched on Google but found no helpful results that led to the MC forums.
Thank you! I've been wanting to do this for a long time! Can you do a GUI tutorial? Like a seperate item inventory that you open with the pre-defined key?
I am making a forge mod and I need to know if it is possible to edit the players inventory screen and HUD without screwing around the main game files? I can not find any tutorials that explains how to do this.
The mod has been updated to 1.5.1! Check the website for the changelog! I rewrote the entire mod this weekend to update it to 1.5.1. I even added all of the weapons (which don't do anything yet) I wanted to add. The ores however, are not generated yet and will try to generate the raw moonstone ores when I have time.
This is kinda like one of the mods in the technic pack. The apples will drop randomly from trees. I think it's the nature overhaul. I'm not sure someone will have to look that up for me.
DID ANYONE ELSE BUT ME NOTICE THE NEW ACHIEVMENTS!?!?!?!ALSO AXES BREAK DOWN WORKBENCHES FASTER :DRC2 is release candidate 2, it means that it's close to the final product (so gitty!)
0
0
I just don't know what to put in to make it restrict all but those 6 items in those slots.
0
0
Edit: Also, you can't kill a ghost. Because a ghost is already... well... dead.
1
0
http://imgur.com/D0Kl74h
Model class
Render class
Any help would be greatly appreciated.
0
If you would like to help, please leave a reply and add me on Skype or PM me for my Steam name.
0
Also if anyone can teach me how to use the NBT stuff to change the texture in the keyDown event that would be really helpful.
0
0
0
Terribly sorry, but I do not have a Mac, so I wouldn't know how to install it.
0
0
Fixed! Sorry for the delay.
0
0
Well I'm not saying she doesn't like videogames. I just don't think she ever played one.