Jump to content

Draco18s

Members
  • Posts

    16559
  • Joined

  • Last visited

  • Days Won

    156

Everything posted by Draco18s

  1. By the way, by padding those strings with spaces, this item MUST be constructed in the middle column of the crafting table. This is not usually how crafting recipes work.
  2. You put new SomeBlockClass(/*whatever parameters*/)
  3. 125 states isn't that many. If you're concerned over having to create that many files yourself...dude, data generators are a thing.
  4. Lets check the version numbers. You need a different version of Forge.
  5. Honestly, I'd do this by generating override recipe json files. I haven't messed with the recipe registry since 1.12 (and I was dealing with maybe four different recipes that I wanted to target).
  6. You don't need reflection for this, ForgeRegistries.ITEMS exposes an enumerator you can iterate over just fine.
  7. https://www.eclipse.org/community/eclipse_newsletter/2017/june/article1.php#:~:text=Breakpoints,double-click on this position.
  8. Because decompilation and floating point error. 0.6 is not representable in binary. https://www.h-schmidt.net/FloatConverter/IEEE754.html
  9. No, its been replaced by Capabilities. https://gist.github.com/williewillus/353c872bcf1a6ace9921189f6100d09a
  10. If your goal is to reduce the fetching time of CauldronRecipe.getAllCauldronRecipes(); Would you rather: (a) do it every time a new TileEntity is created (b) once, ever Its not like the recipes change or are otherwise unique per cauldron...
  11. tileEntity.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY);
  12. This: Because it has no source it ceases to exist because it has no source. Each block in a water stream has a "depth" level and each block looks at the blocks around it and says, "what should my depth be? If I am next to a source block, 8, otherwise 1 less than the maximum I see around me." You placing a non-source block into the world does this check and finds that its depth should be 0. Depth 0 is air. It sets itself to air. Because each one sees an adjacent water block with a depth value and each one decrements their depth value by 1 each tick.
  13. Try running the Clean task and rerunning it.
  14. It probably has a SRG name that hasn't been made human friendly because MCP is dead and MMMS isn't ready yet.
  15. Flowing water is not a water source block. As such, it has no source, and evaporates.
  16. Because the method isn't annotated as @NonNull. And this is because before SetRegistryName is called, it will return null, but once the game's running you can be sure that no registry name will ever be null. This is a case of being unable to tell the compiler that we don't need the check in a way that the compiler will be able to understand.
  17. Dude, create a field to hold a reference to your boots. Don't string compare! Also, the registry name will never be null. Trying to register an item with a null registry name throws an error.
  18. I've literally done this before. https://github.com/Draco18s/ReasonableRealism/blob/1.14.4/src/main/java/com/draco18s/industry/block/RailBridgeBlock.java#L71 I'm not overriding a vanilla block to do it, but I've still conditionally given a block a collision volume.
  19. But you're only doing it for the block at a given position.
  20. Block.Properties#doesNotBlockMovement()
  21. for(int i = 0; i <= ingredients.length; i++) { Ingredient ingredient = ingredients[i]; if(!ingredient.test(inv.getStackInSlot(i))) { return false; } } Only one false matters. The problem with your original code was that you weren't using i as your index, but 0. When you changed it to i you also screwed with the boolean check and return values.
  22. Ok, so it has a FACING property. Facings can be rotated. If the front is towards you, then the left side is the side that is rotated around Y clockwise.
  23. Answer this question: What do you mean by left side? If you walk around to the opposite side and turn around, left and right have swapped places.
  24. Use git properly. https://www.softwarelab.it/2018/10/12/adding-an-existing-project-to-github-using-the-command-line/
×
×
  • Create New...

Important Information

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