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.

MrDj200

Members
  • 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. Oh, where is this supposed to go?
  3. 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
  4. So "deprecated" does not mean "it'll be removed soon, please use a new method instead" ?
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. No you can't. Way too Time Consuming No Probs at all man Have a nice Day/night/Whatever! ^^ -Dj
  13. 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
  14. Can you post the output here? It should tell you your Java Version
  15. 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
  16. 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");
  17. 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
  18. 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
  19. 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
  20. Thats the info the LogHelper gives me on a real Server. Forgot to add it. -Dj
  21. 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
  22. 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

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.