Everything posted by snocavotia
-
Generate a custom world like the nether?
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?
-
Open Server.properties from client?
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?
-
KeyBind activates no matter what?
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?
-
Render an image over the hud?
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.
-
Server side integer saving?
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.
-
Render an image over the hud?
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.
-
Block Damaging, About to throw computer.
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?
-
Is there a way to mine a block at a specific (x,y,z)?
If i use that my my mod will only break blocks like flowers or grass. I'm not mining any blocks.
-
Is there a way to mine a block at a specific (x,y,z)?
Is there a way to mine a block at a specific (x,y,z)? assuming of course that the Player is near the Block.
-
Mining a block with EntityPlayer
How would i go about using the EntityPlayer to mine a block? is there like a method mineBlock(Block block)?
-
EntityPlayer's playerMoveEvent?
Lol yeah.. i slapped myself in the face after i asked that... haha. Anyways thanks alot for the help its working now!
-
EntityPlayer's playerMoveEvent?
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.
-
EntityPlayer's playerMoveEvent?
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.
-
EntityPlayer's playerMoveEvent?
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.
-
What method causes the Player to move?
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
IPS spam blocked by CleanTalk.