Jump to content

Recommended Posts

Posted (edited)

I made a new entity called SummonedZombie that inherits most of the normal zombie's code. Everything works except for the missing texture on my SummonedZombie model in-game (shows as purple and black). I've checked the directory and file names many times, I don't see anything wrong with them.

Could someone please tell me what I'm doing wrong? Thanks.

 

  Reveal hidden contents
  Reveal hidden contents
  Reveal hidden contents
  Reveal hidden contents

 

Edited by ScootMcShoot
Posted

Post your log

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
  Reveal hidden contents

 

Posted

Here is the directory where the image is located, copy and pasted from my file explorer:

C:\Users\mccur\Desktop\Minecraft Modding\ScootsNecromancyMod\src\main\resources\assets\scootsnm\textures\entities\summoned_zombie

I don't see any issues with it.

 

I also attached a screenshot of the file in the directory. 

For the purposes of this post, I took the zombie.png from the 1.12.2.jar, renamed it summoned_zombie.png, and put it in the same directory to be absolutely sure that there was nothing wrong in the image format of my original file: this still returns a missing texture in-game.

exampleImage.png

Posted

Yes, the file is visible in Eclipse. I just added the full directory to the builder .id:

 

public static final Set<EntityEntry> SET_ENTITIES = ImmutableSet.of(
            EntityEntryBuilder.create()
            .entity(EntitySummonedZombie.class)
            .id(new ResourceLocation("scootsnm", ":textures/entities/summmoned_zombie/summoned_zombie.png"), 0)
            .name("summoned_zombie")
            .tracker(64, 1, false)
            .build()
            );

 

Same problem, although now I get this message whenever I load the world:

errorMessage.png

Posted
  On 5/22/2019 at 10:02 AM, ScootMcShoot said:

id(new ResourceLocation("scootsnm", ":textures/entities/summmoned_zombie/summoned_zombie.png"), 0)

Expand  

... this is not how you make a resource location. That is also not the place for the texture, that is for the registry name of the entity. 

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

Ok, I changed it back. So I've been making my resource locations incorrectly? Is that why I've been getting missing textures? I've been following examples online, and I can't find anything wrong with them.

Posted
  On 5/22/2019 at 10:57 AM, Cadiboo said:

new ResourceLocation("scootsnm", ":textures/entities/summmoned_zombie/summoned_zombie.png")

Expand  

Remove the “:”.

 

 

  On 5/22/2019 at 10:57 AM, Cadiboo said:

id(new ResourceLocation("scootsnm", ":textures/entities/summmoned_zombie/summoned_zombie.png"), 0)

Expand  

 

  On 5/22/2019 at 10:57 AM, Cadiboo said:

This is also not the place for the texture, it’s for the registry name of the entity. 

Expand  

Creepers aren’t called “minecraft::textures/entities/creeper.png”,they’re called “minecraft:creeper”

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.