Jump to content

Failender

Forge Modder
  • Posts

    1091
  • Joined

  • Last visited

Everything posted by Failender

  1. http://www.minecraftforge.net/forum/index.php/topic,32816.0.html
  2. Fixxed it. Welcome to the world of spelling mistakes. thank you anyways :'D
  3. which is "the furnace slot"? If you are taking about the advanced result slot please post its code
  4. Is the advanced slot the one making the problems or the advancedresultslot?
  5. I feel like I dont understood the ResourceLocation 100% right now. It is not taking me to the assets folder, but to total nonsense. I am using this right now, the method is called with the arg "archer" (which is the name of the "map" to look for) [13:05:43] [Client thread/INFO] [sTDERR]: [java.lang.Throwable$WrappedPrintStream:println:-1]: java.io.FileNotFoundException: minigames:maps/archer.fail private static int[][][] readFile(String key) { ResourceLocation loc = new ResourceLocation("minigames:maps/"+key+".fail"); try { InputStream stream = Minecraft.getMinecraft().getResourceManager().getResource(new ResourceLocation("minigames" ,"maps/"+key+".fail")).getInputStream(); ObjectInputStream in = new ObjectInputStream(stream); int[][][] ret = (int[][][]) in.readObject(); in.close(); return ret; } catch (Exception e) { e.printStackTrace(); throw new RuntimeException("Critical error loading File"); } }
  6. How are u firing the event?
  7. It is correct. KeyEvents are client side only, so u are free to use that , u are only NOT allowed to use that on server side
  8. I want to get the path of the assets folder for read only tasks. I am storing data there and want to read that on server initializing to store the data in arrays. So I want what in eclipse is assets.minigames.maps
  9. For gods sake use spoiler tags And show the code for ur slot
  10. If you know how to update from 1.7 to 1.8 then you are able to use that tutorial in 1.8
  11. Hey guys, I am triing to save data in text files and read them at runtime. My problem right now is that I want this to work in dev environment and "playing" environment without changing code. So what I tried is ResourceLocation loc = new ResourceLocation("minigames:maps"); File file = new File(loc.getResourcePath()); System.out.println(file.getAbsolutePath()); But this throws me inside the eclipse folder, which I tried to NOT do. Which is the thing I need to use here?
  12. I guess the only thing that is more rare then nether stars is dragon eggs :b
  13. why shouldnt that work sir?
  14. overpowered is the combination of low cost, low efford, high durability I guess. There is a LOT of stuff that fks with overpoweredness in the actual modding scenee.. So. you should do it the way you are feeling good. and if its "omg way to overpowered" people will tell you make sure to prevent hardcoding so you need to fix some variables to nerf stuff
  15. Find the exact event that is rendering the text (i think there was getElementsType or sth like that) cancel that event and do the rendering of it on your own (except for the text of course)
  16. open your own thread if you want help for your problem please
  17. I feel like we already had this question only weeks ago.. The answer is, poor you, you cant. I know that the solution the asking person used was to take all the vanilla enchantments from the weapons and create them again so that they can be used for his bow. Think about the problems that a tool that can have all enchantments will bring. A tool with infinity? Whats that..
  18. why do you want to do that? there is no need to display gui screens on server side
  19. why. SPOILER ALERT: you cant
  20. That is true. Gui screens are to be displayed on client side. and now?
  21. The default worldgenMinable is only replacing stone, which doesnt exist in the end. I would advise u to take a look at this http://bedrockminer.jimdo.com/modding-tutorials/basic-modding-1-7/world-generation/
  22. im officially retarded. thank you
  23. Hey everyone, it has been driving me crazy and I was unable to find my mistake. I want to add items to all player in the game, and used the following code public static ArrayList<EntityPlayer> getAllPlayer() { ArrayList<EntityPlayer> list = new ArrayList<EntityPlayer>(); for (Object obj : MinecraftServer.getServer().getConfigurationManager().playerEntityList) { EntityPlayer player = (EntityPlayer) obj; list.add(player); } System.out.println(list.size()); return list; } public static void addStackToAllPlayer(ItemStack stack) { for (EntityPlayer player : getAllPlayer()) { player.inventory.addItemStackToInventory(stack); } } Methods.addStackToAllPlayer(new ItemStack(Items.bow)); The problem is that it is only adding the stack to the first player in the list, no matter what. If I reverse the list (Collections.reverse) the other player gains the items. Any ideas?
  24. Missunderstood your question and dont read your whole code, sorry. I am not sure about the GameRegistry call with 3 args, since I am always using 2 args. (but im mainly 1.8 modder)
×
×
  • Create New...

Important Information

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