MrDj200
Members-
Posts
23 -
Joined
-
Last visited
Everything posted by MrDj200
-
Thanks!
-
Ah, thanks! Works now! However, what is supposed to go into the 2nd parameter (key)? GameRegistry.registerTileEntity(tileEntityClass, key);
-
Oh, where is this supposed to go?
-
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
-
So "deprecated" does not mean "it'll be removed soon, please use a new method instead" ?
-
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
-
[Any Version] Getting "special" data from TAB Information
MrDj200 replied to BallsOfBedrock's topic in Modder Support
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 -
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
-
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
-
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
-
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
-
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
-
Forge 1.7.10 refers to a nonexistent java runtime enviroment
MrDj200 replied to Jose Munoz's topic in Support & Bug Reports
No you can't. Way too Time Consuming No Probs at all man Have a nice Day/night/Whatever! ^^ -Dj -
Forge 1.7.10 refers to a nonexistent java runtime enviroment
MrDj200 replied to Jose Munoz's topic in Support & Bug Reports
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 -
Forge 1.7.10 refers to a nonexistent java runtime enviroment
MrDj200 replied to Jose Munoz's topic in Support & Bug Reports
Can you post the output here? It should tell you your Java Version -
[SOLVED] [1.12] How to get a List of TileEntities
MrDj200 replied to MrDj200's topic in Modder Support
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 -
[SOLVED] [1.12] How to get a List of TileEntities
MrDj200 replied to MrDj200's topic in Modder Support
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"); -
[SOLVED] [1.12] How to get a List of TileEntities
MrDj200 replied to MrDj200's topic in Modder Support
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 -
[SOLVED] [1.12] How to get a List of TileEntities
MrDj200 replied to MrDj200's topic in Modder Support
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 -
Forge 1.7.10 refers to a nonexistent java runtime enviroment
MrDj200 replied to Jose Munoz's topic in Support & Bug Reports
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 -
[SOLVED] [1.12] How to get a List of TileEntities
MrDj200 replied to MrDj200's topic in Modder Support
Thats the info the LogHelper gives me on a real Server. Forgot to add it. -Dj -
[SOLVED] [1.12] How to get a List of TileEntities
MrDj200 replied to MrDj200's topic in Modder Support
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 -
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