
DCNick3
Members-
Posts
49 -
Joined
-
Last visited
Everything posted by DCNick3
-
[1.7.10] [Server Mod] Error, when comparing strings
DCNick3 replied to DCNick3's topic in Modder Support
Ok, english is not my language) I use (arg[0] == "create") that returns false, but it must return true, because arg[0] is "create" -
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!!!
-
And how should I do any save/load of data, and Is that code ServerSide?
-
I must register Event handler with events = new RealEventHandler(); MinecraftForge.ORE_GEN_BUS.register(events); in my preInit Event, must I register IExtendedEntityProperties?
-
Must I register this class? And what supercalss I must to use with myProps class?
-
Please, Show full sample how to do it
-
It's commandSender interfase, hot to use IExtendedEntityProperties with it (sample please)
-
How To Get Entity Player, that Invoked command?
-
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!
-
Thank a lot!
-
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...
-
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!!!
-
Can you give a URL, please?
-
@EventHandler public void GenerateMinable(OreGenEvent.GenerateMinable event) { event.setCanceled(true); } isn't working... What I do wrong?
-
Thank You!!! But one more question... What Event I need to subcribe?
-
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...
-
Please, make sample
-
How?! If I do it it errors!
-
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
-
Sorry for my stupid questions, but ... how to cancel event?
-
Please, more detailed about that
-
Please Help! How to Overwrite Vanilla Ore Generations? I saw it in GtegTech, and need to disable Vanilla Ore Generator and usy my.