Jump to content

caramba2654

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by caramba2654

  1. https://github.com/caramba2654/Inventory-Rules Okay. I tried, but I just can't wrap my head around adding a GUI. I know that I have to add a block. Then add a Tile Entity to it. Then create a GUI for the block. Then connect those two with a container. I tried following Pahimar's Equivalent Exchange 3 source code (because I like his coding style), but I can't figure out what I'm doing wrong. I then tried looking for other tutorials, but they did little to help me. So I ask you: what did I do wrong? I got it almost right most of the times. I could place the block, but I couldn't move it with a piston, so it was a Tile Entity. I just couldn't open the GUI. So I think it's something in that part of the code. Well, I dunno. Right now when I right click the block it crashes, so I need to figure that out too. Well, I'll be glad if you pointed me what I did wrong and what I can do to fix it. Here are some links to the most important files that I probably screwed up: https://github.com/caramba2654/Inventory-Rules/blob/master/src/main/java/com/caramba2654/inventoryrules/block/BlockRuleCreator.java https://github.com/caramba2654/Inventory-Rules/blob/master/src/main/java/com/caramba2654/inventoryrules/tileentity/TileEntityRuleCreator.java https://github.com/caramba2654/Inventory-Rules/blob/master/src/main/java/com/caramba2654/inventoryrules/inventory/ContainerInventoryRules.java
  2. *hugs LexManos* I wish I could help, but unfortunately I'm not able to. All I can do is wish you a good vacation. After all, you deserve it, mostly because there are a few thousands (maybe even a million) that can only play modded Minecraft because of you.
  3. Hm... That is a good idea. Thanks for the suggestion! Now I just need to figure out why my block GUI isn't working so that I can continue to implement the Rule system. :v
  4. Well, first of all, I didn't ask for you guys to code the mod for me. And I'm sorry if I sounded like it. What I wanted was just some tips that would help me structure my code better because, as I explained before, I'm a beginner modder and, therefore, I need to know if the practices I'm doing are good practices or not. I wouldn't want to become a known modder like KingLemming, cpw, or others, and have bad habits in coding. And I think neither would other people. That bit of you post was exactly what I was expecting to read. I didn't want (or need) code because I can simply look up tutorials online. I'm after the concepts rather than the hard code. If I had any problems with, say, checking the block in front of the player, THEN I'd ask for hard code. But for now, all I need is some feedback on whether my coding is going in the right direction or not. And, again, I apologize if I sounded like I wanted people to code my mod for me. Because of personal reasons, I kinda have a hard time expressing my opinions and thought processes. It's okay, though. I didn't tell you that before, so I think I have a little bit of fault in this, eh?
  5. Hello! I'm coding my first mod, and I'd like some help to code it. Here's what the mod is about: I'm developing this mod because I think it should be fun trying to follow rules like "Have 10 sticks in your inventory" or "Don;t have any items in the top row". Anyways, as I said before, I need help coding it, because I'm a beginner programmer and I'm still getting the hang of things. I started following Pahimar's LetsModReboot tutorials, but I'm too impatient to wait and let him finish it. :v So here's the source code: https://github.com/caramba2654/Inventory-Rules What I need to do to get this thing going is: 1. Setup a keybind that opens the "Player Active Rules" PAR menu. 2. Have two items. a. Rule Card: Contains the rule. GUI explaining the rule (just like written books sorta) b. Rule Creator: Creates rules. May be used for debugging only, but it's needed. Would be nice if it had a GUI. 3. Be able to put a Rule Card inside the PAR and activate a potion effect (for now, crazier stuff is coming in the future) I'm stuck on the "create rule" part. I want to be able to create a rule and assign it to a Rule Card using NBT, which will be read to determine the events that will happen to the player. The things I need as Rules components are: 1. Rule Type 2. Rule Creator 3. Rule Array of ItemStacks (can be a single ItemStack for now) 4. A random number [1;64] 5. A random number [1;4] 6. A random number [1;9] 7. Rule Good Consequences 8. Rule Bad Consequences For now I'm just working with 1,2,3,4,5,6 because I think it's easier. I need to get Rules working before I can get them to do something, right? So, can anyone help me on that? I'll answer any questions you might have about this.
  6. Yeah. Unfortunately the mod won't update for 1.7.10 for a long time. http://terrafirmacraft.com/f/topic/4856-frequently-asked-questions-faq/page-2 Well, off I am to creating a NEI plugin on a 1.6.4 environment.
  7. The thing is that the mod I'm creating the plugin for is in 1.6.4. So I would need to code it for 1.6.4. But I just asked the author how long it's gonna take for him to update the mod. Hopefully not long so that I can mod it in 1.7.10 already. Also, thanks for the link!
  8. So, I decided to create a NEI plugin for TerraFirmaCraft for Minecraft 1.6.4. But I need to know a few things first: 1. How do I create a NEI plugin? Can I get a GitHub/source code to at least one NEI plugin? 2. It is for MC1.6.4, but I want to make it easy to update to 1.7.10. How can I do that? Do I use the new Gradle stuff? 3. Where is the source code for the NEI API for MC1.6.4? I can't find it anywhere, and I need it so that I can actually make the mod. As answers arrive, questions may arise and I'll ask them out accordingly. :3
×
×
  • Create New...

Important Information

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