Jump to content

Nosba

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by Nosba

  1. Hi all, I want to add an item that spawns a building when it is used. Is there a "standard" way to do that? or is there a open source mod that does the something like that?
  2. Hi all, I'm handling a KeyInput event, with a KeyBinding. That code is working, but the KeyInputEvent doesn't have the getPlayer or getWorld method, so I cannot obtain the player who pressed the key. Is there a way to obtain the player, or the world?
  3. First of all sorry for the title. I don't want only to render it, I want the player holds it so if the player use the item it should work. Can you be more specific? I know that I can use the capabilities to store Entity's data, but nothing more.
  4. Hi all, I asked some days ago for a method to prevent an Item to be moved out from the inventory. Draco18s told me that it is impossible. So I was thinking if it's possible to make a player holding an item that is not in his inventory. Someone know a way to do that?
  5. Hi all, I want to make an Item that cannot be moved out of the inventory, e.g. It should be impossible to put it in a chest or to drop it. Is there some events that is fired when the player tries to move an item out of the inventory?
  6. I want to change the animation when the player attacks another player or a mob. An example of what I want is in this video: as you can see the player doesn't attack with the usual animation. I want to do that: change the attack animation.
  7. Hi All, I wrote in this forum some days ago at the topic: http://www.minecraftforge.net/forum/index.php?topic=43007.0. I Asked about how to perform an action with the fml API. Some Users answered me with some tutorials about Events and Events handling. I studied it but I still have a question: How can I render my animation when the player is using my sword? I'll explain better: I know that I have to override some Methods and make an Event Handler, but I sill don't know what methods I have to call to show my textures and my animation. Someone can help me?
  8. All right but I need to know how to override that method. I will probably need a series of textures to show in sequence to simulate a movement. But I don't know anything about the method to call from the RenderPlayerEvent.pre event to show my animation?
  9. "Packets" If the question ever involves "how does the server know the client did...?" the answer is packets. Likewise the answer to "how does the client know the server did...?" is also packets. onItemRightClick is called on both sides. You don't need to do anything involving packets. thank you! Now I have another problem. I didn't open another thread because this problem is tightly connected to the previous one. Some answers ago Draco18s wrote: Now I know how to write my own method that removes the opponent's life, etc. But I do not know how to make the visual effect yet. I searched online for: Animations Minecraft forge tutorial, Action Minecraft forge tutorial, Attack animation Minecraft tutorial and other queries, but I found nothing about that. Can you tell me some tutorials, pdf, videos or anything else where I can learn about animations for Minecraft 1.10?
  10. No, you need packets. The client and the server are not guaranteed to be on the same physical machine. Ok, but I suppose that there are some events that are raised when the player press some keys. So how can I override these methods at server side? I found that tutorial http://www.lopakalogic.com/articles/minecraft-articles/minecraft-mods-forge/custom-actions-items/ but it only works on client side. Should I override the method in client and in that method send a packet to the server?
  11. Then, if I've understood what you meant, I have to add a listener in the client proxy that calls a method of the server proxy which performs the action and informs all the client to play the right animation?
  12. Hi all, I want to create a mod that implements some new Weapons. These weapons must do a different action based on the keys pressed by the user: e.g. if the user presses the shift key and the left mouse a sword should lunge. My problem is that I don't even know what I have to look for, is that an animation or what? Do you know where can I learn about it?
  13. It works! I had already added the line idea{module{inheritOutputDirs = true}} but I didn't run again the ./gradlew setupDecompWorkspace. thanks for your help! Is that not step 2? no. Step 2 indicates to launch the command not to add lines and than relaunch the command.
  14. It works! I had already added the line idea{module{inheritOutputDirs = true}} but I didn't run again the ./gradlew setupDecompWorkspace. thanks for your help!
  15. I am very sure. I did that steps 10 times, with several MDKs (1.10.2, 1.9, 1.10, 1.9.4). Always the same problem. When I follow the step 2 if I add the arg --info to the command I always find the same error: file or directory '/Users/noemurr/Downloads/forge-1.10.2-12.18.1.2011-mdk/src/api/resources', not found I also tried to use eclipse and using it I can open the project but the ide doesn't find the external libraries.
  16. I did not understand your answer. I followed this guide that are in the README.txt file: at the step 3 the underlined and bold text I cannot import the file. I have just launch the gradlew program with arg --info and in the outputs I found that error: file or directory '/Users/noemurr/Downloads/forge-1.10.2-12.18.1.2011-mdk/src/api/resources', not found I think that it is important but I don't know I to resolve the problem.
  17. Hi all, I am trying to use forge MDK to writing a mod with Intellij idea. I followed all the guides of README.txt file and even other online guides. I don't know why but when I import the build.gradle project in Intellij the Ide blocks in gradle: run build and doesn't import the projects someone with the same problem?
  18. Hello, I'm new in the world of minecraft forge, I downloaded forge MDK. I followed the guides and the README.txt file, but when I run ./gradlew (no metter which command) the program freezes at point of > Configuring > 0/1 projects > root project. It doesn't give me errors or information, It simply stop to use CPU. I tried to use the --refresh-dependencies and -S options, but it there is the same. I also tried to use the --continue option without success. I use Mac OSX 10.11.6, forge-1.10.2-12.18.1.2011-mdk and Intellij IDEA. Someone can help me?
×
×
  • Create New...

Important Information

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