Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. Obviously. The method expects something to be returned. It even tells you what it expects. And you're not giving it that thing.
  2. ...something that isn't null!? Nothing, its just completely useless redundant code that makes it clear that you have no idea what the fuck you're doing.
  3. The isEmpty is unnecessary if you're going to compare the item to something. If it is empty, the item returned by getItem is AIR, which is definitely not ITEM_NAME
  4. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/harderores/block/ore/HardOreBlock.java#L115
  5. Right click -> Open type hierarchy or F4 in Eclipse.
  6. TL;DR: learn how to (find and) read the errors the game gives you.
  7. This: And this: Do essentially the same thing. Except that the former adds the methods to the Mod Event Bus and the latter to the Forge Event Bus and the two event methods you have aren't annotated with @SubscribeEvent, so the latter actually doesn't do anything at all. Your mod ID is tutorial. So why are you setting up dependencies for examplemod?
  8. Show your code.
  9. Yeah, you didn't post the whole thing. The part you posted is too late.
  10. Post your log.
  11. Your json tells the game to look in "grub:block/example_block" https://github.com/YellowRubberDucky111/1.15.2-Grub/blob/master/src/main/resources/assets/grub/blockstates/example_block.json#L3 Your texture is located at "grub:blocks/example_block" https://github.com/YellowRubberDucky111/1.15.2-Grub/blob/master/src/main/resources/assets/grub/textures/blocks/example_block.png
  12. ...then do it in the constructor? Your Shapes field isn't static, but defined in the constructor, so do the same with your age property.
  13. My guess is that jumping doesn't check for "if the player is sprinting" but rather "if the player is holding the sprint button down." You'd have to dig into the vanilla code.
  14. That's literally what the error says: Its telling you that on one side you have an object of Type "Biome" and on the other you have an object of Type "RegistryKey<Biome>" and that neither one overloads the == operator to make the comparison possible.
  15. One of those things is a Biome, the other is a RegistryKey object that you need to get a Biome from.
  16. That is a SRG named variable. In this case, it appears to be a parameter of a method. The "human readable" names you're accustomed to are created by hand, one at a time, by the community; formerly via MCPBot ("MCP names") but will be handled in the near future by MMMS (Mod Mapping Management System).
  17. It is not. This: Runs immediately. This: Runs at a deferred time.
  18. No, no it does not. As evidenced by the crash log: Whatever the salt rock block is, from the Pines Food Mod, it does not have an EAST property, and something (apparently a vine block*) is trying to set it. It may not be possible for you to fix this. *My guess is that a vine thinks that a neighbor should also be vines, due to its own state, but its neighbor is not actually vines. This is an unfortunate unchecked situation in vanilla.
  19. My guess would be that the method that deals with sapling tree growth isn't replacing your sapling because it doesn't know your sapling is a sapling. Offhand that would make me think that you need to add your sapling to the sapling block tag.
  20. Because when this line runs: Your BLOCKS contains no entries because block registration hasn't happened yet. Register your stuff properly.
  21. Fabric is not Forge, that's why.
×
×
  • Create New...

Important Information

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