Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 09/16/20 in all areas

  1. I got into minecraft modding recently and was surprised by how hard it is to find useful up-to-date information. Because of that, I decided to document my learning journey and write a book about Minecraft modding for beginners. It applies to Minecraft 1.16.1 and the latest version of forge. Keep in mind it is still a work in progress. More chapters will be added in the coming days. Suggestions and questions also are welcomed. Link: https://thebookofmodding.ml/
    1 point
  2. Note the Minecraft End-User License Agreement: That link breaks the Minecraft EULA/TOS, and is most likely very illegal. Do not recommend this in the future, or there will be worse repercussions. The actual fix for this problem would likely be to change the encoding of the language json file. UTF-8 BLE does not encode these characters well, but the game is equipped to handle more sophisticated encodings. UTF-16 should work.
    1 point
  3. Again, you did not create an object of your custom_model class, with the last thing you added you now created a function which name is custom_model, which returns null. Then you are returning this function from getArmorModel, so that in the end getArmorModel returns null...this way your armor will never show up, so delete the last line of code you added and listen. To instantiate (create in other terms) a custom_model object you need to use new custom_model(a_float_value) , where a_float_value, as i said above, is a float number. Forget about caching at the moment...
    1 point
  4. The default color is returned for layer1 because you are returning 10511680 in getItemColor() if the layer is not 0. Try changing the last return to -1.
    1 point
  5. For reference, you should cache the model instead of recreating it every tick probably in some client class that's isolated from the item class. You could then reference it using DistExecutor if I remember correctly.
    1 point
  6. return LivingEntity; 1- You don't have to return LivingEntity! You have to return your custom_model class. 2- You have to return an instance of the class. Something like this: return new custom_model(your constuctor argument); I'm literally giving you the code, why can't you understand???
    1 point
  7. That's probably because biped model doesn't extend living entity. You are also interpreting generics backwards. You need a class that is an instance of BipedModel, not the opposite way around. Please take the time to learn java if you haven't already. It will definitely help when doing all this in the future.
    1 point
×
×
  • Create New...

Important Information

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