-
Posts
3624 -
Joined
-
Last visited
-
Days Won
58
Everything posted by Cadiboo
-
[1.12.2] Two Questions about Crafting Recipes
Cadiboo replied to H_SerhatY's topic in Modder Support
32767 is the maximum value of a signed small integer (stored in 2 bytes) http://www.tocker.ca/2014/05/30/how-important-is-it-to-use-2-byte-and-3-byte-integers.html -
[1.12.2] Two Questions about Crafting Recipes
Cadiboo replied to H_SerhatY's topic in Modder Support
You have to specify metadata. If you don’t want metadata I think you can put in 32767 (2^15-1) aka maximum value of 2 bytes (correct me if I’m wrong). you specify data like so "W": { "item": "minecraft:planks", "data": 0 } That’s not the correct ID. I think it’s minecraft:dye, data:4 or something -
Some Ghost-Block-Rendering Related Questions [1.12.2]
Cadiboo replied to Tschipp's topic in Modder Support
http://lessie2d.tumblr.com/post/28673280483/opengl-blend-function-cheat-sheet-well-this-is https://www.andersriggelsen.dk/glblendfunc.php Have a look at those, but you’ll be doing a lot of work by trial & error in the debugger. feel free to look at all my rendering code here https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/client/render/tileentity/TESRAssemblyTable.java (Hologram part) https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/util/Utils.java (renderStackWithColor and renderStackIntoGUIWithColor) -
There’s part of the forge docs dedicated to this exact issue I believe? Have a look at the docs on capabilities
-
My discord is Cadiboo#8887. I'm still making the mod, but you can have a look at some test versions here
-
My bad, use that ^^^
-
check if the registry names match? or better if stack.getItem == ForgeRegistries.ITEMS.getValue("Minecraft", "iron_ingot")
-
@Yezgromafic My Mod has guns just like that, its still in development though. To make a gun Copy the bow code to a new item. Register the item with Registry Events. Make an entity (bullet) Register that entity modify the item (bow) code to shoot that entity instead of arrows
-
Ok thanks, I'm going to use your block state generator.
-
Sorry, did my maths wrong. Aren't forge block states depreciated?
-
I have 6^6 possible variants
-
I've found this thread, but I want to do it without having the model be associated with a variant of an item
-
I'm trying to load a JSON Block Model (/models/block/wire_extension.json), set texture variables from the JSON in code and then render the model with translation & rotations. What would the best way to do this be?
-
Block texture changing depending on vision?
Cadiboo replied to Cesar Codes's topic in Modder Support
From where? -
Block texture changing depending on vision?
Cadiboo replied to Cesar Codes's topic in Modder Support
do you know how you would load & render these (json) models? -
Didn't know this, sorry
-
How to make simple, smooth 2d animation? (detailed)
Cadiboo replied to BobieBobie's topic in Modder Support
have a look at this, https://github.com/Cadiboo/WIPTech/blob/d5504c15d23c66b220064c93ce8fa27c3c457fd0/src/main/java/cadiboo/wiptech/util/Utils.java#L336-L389 It might not be exactly what your looking for, but its 99% perfect and I spent a lot of time on it so I can say that it works very well Sorry, read the post wrong. Its probably only about 20% what you want but its still useful -
Honestly, ditch proxies until you've actually got a need for them, when your mod is a lot more advanced. Use Registry Events for block & registration and model registration and pretty much everything else, its what everyone else uses and its the correct way
-
Contact the author of the mod? Not Forge
-
I personally can't help, but take a look at https://github.com/jabelar/ExampleMod-1.12/search?q=Armor&unscoped_q=Armor https://github.com/SlimeKnights/TinkersConstruct https://github.com/aidancbrady/Mekanism My old mod doesn't have armour, but it does have working models https://github.com/Cadiboo/WIPTech/tree/master/src/main/java/cadiboo/wiptech/client/model https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/client/render/tileentity/TESRWire.java https://github.com/Cadiboo/WIPTech/blob/master/src/main/java/cadiboo/wiptech/client/render/tileentity/TESRTurbine.java
-
I think this is the right place for a bug post? So I generated a new debug world and everything was fine for about 2-3 seconds then the game crashed with this error java.lang.NullPointerException: Tesselating block model Mods being used: WIPTech Alpha (my mod) https://github.com/Cadiboo/WIPTechAlpha https://github.com/Cadiboo/WIPTechAlpha/commit/2294505e124e5cc514de90a0d9dd6f4583af0c4b at time of crash crash gist https://gist.github.com/Cadiboo/4ffa8b39aed9ba7a1bc1d7dad9401d86
-
have you tried looking at the values in the debugger? your tooltip code may not be picking up the values
-
please post your debug log, which mods you are using and the JVM arguments you are using