Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

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. 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.
  7. 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?
  8. 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.
  9. Using a TOML syntax highlighter also helps. IntelliJ has one & I would assume eclipse has one too.
  10. I use the processResources block to substitute in my version.
  11. 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.
  12. Post your logs (using GitHub Gist or similar)
  13. AFAIK only faces facing towards the player will be rendered anyway. Can you please provide a screenshot example of this?
  14. 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).
  15. 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.
  16. 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.
  17. You should have a reference to your actual capability and only use/provide your LazyOptional for external operations.
  18. 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());
  19. 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
  20. 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.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.