Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DCNick3

Members
  • 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. How?! If I do it it errors!
  17. 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
  18. Sorry for my stupid questions, but ... how to cancel event?
  19. Please, more detailed about that
  20. Please Help! How to Overwrite Vanilla Ore Generations? I saw it in GtegTech, and need to disable Vanilla Ore Generator and usy my.

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.