Jump to content

DCNick3

Members
  • Posts

    49
  • Joined

  • Last visited

Everything posted by DCNick3

  1. Ok, english is not my language) I use (arg[0] == "create") that returns false, but it must return true, because arg[0] is "create"
  2. I have a command class : And when I comparing arg[0] with "create" Program Jumps to else instruction, but I enter "create" in minecraft, Help!!!
  3. And how should I do any save/load of data, and Is that code ServerSide?
  4. I must register Event handler with events = new RealEventHandler(); MinecraftForge.ORE_GEN_BUS.register(events); in my preInit Event, must I register IExtendedEntityProperties?
  5. Must I register this class? And what supercalss I must to use with myProps class?
  6. Please, Show full sample how to do it
  7. It's commandSender interfase, hot to use IExtendedEntityProperties with it (sample please)
  8. How To Get Entity Player, that Invoked command?
  9. I developing ServerOnly mod with some commands. I need to save some data to world (from command), and I need to save data temply with attachment ot the player. And part 2. How Make mod that installs only to server, without requirement it at Client. Help!
  10. Ok, thanks, but now I have a crush: java.lang.IllegalArgumentException: Attempted to cancel a uncancelable event All Crush: http://pastebin.com/Ufw9CPfs How I Understand GenerateMinable is not Cancelable Event... And what shoud I do to Overwrite Vanilla Ore Generation With My Generation? I think I can erase ore blocks in my world generator, but It will be lag...
  11. Ok, I read the tutorial, now I registred an EventHandler with events = new RealEventHandler(); FMLCommonHandler.instance().bus().register(events); And RealEventHandler class : public class RealEventHandler { @SubscribeEvent public void GenerateMinable(OreGenEvent.GenerateMinable event) { event.setCanceled(true); System.out.println(event.type.name()); } } It doesn't occurs! No any text in Consoloe! Help!!!
  12. Can you give a URL, please?
  13. @EventHandler public void GenerateMinable(OreGenEvent.GenerateMinable event) { event.setCanceled(true); } isn't working... What I do wrong?
  14. Thank You!!! But one more question... What Event I need to subcribe?
  15. Ok. I'm Bang my head against the wall think a lot and find this: public static boolean generateOre(World world, Random rand, WorldGenerator generator, int worldX, int worldZ, GenerateMinable.EventType type) { GenerateMinable event = new GenerateMinable(world, rand, generator, worldX, worldZ, type); MinecraftForge.ORE_GEN_BUS.post(event); return event.getResult() != Result.DENY; } But, I can't edit event without changing this file...
  16. Please, make sample
  17. How?! If I do it it errors!
  18. I can't find how to do it( I'm not pro in java... I finded procedure setCanceled() , but I can't invoke it in OreGenEvent
  19. Sorry for my stupid questions, but ... how to cancel event?
  20. Please, more detailed about that
  21. Please Help! How to Overwrite Vanilla Ore Generations? I saw it in GtegTech, and need to disable Vanilla Ore Generator and usy my.
×
×
  • Create New...

Important Information

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