Jump to content

Crazeh

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Crazeh

  1. Not sure that would really work for me, it's an RPG plugin and it uses ender chests as banks, I don't want to have to completely remake that. Is that really the only way?
  2. I have a custom ore, and I was wanting to make it so it doesn't stack in your inventory, but in a chest it does. Is this possible? If so how can this be done? Thanks in advanced for any help provided.
  3. Do you think this would work? while (this.gameSettings.keyBindInventory.isPressed()) { //Do something here }
  4. Been looking and looking, can't seem to find the open inventory event anywhere. Could someone help me please? Basically what I need is something like, if inventory open, do this, blah blah code here, that sort of thing.
  5. Someone on IRC suggested I make a Bukkit plugin that handles the API and prints the info how I need it. Then said to use packets but didn't explain how or anything, where do I start with that?
  6. Well people in Forge IRC said it's a bad idea so I kind of scraped it, any ideas on how to accomplish this?
  7. Okay, so here is what I have so far, this is the class that gets the info from the server via mysql, it only gets basic info at the moment to test - package Zombie_Mod; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; public class ZScon { public static void ZScon(String[] args) throws Exception { Class.forName("com.mysql.jdbc.Driver"); Connection con = DriverManager.getConnection("jdbc:mysql://localhost/mcmmo","root","root"); PreparedStatement statement = con.prepareStatement("select * from mcmmo_users"); ResultSet result = statement.executeQuery(); while(result.next()) { System.out.println(result.getString(1) + " " + result.getString(2)); } } } Few questions, in the MySQL database. There is mcmmo_users which contains id,user,lastlogin mcmmo_skills which contains id,taming,mining,woodcutting,ect (The current level) mcmmo_experience which contains id,taming,mining,woodcutting,ect (The current XP) How do I - look at mcmmo_users, match a user name to an ID, use that ID in skills to get the skill level, then experience to get experience? I then want to print it like so - Mining(20) 120/1060 So that is - SkillName(SkillLevel) CurrentXP/TotalXP Could someone help me with this? Im pretty new to actually making mods with Forge, not sure where to start really.
  8. Try replacing blockID with shiftedIndex, what your dropping sounds like it isn't a block, which may be why it isn't working.
  9. Is the item your adding a custom item? Or an item that is already in Minecraft? This is out of memory, so it might be wrong. But for vanilla you use: return Block.blockDiamond.blockID //Replace blockDiamond with Vanilla block return Item.diamond.shiftedIndex //Replace diamond with Vanilla item And for a custom item or block you use: return Class.Block.blockID //Replace Class with your mod class, and Block with your block name return Class.Item.shiftedIndex //Replace Class with your mod class, and Item with your item name
  10. Hey everyone, long time user, first time poster. I am trying to make a mod that requires it get info from the server side, specifically, mcMMO, I want it to get the current levels of the current player, how can I achieve this? And once I do have that info, I can just use 'println' where I want it, correct? Thanks in advanced for any help provided.
×
×
  • Create New...

Important Information

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