
Everything posted by Cadiboo
-
[Solved] [1.12.2] Optimized Client-Side structure rendering
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.
-
How do i make a block with a model, that it two blocks high?
Not necessarily. Block models can be up to 3x3x3.
-
I made a new workspace-setup, but got a wired error...
I’m 99.95% sure it doesn’t. Do you have the module set to “test” in your run configuration?
-
[1.12.2] ItemStack question
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.
-
How do i make a block with a model, that it two blocks high?
The maximum size for a block’s bounding box is 1x1.5x1. You need multiple blocks to achieve this
-
Make block be able to be used in Nether Portal like obsidian
You can submit a pull request for a Forge hook
-
[Solved] [1.12.2] Optimized Client-Side structure rendering
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
-
I made a new workspace-setup, but got a wired error...
Post the actual error
-
[1.12.2] ItemStack question
Double post
-
[1.12.2] ItemStack question
That much is obvious. What will this achieve for an end user perspective?
-
[1.12.2] Best way to store a single integer in an item?
With ItemStack damage/meta or a capability
-
[Bug] only a few custom skins work
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
-
[1.12] Have client not connect to remote server if server side mod version isn't correct
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
-
How to fix intelji idea not updating code during debug
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.
-
[SOLVED] Not loading resource domain
Its an IntelliJ thing IIRC
-
Making a 2 wide block [Solved]
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"
-
Forge not loading mod in Intellij
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 ?
-
[1.13.2] Crash when moving a tile entity with piston
Does it happen in vanilla?
-
forge 1.12.2 server
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
-
Making a 2 wide block [Solved]
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.
-
[1.12.2] Model register problem
Was this changed recently? I used to use @ObjectHolder filled fields for my model registration and it worked.
-
registry override prevent json parse error
Does having your own correct recipes in assets/minecraft/recipes work?
-
Forge not loading mod in Intellij
Try refreshing the gradle project. Closing and reopening IntelliJ is not necessary.
-
[1.12.2]Custom painting not rendering
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.
-
[SOLVED] Not loading resource domain
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.
IPS spam blocked by CleanTalk.