Jump to content

Recommended Posts

Posted

I'm looking for custom armor model tutorials for 1.14.4, but none are showing up besides for ones that are for 1.12.2. I saw comment on one of them that the process as to implementing custom armor hasn't change, but as following the video things aren't super the same. i'm just looking for a guide on how to do this.

Posted

Create a Model (and texture for it) that extends BipedModel<T extends LivingEntity> for your armor piece.

Override getArmorModel and getArmorTexture in your armor item class.

 

Once you've started, if you have issues, come back here and make sure you post code, logs, what you are trying to achieve (looks/effect/etc), and what is actually happening. :)

  • Thanks 1
Posted
  On 4/9/2020 at 9:43 AM, Ugdhar said:

Create a Model (and texture for it) that extends BipedModel<T extends LivingEntity> for your armor piece.

Override getArmorModel and getArmorTexture in your armor item class.

Expand  

So I made my model in blockbench, do I name the model identifier anything?

Posted (edited)
  On 4/9/2020 at 9:43 AM, Ugdhar said:

Once you've started, if you have issues, come back here and make sure you post code, logs, what you are trying to achieve (looks/effect/etc), and what is actually happening. :)

Expand  

I'm running into this issue in the armor Item class. I'm following a 1.12 video, cause I would be completely lost without reference, but anyways here it is. 

 

https://paste.dimdev.org/ededipubok.java

 

I have no clue what baked Model does, and I'm just a lil lost

 

And I dunno where to put my armor model as well, do I make a new package in models and name it armor?

 

 

 

 

Edited by Babelincoln1809
Posted

I'm not sure about using IModel, I've never done that.

When I was tinkering, the model I had just extended BipedModel<LivingEntity>.

In the armor item class, used that model in the getArmorModel method.

Posted
  On 4/9/2020 at 10:07 PM, Ugdhar said:

When I was tinkering, the model I had just extended BipedModel<LivingEntity>.

In the armor item class, used that model in the getArmorModel method.

Expand  

Yeah, my custom armor class is still giving me issues. The actual model for my armor extends BipedModel<LivingEntity>, but still no clue on what's wrong with the armor class

Posted
  On 4/9/2020 at 10:21 PM, Babelincoln1809 said:

Yeah, my custom armor class is still giving me issues.

Expand  

What kind of issues? Logs help, screenshots also if it's something visual.

If you have your code on github that makes it easier to share/debug with other people too. :)

Posted
  On 4/9/2020 at 10:31 PM, Ugdhar said:

What kind of issues? Logs help, screenshots also if it's something visual.

If you have your code on github that makes it easier to share/debug with other people too. :)

Expand  

Here is the log. I do have incomplete code though cause I'm still stumped with the custom armor class.

https://paste.dimdev.org/gobubuhuka.sql

 

Here is my armor class, still stumped on the errors

https://paste.dimdev.org/kuyuyutama.java

 

Here is the model

https://paste.dimdev.org/ejavifujug.java

 

I'll look into setting up an account for github, but I think my only issue is the armor class, and possibly where to put the model.java

Posted
  Quote

public class ArcherArmor extends ArmorItem BipedModel{

Expand  

I don't think you want BipedModel there

 

Your IDE should have given you an error about that, my workspace is 1.15.2, but I don't think they'd be that different. Also it is saying it has compile errors (which your IDE should have warned you about) because the super constructor you call doesn't exist.

  Quote

The constructor ArcherArmor(ArmorMaterialList, EquipmentSlotType, Item.Properties) is undefined

Expand  

and this error happens in code that you didn't share:

  Quote

[09Apr2020 18:37:32.058] [Client thread/ERROR] [net.minecraftforge.fml.javafmlmod.FMLModContainer/LOADING]: Caught exception during event RegistryEvent.Register<minecraft:item> dispatch for modid projectdawn

Expand  

that's why a github is helpful :) Shows the big picture!

Posted
  On 4/10/2020 at 8:35 AM, Babelincoln1809 said:

Anywhere on GitHub I can reference code for this?

Expand  

Possibly, but I don't know for sure, I haven't looked for or seen anything

I meant more that if your code was on github, it would be easier to see where the errors are.

Also, what IDE are you using? I find it concerning that it didn't warn you about compile errors before attempting to run it anyway.

Posted (edited)
  On 4/10/2020 at 9:38 AM, Ugdhar said:

what IDE are you using? I find it concerning that it didn't warn you about compile errors before attempting to run it anyway.

Expand  

Eclipse

 

I have a GitHub account set up, I just need to upload my workspace

Edited by Babelincoln1809

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • You will find the crash-report or log in your minecraft directory (crash-report or logs folder)
    • Use a modpack which is using these 2 mods as working base:   https://www.curseforge.com/minecraft/modpacks/life-in-the-village-3
    • inicie un mundo donde instale Croptopia y Farmer's Delight, entonces instale el addon Croptopia Delight pero no funciona. es la version 1.18.2
    • Hello all. I'm currently grappling with the updateShape method in a custom class extending Block.  My code currently looks like this: The conditionals in CheckState are there to switch blockstate properties, which is working fine, as it functions correctly every time in getStateForPlacement.  The problem I'm running into is that when I update a state, the blocks seem to call CheckState with the position of the block which was changed updated last.  If I build a wall I can see the same change propagate across. My question thus is this: is updateShape sending its return to the neighbouring block?  Is each block not independently executing the updateShape method, thus inserting its own current position?  The first statement appears to be true, and the second false (each block is not independently executing the method). I have tried to fix this by saving the block's own position to a variable myPos at inception, and then feeding this in as CheckState(myPos) but this causes a worse outcome, where all blocks take the update of the first modified block, rather than just their neighbour.  This raises more questions than it answers, obviously: how is a different instance's variable propagating here?  I also tried changing it so that CheckState did not take a BlockPos, but had myPos built into the body - same problem. I have previously looked at neighbourUpdate and onNeighbourUpdate, but could not find a way to get this to work at all.  One post on here about updatePostPlacement and other methods has proven itself long superceded.  All other sources on the net seem to be out of date. Many thanks in advance for any help you might offer me, it's been several days now of trying to get this work and several weeks of generally trying to get round this roadblock.  - Sandermall
    • sorry, I might be stupid, but how do I open it? because the only options I have are too X out, copy it, which doesn't work and send crash report, which doesn't show it to me, also, sorry for taking so long.
  • Topics

×
×
  • Create New...

Important Information

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