Jump to content

Recommended Posts

Posted (edited)

I am trying to create a custom bow, but the only texture that I can get to show up is the standby. Once I start pulling back, the pink textureless box shows up.

 

These are my json and bow class:

 

 

fizzyo_bow.json

  Reveal hidden contents

 

 

FizzyoBow.java

 

  Reveal hidden contents

 

 

If anyone has any ideas I would appreciate it!

Edited by camcraft1234
Posted
  On 8/9/2018 at 12:58 PM, camcraft1234 said:

this.addPropertyOverride(new ResourceLocation("pull"), new IItemPropertyGetter() { @SideOnly(Side.CLIENT) public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) { return entityIn == null ? 0.0F : (entityIn.getActiveItemStack().getItem() != FizzyoItems.BOW ? 0.0F : (float) (stack.getMaxItemUseDuration() - entityIn.getItemInUseCount()) / 20.0F); } }); this.addPropertyOverride(new ResourceLocation("pulling"), new IItemPropertyGetter() { @SideOnly(Side.CLIENT) public float apply(ItemStack stack, @Nullable World worldIn, @Nullable EntityLivingBase entityIn) { return entityIn != null && entityIn.isHandActive() && entityIn.getActiveItemStack() == stack ? 1.0F : 0.0F; } });

Expand  

probably to do with this code google the problem and there should be some reasonable solutions. the code has to do with making the bow have different textures while pulling which I assume you don't want. You can probably just get rid of it. 

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted
  On 8/9/2018 at 1:59 PM, Cadiboo said:

probably to do with this code google the problem and there should be some reasonable solutions. the code has to do with making the bow have different textures while pulling which I assume you don't want. You can probably just get rid of it. 

Expand  

Thank you for replying but I've tried commenting it out, and the problem was the same. I do want the different textures to show up while pulling the arrow back in the same way as the vanilla bow

Posted
  On 8/9/2018 at 2:22 PM, camcraft1234 said:

Thank you for replying but I've tried commenting it out, and the problem was the same. I do want the different textures to show up while pulling the arrow back in the same way as the vanilla bow

Expand  

Post your logs please

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

In your Itemclass you create Property Overrides without giving them textures in your model file. Look at the Vannila Bow

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted
  On 8/9/2018 at 3:11 PM, _Cruelar_ said:

In your Itemclass you create Property Overrides without giving them textures in your model file. Look at the Vannila Bow

Expand  

I'm not sure I understand what you mean. I thought that in my model file 

 

  On 8/9/2018 at 12:58 PM, camcraft1234 said:

"model": "fizzyo:items/fizzyo_bow_pulling_0"

Expand  

was referring to my texture fizzyo_bow_pulling_0.png

Posted
  On 8/9/2018 at 3:28 PM, camcraft1234 said:

was referring to my texture fizzyo_bow_pulling_0.png

Expand  

Nope, it refers to the file fizzo:models/items/fizzyo_bow_pulling_0.json.

Every override needs an own model file

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted (edited)
  On 8/9/2018 at 3:34 PM, _Cruelar_ said:

Every override needs an own model file

Expand  

Ive also got models for fizzyo_bow_pulling_0 1 and 2

 

  Reveal hidden contents

 

Edited by camcraft1234
Posted
  On 8/9/2018 at 3:37 PM, camcraft1234 said:

{ "parent": "item/generated", "textures": { "layer0": "fizzyo:items/fizzyo_bow_pulling_0" }}

Expand  

should be enough.

But is your path in your models directory  items or item? Cause this

  On 8/9/2018 at 3:28 PM, camcraft1234 said:

"model": "fizzyo:items/fizzyo_bow_pulling_0"

Expand  

refers to items

My Projects:

Cruelars Triforcemod (1.12 release; 1.14 alpha soon coming)

 

Important:

As my mod is on at least 10 different third party sites without my permission, I want to warn you about that with a link to StopModReposts

Posted

I am an idiot....

 

Since I thought it was referring to the texture rather than the json, i put 

  On 8/9/2018 at 12:58 PM, camcraft1234 said:

"model": "fizzyo:items/fizzyo_bow_pulling_0"

Expand  

and it needed to be item rather than items because the models are in models/item

 

 

Thank you for pointing that out! Dumb mistake on my part

Posted
  On 8/9/2018 at 4:17 PM, _Cruelar_ said:

No Problem happens to me also sometimes

Expand  

All will be solved in 1.13 when their dropping all the extraneous “s”s 

About Me

  Reveal hidden contents

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

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



×
×
  • Create New...

Important Information

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