Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. 1.8 is not supported here. Update. Also: Don't do this.
  2. Override getUpdatePacket, getUpdateTag, and onDataPacket. These methods specifically exist to synchronize TE data to the client.
  3. Well, there's an either/or thing here. Instance: non-static methods. Class-type (which includes the annotation): static methods.
  4. That's not the problem. Unfortunately I need a working git repo to poke at things in enough detail.
  5. Oh sure. Just saying that there is a reason to put things there, just not this one.
  6. (Unless you're trying to override a vanilla recipe)
  7. Right:
  8. Apparently you didn't look at Items.java where things like cooked porkchop get instantiated to find out what classes were involved.
  9. I could tell you how to do this with Custom Ore Generation, but it needs updating, and I can't do it alone.
  10. I wonder how vanilla does it. Also, Code Style #4
  11. So this? public ItemEntity(World worldIn, double x, double y, double z, ItemStack stack) { this(worldIn, x, y, z); this.setItem(stack); this.lifespan = (stack.getItem() == null ? 6000 : stack.getEntityLifespan(worldIn)); } Lets look at that constructor for a moment. It has the following parameters: World worldin double x double y double z ItemStack stack Are any of these the type EntityType?
  12. What's the error?
  13. Loot tables.
  14. Functionally an itemstack with a size of zero is the same as an empty stack. So do what you like.
  15. Your parent (in your model file) needs to specify the domain, eg. minecraft:block/cube_all eg: https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/resources/assets/harderores/models/block/millstone.json#L2
  16. Your json file is invalid.
  17. So. When I said you needed static, your code looked like this: @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class RegistryEvents { @SubscribeEvent public void onKb (LivingKnockBackEvent e) { using an annotation. Now it looks like this: MinecraftForge.EVENT_BUS.register(new KnockbackR()); ... public static class KnockbackR { //Tried without static, tried with only the class static. public static void onKb(LivingKnockBackEvent e) { System.out.println("Called"); no, not called } } Why did you change something I didn't tell you to change? Now the fact that your method is static is the problem. (The class being static is basically irrelevant, but it should be static anyway, but that's not the method its the class). You HAVE THIS for godsake. @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public class RegistryEvents { @SubscribeEvent a normal void WHICH STILL WORKING } Although it appears you couldn't be arsed to show the method signature of a working event, because you also have this for some reason: MinecraftForge.EVENT_BUS.register(new RegistryEvents()); So who knows which one of the two registrations is working for the handlers that are working correctly.
  18. https://lmgtfy.com/?q=java+static+method
  19. ...Still has nothing to do with Forge. (And I do know what capes are, thanks)
  20. I said you had two problems. Did you fix both?
  21. Think of an event bus like an email address. If you only get work related emails at your work address, then write a bot to tell you when you have new messages from your boss, but tell it to check your personal email address. Would you expect it to work? No? Why not?
  22. Some data file that you created has caused an error and as a result all datapack data was not loaded.
  23. Are those versions the Java Edition of Minecraft? No? Then no. OptiFine does their own shit and is incompatible with Forge. This is not Forge's problem to fix. You can sometimes get them to run together, but weird crashes may occur. This is not Forge's problem. What. What does this have to do with Forge?
×
×
  • Create New...

Important Information

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