Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. Ideally you would do the block rebuilding off-thread or even multithreaded. I haven't done that in this example though. https://gist.github.com/Cadiboo/753607e41ca4e2ca9e0ce3b928bab5ef If you do multi-thread/off-thread your rebuilding, you will need to have proper thread safe code.
  2. Not necessarily. Block models can be up to 3x3x3.
  3. I’m 99.95% sure it doesn’t. Do you have the module set to “test” in your run configuration?
  4. Because there are better ways of doing this than the one you’re trying. For example, putting the item into the container from the container. This is super easy if the container has something that runs every tick (like an Entity or a TileEntity). What you’re trying to do is always relevant, because there’s usually a better way of doing it.
  5. The maximum size for a block’s bounding box is 1x1.5x1. You need multiple blocks to achieve this
  6. You can submit a pull request for a Forge hook
  7. You can cache the BufferBuilder results by doing the same thing that RenderChunk does. I’ll write you some example code in a bit because it’s relatively complicated and I have lots of experience but the basic idea is: 1) Render your data to your own BufferBuilder 2) Render your BufferBuilder from the event 3) Update the BufferBuilder when your data changes
  8. Double post
  9. That much is obvious. What will this achieve for an end user perspective?
  10. With ItemStack damage/meta or a capability
  11. This isn’t the right forum for this, you should find the mod’s official page. It’s prbably on CurseForge or MinecraftForum. What has been said before stands though. The skin should contain only lowercase alphanumeric characters
  12. Putting something in acceptable remove versions in your mcmod.info/mods.toml file or your @Mod annotation should work. Edit: Didn’t realise this was over a year old
  13. You need to tell IntelliJ to recompile the file... eclipse does it when you hit save, IntelliJ doesn’t. Personally I really like this feature. You can recompile the current file with the keybind, by going to build -> recompile project or right clicking the file in the project explored and selecting recompile.
  14. Its an IntelliJ thing IIRC
  15. Mojang uses "depreciated" in the Block class (and only in the block class) to mean "invoke this from a BlockState, however overriding this is fine"
  16. You refresh the gradle project in IntelliJ by going to the gradle tab in the right sidebar, opening it and clicking the "refresh all gradle projects" button that looks like ?
  17. 1) Edit the file to add pause at the end 2) Run the file from the command line There are plenty of tutorials on google for both
  18. This leads me to believe you don’t know enough Java/have enough experience with an IDE. Either that or your using code from an ancient version. To change a blocks bounding box, you can override Block#getBoundingBox. However this box can be at maximum 1x1.5x1. Anything bigger than this needs multiple blocks. You can look at how the bed works (probably not the best example for your needs, but looking at vanilla code is always helpful), or at other mods that do similar things.
  19. Was this changed recently? I used to use @ObjectHolder filled fields for my model registration and it worked.
  20. Does having your own correct recipes in assets/minecraft/recipes work?
  21. Try refreshing the gradle project. Closing and reopening IntelliJ is not necessary.
  22. Please post your code as a GitHub repository. Hardcoding 0 as your ID isn’t the best idea. I recommend registering entity renders in the model registry event. 99% of the time you don’t need a proxy.
  23. Please post your code as a GitHub repository. IMO testing your hypothesis by manually trying to load a text file probably isn’t the best. I would try to load a json or png file, and try to load it with and without the extension. Could just be me being superstitious about how minecraft’s resource manager loads file types though.
×
×
  • Create New...

Important Information

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