Jump to content

DavidM

Members
  • Posts

    1830
  • Joined

  • Last visited

  • Days Won

    12

Everything posted by DavidM

  1. Apart from that, the author thinks others won't know he used mcreator if he removed "Made with MCreator" from the mcmod.info. Moreover, he did not state that the mod is made with mcreator in the CurseForge project page. Both actions are violating the Pylo Terms, making the publication of his mod a reportable offense. Post your new log. Is it the same as before? Try removing all the mods. Does the game still crash? From the file names of your mods I am suspecting that you did not got your mods from CurseForge. Please make sure you are downloading your mods from CurseForge.
  2. The PhonesAlpha mod is made with mcreator and is broken. The author has no idea what he is doing. Tell him to make a real mod. (This might not be the cause of the crash, but probably is).
  3. 1. I am indeed storing the Method instance in a static field. 2. Did not realize the getClass problem. Fixed it. Will keep that in mind in the future. Thanks! 3. That would be very handy. 4. The mapping from 1.13.1 works. Thanks!
  4. I am trying to called the EntityLiving#getLootTable, which is private, and therefore I am using "ObfuscationReflectionHelper": Method getLootTable = ObfuscationReflectionHelper.findMethod(entityLiving.getClass(), "getLootTable", new Class[0]); However, I am getting an exception on the line posted above (only after I've build the mod and ran it in the normal game; it works fine in dev env) : [18:25:02] [Server thread/FATAL]: Error executing task java.util.concurrent.ExecutionException: net.minecraftforge.fml.common.ObfuscationReflectionHelper$UnableToFindMethodException: java.lang.NoSuchMethodException: net.minecraft.entity.passive.EntityPig.getLootTable() at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_74] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_74] at net.minecraft.util.Util.func_181617_a(SourceFile:200) [?:?] at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:715) [?:?] at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:669) [?:?] at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:115) [?:?] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:565) [?:?] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_74] Caused by: net.minecraftforge.fml.common.ObfuscationReflectionHelper$UnableToFindMethodException: java.lang.NoSuchMethodException: net.minecraft.entity.passive.EntityPig.getLootTable() at net.minecraftforge.fml.common.ObfuscationReflectionHelper.findMethod(ObfuscationReflectionHelper.java:175) ~[?:?] at cn.davidma.tinymobfarm.core.util.EntityHelper.getLootTableLocation(EntityHelper.java:40) ~[?:1.0.5] at cn.davidma.tinymobfarm.common.item.ItemLasso.func_111207_a(ItemLasso.java:69) ~[?:1.0.5] at net.minecraft.item.ItemStack.func_111282_a(ItemStack.java:315) ~[?:?] at net.minecraft.entity.player.EntityPlayer.func_190775_a(EntityPlayer.java:1013) ~[?:?] at net.minecraft.network.NetHandlerPlayServer.func_147340_a(NetHandlerPlayServer.java:1068) ~[?:?] at net.minecraft.network.play.client.CPacketUseEntity.func_148833_a(SourceFile:69) ~[?:?] at net.minecraft.network.play.client.CPacketUseEntity.func_148833_a(SourceFile:13) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_74] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_74] at net.minecraft.util.Util.func_181617_a(SourceFile:199) ~[?:?] ... 5 more Caused by: java.lang.NoSuchMethodException: net.minecraft.entity.passive.EntityPig.getLootTable() at java.lang.Class.getDeclaredMethod(Class.java:2130) ~[?:1.8.0_74] at net.minecraftforge.fml.common.ObfuscationReflectionHelper.findMethod(ObfuscationReflectionHelper.java:169) ~[?:?] at cn.davidma.tinymobfarm.core.util.EntityHelper.getLootTableLocation(EntityHelper.java:40) ~[?:1.0.5] at cn.davidma.tinymobfarm.common.item.ItemLasso.func_111207_a(ItemLasso.java:69) ~[?:1.0.5] at net.minecraft.item.ItemStack.func_111282_a(ItemStack.java:315) ~[?:?] at net.minecraft.entity.player.EntityPlayer.func_190775_a(EntityPlayer.java:1013) ~[?:?] at net.minecraft.network.NetHandlerPlayServer.func_147340_a(NetHandlerPlayServer.java:1068) ~[?:?] at net.minecraft.network.play.client.CPacketUseEntity.func_148833_a(SourceFile:69) ~[?:?] at net.minecraft.network.play.client.CPacketUseEntity.func_148833_a(SourceFile:13) ~[?:?] at net.minecraft.network.PacketThreadUtil.func_210405_a(SourceFile:10) ~[?:?] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_74] at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_74] at net.minecraft.util.Util.func_181617_a(SourceFile:199) ~[?:?] ... 5 more I assume that this is due to the usage of unobfuscated names for the method name parameter in ObfuscationReflectionHelper#findMethod. I am wondering: - Back in 1.12.2, ReflectionHelper#findMethod takes two parameters for the name of a method; the SRG name and the MCP name. It then automatically decides which one to use. Does the ObfuscationReflectionHelper in 1.13.2 has a method that does the same thing (auto decide which name to use)? - The MCPBot doesn't have files on 1.13.2 yet AFAIK. What are the other ways to get the SRG name of methods in 1.13.2?
  5. Check my previous post. Add a "textures" under "variants"/"".
  6. Change your blockstate for your block to something like: { "parent": "block/cube_all", "textures": { "all": "modid:block/copperore" } }
  7. Change the parent in your item model to: block/cube_all .
  8. Just out of curiosity, why is LootTableManager MinecraftServer specific instead of World specific in 1.13.2?
  9. I am trying to create a LootTable from a ResourceLocation. I am doing so with LootTableManager#getLootTableFromLocation. How would I get an instance of LootTableManager in 1.13.2? Back in 1.12.2, I used World#getLootTableManager.
  10. Well that’s really handy. Thanks!
  11. “Have effect on client” is very vague. It depends on how you are using it. Where are you using this?
  12. Back in 1.12.2, I used ReflectionHelper to do reflections. However, it seems that the ReflectionHelper class does not exist in 1.13.2. What is the 1.13.2 equivalent of ReflectionHelper?
  13. Yes. Delete them and find the 1.12.2 equivalents by using the IDE or online documentations.
  14. 1. Review Java. 2. Check out online documentations to familiarize yourself with the new naming (optional). 3. Fix your errors by reading the errors. They should tell you exactly what you should do, like "XXX is not a method in the parent class" means the method XXX does not exists anymore, and thus you should not be trying to override it. Or even better... Check out other people's example code! Yay! Linked below is an excellent tutorial on modding in 1.12.2: https://github.com/TheGreyGhost/MinecraftByExample/tree/master/
  15. 1. Please, check your syntax. I spotted at least 3 syntax errors from a quick glance. 2. When your IDE gives you an error, you should read the error and fix the error properly instead of simply removing @Override. The Override annotation is giving an error because the method being overridden does not exists. Removing the @Override will fix the compile-time error, but meanwhile will make the method useless. 3. Things change. The method and field names in 1.8 do not necessarily exist in 1.12.2. An example would be TileEntity#worldObj (1.8), which is changed to TileEntity#world in 1.12.2. Again, use your IDE. 4. Stop registering your items inside the constructor. Initialize and register them in the appropriate event. My suggestion would be: 1. Review Java. You need to get the basic syntaxes right. 2. Names change between versions. You should use your IDE to figure out the names for methods and fields in 1.12.2. 3. Sentences like "Line xxx is giving an error" is not specific. You need to read the error, which is trying to tell you what is wrong.
  16. FastTESR works differently than TESR. You cannot just copy the code from a normal TESR to a FastTESR. Checkout: https://mcforge.readthedocs.io/en/latest/tileentities/tesr/#fasttesr In short: You cannot reference GlStateManager and GLXX in FastTESR.
  17. They are not correct, otherwise there will not be the red wiggly lines under it. These are syntax errors. These are irrelevant to your model. Use your IDE to find out what are wrong and how to fix them (hover your cursor over the errors). Moreover, you should be using GlStateManager instead of GL11.
  18. A FastTESR would probably boost your performance significantly, but there will still be some lag as rendering 125 ItemStacks per frame is very demanding on resources.
  19. 1. Because of this: for(int i = 0; i < 5; i++){ for(int j = 0; j < 5; j++){ GlStateManager.translate(-0.9, 0, 0); itemRenderer.renderItem(itemStack, ItemCameraTransforms.TransformType.FIXED); for(int k = 0; k < 5; k++){ GlStateManager.translate(0, 0, +0.5); itemRenderer.renderItem(itemStack, ItemCameraTransforms.TransformType.FIXED); } GlStateManager.translate(0, 0, -2.5); } GlStateManager.translate(4.5, -2, 0); } 2. Check out FastTESR.
  20. Just double checked. The link is a tutorial for 1.12.2's advancement system.
  21. http://jabelarminecraft.blogspot.com/p/minecraft-modding-advancements.html
  22. Thanks! (Just had a quick look at the source. It indeed didn't seem easy [Facepalm].)
  23. I am trying to get the drops of EntityLiving. Previously I've done so by calling EntityLiving#getLootTable with reflection, which gives the resource location of the loot table. However, the loot table does not include drops that are added by other mods (like Enderman dropping Enderman head from EnderIO). How do I get drops, including those added by other mods, from an EntityLiving?
  24. 1. How does one create config in 1.13.2? 2. How does one use the server's config in multiplayer?
×
×
  • Create New...

Important Information

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