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.

snocavotia

Members
  • Joined

  • Last visited

Everything posted by snocavotia

  1. I know this is vague but i dont know where to even start, I would like to create another world, for example's sake lets call it "wonderland" i am going to have a custom portal to "wonderland", but how do I generate a new world like the nether or the end?
  2. I need a way to disable my mod on servers without the server having to install my mod. Is there a way to do this, like placing a line in server.properties or maybe a different file?
  3. I have a keybinding that i initiliaze with this: public void load(FMLInitializationEvent event) { logger.info("FML Event: load"); proxy.init(this.config); KeyBinding[] key = {new KeyBinding("Radar Settings", Keyboard.KEY_BACKSLASH)}; boolean[] repeat = {false}; KeyBindingRegistry.registerKeyBinding(new TutorialKeyBinder(key, repeat)); } But my keybinding activates even when i have other Gui's active. It activates no matter what. How do i prevent this?
  4. Yeah im pretty sure thats what i'm looking for but could you do a small demo render in there? I'm not sure how to use that method. I don't understand Minecraft's rendering engine.
  5. Because the code I need cannot be used. Let me explain.. try{ compound = whatever; }catch{ //Exception Here } I cannot use compound anywhere else except for the try/catch statement. Initiliaze the variable outside of the try catch like this NBT compound = null; try{ compound = CompressedStreamTools.read(stream); }catch(Exception e){//handle} now you can access the compound variable anywhere. compound.whatEverTheHellYouNeed(); ******* If it helps toss me a thank you.
  6. Is there a way to render an image over the hud? Kindof like FMLClientHandler.instance().getClient().fontRenderer.drawStringWithShadow(String, 10, 10, 16777215); But i need to be able to render any image depending on the time.
  7. I have been fiddling with code all day and have not found a single peice of code that works.. But lets say this. I press my LeftMouseButton. that button initiates a method and that method slowly damages the block based on my pickaxe and the BlockID. I no longer need to mine at a specific x,y,z but what is this damn method?! I've searched for two days now. I've tried PlayerControllerMP.clickBlock() World.destroyBlock(), World.partiallyDestroyBlock(), etc.. Basically what i am saying is this. What method tells the game (Client AND Server). that i am mining/breaking/have broken the block im looking at?
  8. If i use that my my mod will only break blocks like flowers or grass. I'm not mining any blocks.
  9. Is there a way to mine a block at a specific (x,y,z)? assuming of course that the Player is near the Block.
  10. How would i go about using the EntityPlayer to mine a block? is there like a method mineBlock(Block block)?
  11. Lol yeah.. i slapped myself in the face after i asked that... haha. Anyways thanks alot for the help its working now!
  12. Thanks! this very well may work! Also, do you know a way to make a character jump? I'm going to have to detect possible collisions and jump over them.
  13. Hmmm I hadn't thought about changing velocity. And i cant seem to find where he talks about the methods invoked by pushing the "wasd" keys.
  14. What exactly causes the EntityPlayer to move? I can get the EntityPlayer object without modifying base code, but i absolutely cannot figure out how to move the EntityPlayer in the same way that he would move if i were to press "w,a,s,d". Does anyone know of a method? I know bukkit has a PlayerMoveEvent, but i cannot find anything like this in forge.
  15. I am working on a mod that causes a player to walk to a predetermined set of coords, but i cannot figure out what method should be called to cause my player to face a certain direction and walk. Any methods would be much appreciated

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.