Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. If you are making an addons for that mod and have access to the class then all you have to do is subscribe to the GuiOpenEvent and replace the Gui with your own Gui.
  2. You should instead elaborate on your problem more, there might be a way to do what you want without having to do what you have stated.
  3. It is no longer supported, it will never be supported again
  4. Don't worry as soon as 1.13 is out I will attempt a good modding tutorial for it, and hopefully the plague will end.
  5. Step one delete the class step to iterate through your items step three call ModelLoader.setCustomModelResourceLocation on all the items in your ModelRegistryEvent.
  6. 1.7.10 is how many years old now? And if this is 1.8 how many years old is that? We dont support any versions below 1.9.x and soon that will be gone too.
  7. I agree with draco18s, so to tell you how to do the reflection part, ReflectionHelper has a setField or setValue. No replacing vanilla code just the instance that houses it.
  8. No, there is no need simple iterating through your Item instances and calling ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(item.getRegistryName(), "inventory")); Is enough
  9. I have not seen this, however you could probably look for the mcp(minecraft coder pack for 1.13 and check. No. This is too bug of a change. Use reflection and add another entry to the enum. Look at how the EnumHelper class does it if you need an example.
  10. @PhilipChonacky IHasModel is a terrible method of applying a model to an Item. All Items have models and all the required information to register a model to an item is public. You can just register the item in the ModelRegistryEvent by calling your ClientProxy method from there. However on to your actual problem. I have to theories one being since you call the super method in onUpdate the default behavior applies. Or it's the fact that you are only setting the entity to dead on the server(might be synced, unsure). I believe the first one has a higher probability. Try stepping through the code in the debugger to find out what is happening.
  11. Take a look at the code, you can look in any of the Minecraft or forge classes.
  12. Minecraft#keyBindings I believe is the field where the information about keybindings is stored.
  13. Ok. Now can you see how to prevent it, what boolean can you change?
  14. Did you step through past your code into the vanilla code that is spawning the gravel?
  15. Step through it in the debugger. You've also given no context when is this method called. In your Biome code? A structure generation? Your ChunkGenerator?
  16. You'll have to make your own block that is the unlit torch.
  17. Sometimes there is an extra "clause" that gives more information. I was mainly looking for the exact file path it was looking in. But my next logical check would be, did you refresh eclipses/ideas files.
  18. Is that the whole error or is there a part that says caused by below that part.
  19. Did it say anything in the console about a missing texture? Also are you sure that your draw method is being called?
  20. Isn't that what you are already doing? The motion variables in the entity class are velocity, and the entities position is its position. So the partial ticks multiplied by the motion variable + the position would result in the same thing.
  21. Using partial ticks and doubles is probably the best you can do to animate something in minecraft. Since it wasn't designed for something to move that fast within normal conditions.
×
×
  • Create New...

Important Information

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