Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


Forge Modder
  • Posts

  • Joined

  • Last visited


  • Gender
  • Location
  • Personal Text
    I have learned much but have much more to learn

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

brandon3055's Achievements

Diamond Finder

Diamond Finder (5/8)



  1. It may help if you posted some of the code related to the issue. If you haven't already i would recommend implementing an item NBT helper. It will make working with NBT much easier and may or may not help you solve your problem. Here is mine (You can copy it if you like) https://github.com/brandon3055/BrandonsCore/blob/master/src/main/java/com/brandon3055/brandonscore/common/utills/ItemNBTHelper.java
  2. You need to set this.xSize and this.ySize in your gui constructor otherwise the game assumes the gui is the default size of 176 x 166. So when you click on one of the lower slots it registers that you clicked the slot but the game also thinks that you clicked outside the gui which makes you drop the item on the ground. Edit: I just noticed you have defined private xSize and ySize variables in your gui class. Remove them and use the ones that already exist as i explained above. Also your ySize (82) Looks much smaller then the gui shown in your video. xSize and ySize need to be the same size as your gui as thay set the gui boundaries among other things.
  3. Thanks i will go have a chat with them. And if i can get it all figured out i may make a tutorial on it.
  4. Hmm... I think thats actually related to opening multiple projects in one window. Not actually linking projects.
  5. Yea... I just never stopped calling them workspaces. Thats not exactly what i need. That just shows you how to open multiple intellij windows. But i will have a look around that site because there seems to be a lot of info there. I found that i can link them by importing my library project as a module but that dosnt actually load when i run the game.
  6. Just wondering if any of the experts here know how to link Intellij work spaces. What i would like to do. I am about to start working on a library mod to consolidate a lot of the code that i use in all of my separate mods. And i would like to know if there is a way i can link this work space to all of my mod work spaces in a way that any changes will automatically show up in all of my separate mod work spaces. And if possible have the ability to make changes to my library mod from the linked mod work spaces. Im sure i will eventually figure this out but a quick google search didn't tern up any helpful results so i figured it cant hurt to ask.
  7. Ok so first of what i am trying to do. I am trying to use the vanilla scoreboard to display information to a specific player. This is for a server side mod so i cant just access the scoreboard client side. I have found a way to do this but its going to be a little tricky to implement so before i get started i want check if anyone knows a better way. After digging through the scoreboard code i have found that i can do this using the following packets. Sends the scoreboard objective to the client S3BPacketScoreboardObjective(scoreObjective, 0) Displays the objective in the sidebar S3DPacketDisplayScoreboard(1, scoreObjective) Updates a spacific score in the objecting. S3CPacketUpdateScore(score, 0) Working example The problem i encountered is if i use S3BPacketScoreboardObjective to add an objective that already exists or remove one that dose not exist it crashes the client. This means i am going to have to come up with a tracking system to keep track of what objective each player currently has displayed and make sure i dont remove or add an objective that already exists. It would also have to keep track of when a player relogs. Edit: On second thought i only need to send the player one objective which i can send on login. Then i can just change the name, contents and visibility of that objective as needed.
  8. At this point im not really seeing any other options... Probably wouldn't be hard to figure out but dose anyone know what the maximum packet size is?
  9. It depends on what exactly it is you want to do. You will need to ether make it a container item or create your own IRecipe implementation
  10. Since i didnt get a single reply to this thread http://www.minecraftforge.net/forum/index.php/topic,28231.0.html That tells me that I probably need to find a new way to do this. So what i need to do. I need to find a way to send an nbt compound to the server. The problem is the compound i need to send can range in size from just a few kilobytes to several megabytes which (correct me if i am wrong) is way to big for the standard packet system. I have considered trying break it up into smaller packets and then reassemble them on the other side. But i would really like to avoid something like that if possible. Dose anyone have any suggestions?
  11. "// I don't fully know where I would put this cause the item will not be crafted but found in a chest" The best way to handle something like that is to check if the tag exists before you read it and if it dose not then you create it. It helps to have an NBT helper class to do all that for you.
  12. If you take a look at ANY basic minecraft tutorial about adding blocks you will learn how to initialize a Block variable. Edit: How to add blocks.
  13. If you don't know how to initialize a variable you really shouldn't be making a mod yet... You should be learning basic programming. Take a look at what value you are setting for "public static Block magicblock;"
  14. Min extends ShapedOreRecipe which implements IRecipe.
  15. Use playerMP.openContainer to get the container the player currently has open. Check if it is an instance of ContainerPlayer.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.