-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
Keep old mods while running newer forge?
Cadiboo replied to LOOOOOOOOOOL's topic in Support & Bug Reports
Mods are written for a specific Minecraft version. As a general rule they will not work on other versions. -
@SidedProxy had its own issues. It really is best to not stringly type your code and let the compiler do its work. I agree that it is a bit of a dirty hack though.
-
In all versions client only code should be accessed exclusively from other client only code. In most circumstances though it will not crash.
-
One way around this is to have your second lambda be a method annotated with @OnlyIn. https://github.com/Cadiboo/NoCubes/blob/2cebf4e0e61eac96ab8490d3830f35953a8e9575/src/main/java/io/github/cadiboo/nocubes/network/S2CRemoveTerrainSmoothable.java#L45-L65
-
How do I make my custom tool be repaired with vanilla items?
Cadiboo replied to epicool's topic in Modder Support
Use Block#asItem. Blocks are in net.minecraft.block.Blocks. -
Failed to synchronize registry Data from server
Cadiboo replied to Hectorlm's topic in Support & Bug Reports
Thats your problem. The cause of this problem is that you have betteranimalsplus-1.14.4-8.1.0.jar on the server and betteranimalsplus-1.14.4-8.0.0.jar on the client -
[1.15.1] Checking if a bounding box collides with any solid blocks
Cadiboo replied to tuku747's topic in Modder Support
I would look at the methods in IWorld and IWorld reader that deal with collision shapes. I’m not sure if they’ve been renamed/unmapped in 1.15.1. Here’s some 1.14.4 code that uses them https://github.com/Cadiboo/NoCubes/blob/2cebf4e0e61eac96ab8490d3830f35953a8e9575/src/main/java/io/github/cadiboo/nocubes/client/ClientEventSubscriber.java#L417-L424- 1 reply
-
- 1
-
You can also use GL state and BlockRendererDispatcher#renderBlockState to achieve this probably more cleanly.
-
You would change the texture and have the UVs remain constant.
-
I got a crash and i couldnt find anyting about it
Cadiboo replied to chicken_soldier's topic in Support & Bug Reports
Thats the cause of your issue -
You can just change the texture based on some conditions each time you render? Overriding getEntityTexture allows you to do this. Entities are each rendered once per frame.
-
Looking at the pixel coordinates in an image viewer and then using those values in code. And some trial + error.
-
[1.15.0] How to make a mod in Minecraft 1.15.0?
Cadiboo replied to DragonITA's topic in Modder Support
McJty might have. It's pretty simple, just register an EntityType for your entity in the appropriate registry event, have an entity class (a class that extends Entity) and register your renderer in the client setup event. There is an example of how to register an entity renderer in my example mod. -
Why not make a backup of your saves...?
-
[1.15.0] How to make a mod in Minecraft 1.15.0?
Cadiboo replied to DragonITA's topic in Modder Support
I’ve got tutorials and an example mod -
You can do this by rendering a quad to the screen in the last the render in game event. Look at GuiIngameForge
-
[1.14.4] Is graphical mod customization supported?
Cadiboo replied to bsrgin's topic in Modder Support
Here is how I make my own config in my mod. And this is my progress on the standard config GUI (GitHub link for the source if you want to steal it) -
Move the JEI items like the thermal machinery GUI
Cadiboo replied to Edivad99's topic in Modder Support
If I were you I would look at the thermal machinery code -
[1.14.4] Is graphical mod customization supported?
Cadiboo replied to bsrgin's topic in Modder Support
I’m currently working on reimplementing the config GUI from 1.12.2 in Forge for all mods. However, you can currently make your own config GUI from scratch by registering your own config GUI extension point on your mod loading context (on the client distribution only!) -
You shouldn’t use the key input event, you should use the client tick event IIRC. https://github.com/Cadiboo/NoCubes/blob/2cebf4e0e61eac96ab8490d3830f35953a8e9575/src/main/java/io/github/cadiboo/nocubes/client/ClientEventSubscriber.java#L89-L223
-
You probably want to use hex instead of decimal for your color codes and masks. -67108864 -> 0xFC000000 -16777216 -> 0xFF000000 16579836 -> 0xFCFCFC It makes it a lot easier to understand as colours are packed 0x(AA)RRGGBBx
-
I would look at how vanilla does it. There is probably an interface or class that breedable animals implement/extend that controls this behaviour.
-
[1.14.4] Crafting table GUI not opening properly
Cadiboo replied to Zethariel's topic in Modder Support
Don’t simply copy the vanilla code. In most cases the code is based on 10 years of patches and forge almost always provides a better modder-friendly replacement for the vanilla method of doing things. I believe that your code is not working because the crafting table container does an instanceof check to make sure that there is a crafting table at the location the container is being opened (your crafting table is not/does not extend the vanilla crafting table and therefore this check fails) -
You would have to color different vertices differently based on the length they are through the string to have that type of gradient. You would need extra code to store the length of the string that you’re drawing and to use that data in the render char method