Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. 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
  2. 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
  3. 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)
  4. There’s part of the forge docs dedicated to this exact issue I believe? Have a look at the docs on capabilities
  5. My discord is Cadiboo#8887. I'm still making the mod, but you can have a look at some test versions here
  6. My bad, use that ^^^
  7. check if the registry names match? or better if stack.getItem == ForgeRegistries.ITEMS.getValue("Minecraft", "iron_ingot")
  8. @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
  9. Ok thanks, I'm going to use your block state generator.
  10. Sorry, did my maths wrong. Aren't forge block states depreciated?
  11. I have 6^6 possible variants
  12. I've found this thread, but I want to do it without having the model be associated with a variant of an item
  13. 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?
  14. do you know how you would load & render these (json) models?
  15. Didn't know this, sorry
  16. 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
  17. 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
  18. Contact the author of the mod? Not Forge
  19. 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
  20. 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
  21. have you tried looking at the values in the debugger? your tooltip code may not be picking up the values
  22. Yep, sorry should have read up in the thread. Honestly computers should ship with a JSON parser built in these days
  23. please post your debug log, which mods you are using and the JVM arguments you are using
  24. I recommend Atom or just straight using your Java IDE, on both Eclipse and IntelliJ you can install plug-ins to parse different types of files such as JSON and they can also do syntax highlighting & error checking
×
×
  • Create New...

Important Information

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