Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. You'll want an ItemStackHandler field + capability + container + screen. My HeatCollectorTileEntity is probably the simplest thing in my example mod. All that should be required is increasing the size of the ItemStackHandler and changing the container + screen.
  2. https://github.com/Cadiboo/Example-Mod/tree/1.15.1/src/main/java/io/github/cadiboo/examplemod/tileentity/
  3. I'm not sure what the exact error is, but since rendering and entities have changed since tabula was made I assume you've got a small issue to do with an incorrect override. You'll want to use your IDE to automatically generate overrides for you.
  4. Then why aren’t you overriding getCapability in your TileEntity classes? The event is for attaching capabilities to objects that you do not have direct control over
  5. Finally. Give me a couple hours and I’ll have pushed my changes to ExampleMod and my tutorials that make all registration use DeferredRegisty.
  6. Are those both your tile entities?
  7. That is your superclass...
  8. I would say look at EditBookScreen and ReadBookScreen for how the data gets displayed and then reverse engineer it from there. The json generators should help you get the syntax and stuff right. You can use this knowledge to make your own helper methods if none exist.
  9. That is interesting. I'm not sure what would be causing this because I played around with block rendering, TESRs and the fluid renderer a lot in 1.12.2 & 1.14.4 and you needed to explicitly draw the backing quad for both sides to be drawn. An example of this is how you can see through the world in spectator mode and do not see the insides of walls. Can you try simplifying your code to just draw a single quad and see if this still occurs?
  10. If you know that the object exists and have access to it, you shouldn’t be using an optional. An Optional should be exposed to the rest of the world with getCapability BUT you know that your capability will never be null so you should use a direct reference in your internal code.
  11. Using a TOML syntax highlighter also helps. IntelliJ has one & I would assume eclipse has one too.
  12. I use the processResources block to substitute in my version.
  13. Add [Solved] to the title. For people in the future, how did you solve your issue? Btw 1.12.2 is no longer supported on this forum due to its age.
  14. Post your logs (using GitHub Gist or similar)
  15. AFAIK only faces facing towards the player will be rendered anyway. Can you please provide a screenshot example of this?
  16. How did you get it working, for other people with the same problem in the future?
  17. Yes. There should be helper methods in the book class (or another class) for writing this data. You can also look at json generators like this Minecraft Book Editor and Minecraft Json (Click on the Book button).
  18. Try deleting your gradle caches. You can do this by running gradlew clean and gradlew cleanCache. Restarting your computer can also help with uncommon problems like this.
  19. 1.7.10 is no longer supported on these forums due to its age. Update to a modern version of Minecraft (The current version (1.15.1) or the one before it (1.14.4)) to receive support on these forums.
  20. You should have a reference to your actual capability and only use/provide your LazyOptional for external operations.
  21. BlockPos#getAllInBox does return a mutable block pos. You can greatly simplify your code by using Streams. Something like List<BlockPos> allInBox = BlockPos.getAllInBox(startPos, endPos) .map(BlockPos::toImmutable) .collect(Collectors.toList());
  22. You never close your description. It should look like this. Notice the ''' below your description that ends the entry. # The description text for the mod (multi line!) (#mandatory) description=''' This is a long form description of the mod. You can write whatever you want here ''' [[dependencies.examplemod]] #optional
  23. It would produce whatever spectrum you want, just in a tiny fraction of the time it would take to do it in Java code (All the work is done on the GPU). Then get the pixel color back out either by calculating the RGB some way or actually sampling the RGB on screen.
  24. post your mods.toml.
  25. Use BlockPos#toImmutable().
×
×
  • Create New...

Important Information

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