Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited

Everything posted by MrDj200

  1. Ah, thanks! Works now! However, what is supposed to go into the 2nd parameter (key)? GameRegistry.registerTileEntity(tileEntityClass, key);
  2. Hey there o/. I made a Tile Entity with the "ITickable" interface and I'm using the Overwritten method "update()" to let the Block do something. And that works fine, except when I reload the world, it does not work anymore. Block updates won't start it either. It needs to be replaced. What am I missing, is "update()" the wrong method? Here's the code: https://pastebin.com/5vkT7eaJ -Dj
  3. So "deprecated" does not mean "it'll be removed soon, please use a new method instead" ?
  4. Yeah, I know ^^. I was told that the probability that Deprecated methods will be removed in the near Future is high, thats why I wanted to know the new variants ^^ -Dj
  5. You could look at this: https://www.spigotmc.org/resources/namemanager.5147/ I think it's doing what you are looking for, Heres the Source: https://github.com/AgentLV/NameManager Maybe you can find something that helps in there. Good luck -Dj
  6. Nice, that works! Thank you very much! Do you happen to know the not deprecated methods? I have a feeling it'll bork the hell out when I update to a new Forge version in the future. -Dj
  7. Hey, I also had problems with items. Sorry to not post a direct answer to you question, but I your code is quite messy(sry)(I'm a total beginner aswell, so maybe I just don't get it yet :/). Take a look at this: https://wiki.mcjty.eu/modding/index.php/Basic_Item-1.12 These tutorials helped me a LOT. Here is the link to the complete wiki: https://wiki.mcjty.eu/modding/index.php/Main_Page Hope this helps -Dj
  8. Block class: https://pastebin.com/8skfgwX1 and the Parent class for my Blocks: https://pastebin.com/nBgKEejZ sry for the delay just had breakfast ^^" -Dj
  9. Hey, I use this site/wiki alot: https://wiki.mcjty.eu/modding/index.php/Main_Page And it has a section which could help you: https://wiki.mcjty.eu/modding/index.php/Render_Block_OBJ-1.12 I have not looked further into that topic, but the topics I looked thorugh, helped me alot -Dj
  10. Hey there o/ I finally got a Block Model to work in Minecraft (yay). But now it looks kinda weird. Here a screenshot: The lightning looks quite a bit off. Has someone experienced it/knows a fix? -Dj
  11. No you can't. Way too Time Consuming No Probs at all man Have a nice Day/night/Whatever! ^^ -Dj
  12. Yeah, I meant that with Output ^^. Download the Windows Offline (64Bit) from this website and Install Java. Link: https://www.java.com/en/download/manual.jsp Note: If you have 32 Bit, use the Windows Offline without 64 Bit link instead -Dj
  13. Can you post the output here? It should tell you your Java Version
  14. It seems to work now! Thank you VERY much! It was: Field field = ReflectionHelper.findField(TileEntity.class, "REGISTRY", "field_190562_f"); Have a nice rest Day/night/whatever! -Dj
  15. Thanks. So like this? Field listField = ReflectionHelper.findField(TileEntity.class, "REGISTRY", "field_190562_f"); Or Like this: Field listField = ReflectionHelper.findField(avh.class, "REGISTRY", "field_190562_f");
  16. I cant seem to figure out how it works. As I said Im very new To mc modding even to Java. So if someone could provide an example, I'd be very grateful. -Dj
  17. Hmm, It gave me something, but it seems like it was wrong. I now use this: Class cls = Class.forName("avh.f"); field = cls.getDeclaredField("field_190562_f"); Instead of this: field = TileEntity.class.getDeclaredField("REGISTRY"); But neither works on servers. Do I have to type in something else in MCPbot? My input in MCP was this: -Dj
  18. Do you have Java installed? Here is how to check: 1. Open CMD(if on windows. Open Terminal if on Linux) 2. type: java -version 3. Hit Enter -Dj
  19. Thats the info the LogHelper gives me on a real Server. Forgot to add it. -Dj
  20. Thanks for the reply! I tried using that. And it works in my IDE, however not on "real" servers. I think it has something to do with Obfuscation(?). Here is the Code I used: try { Field field = TileEntity.class.getDeclaredField("REGISTRY"); field.setAccessible(true); RegistryNamespaced<ResourceLocation, Class<? extends TileEntity>> reg = (RegistryNamespaced) field.get(null); for(ResourceLocation location : reg.getKeys()) { Class<? extends TileEntity> entity = reg.getObject(location); LogHelper.info("Registered TE: " + entity.getName()); } } catch (NoSuchFieldException | SecurityException | IllegalArgumentException | IllegalAccessException ex) { LogHelper.error("An unexpected error occured ", ex); } Is there a way to use it on "real" servers/clients? -Dj
  21. Hey there! I'm new to modding and would like to get a List of all registered TileEntities. I tried: Minecraft.getMinecraft().world.loadedTileEntityList; But it only gives the TE's already in the World and I want a list with All registered TE's. Is that possible? If yes, how? I'd love to see an example Greetings -Dj
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.