Jump to content
  • Home
  • Files
  • Docs
Topics
  • All Content

  • This Topic
  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Item name and texture not showing up VER 1.16.4
Currently Supported: 1.16.X (Latest) and 1.15.X (LTS)
Sign in to follow this  
Followers 2
GiovanniStella

Item name and texture not showing up VER 1.16.4

By GiovanniStella, December 3, 2020 in Modder Support

  • Reply to this topic
  • Start new topic

Recommended Posts

GiovanniStella    1

GiovanniStella

GiovanniStella    1

  • Tree Puncher
  • GiovanniStella
  • Members
  • 1
  • 15 posts
Posted December 3, 2020 (edited)

Hello, I started modding a few days ago and now I'm trying to add a new Item just for testing but for some reason the name on en_us.json, and my texture are not showing up in game. It only shows the java name of the item like (item.keanumod.card). I have tried multiple things but none of them worked. Tried :

1- Changing text the text file enconding. (to UFT-8)

2- Changing workspace in Eclipse

3- Downloaded IntelliJ, and the same thing happened

4- I did re-write the whole again, and it still did not work.

5- And tried to change the text format in .jsons to old ones like ""="" instead of "":"" in en_us.json

This is my en_us.json : 

{
    "item.keanumod.card":"Delayed Card"
}

=================================================================

card.json :

{
  "parent": "item/generated",
  "textures": {
    "layer0": "keanumod:items/card"
  }
}

==========================================================================

A print of my structure : https://prnt.sc/vv7bmj

============================================================================

latest log:

https://pastebin.pl/view/8b79ffa8

==============================================================================

Just to clarify, the item shows up on my world but withou any texture and named "item.keanumod.card". 

Thanks to anyone who did read, I would love some help. 

 

Edited December 3, 2020 by GiovanniStella
forgot the latest log
  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55115 posts
Posted December 3, 2020

Post the debug.log.

  • Quote

Share this post


Link to post
Share on other sites

GiovanniStella    1

GiovanniStella

GiovanniStella    1

  • Tree Puncher
  • GiovanniStella
  • Members
  • 1
  • 15 posts
Posted December 3, 2020
1 hour ago, diesieben07 said:

Post the debug.log.

It keeps saying that this log is too big to upload here, or even paste bin. Here can I post it?

So i uploaded it to my dropbox : 

https://www.dropbox.com/s/exr4td5tkzoczsj/debug.log?dl=0

Tell me if there's a better way for this.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55115 posts
Posted December 3, 2020

Can' tell from the log, it just says it can't find the file.

Post a Git repo of your mod.

  • Quote

Share this post


Link to post
Share on other sites

GiovanniStella    1

GiovanniStella

GiovanniStella    1

  • Tree Puncher
  • GiovanniStella
  • Members
  • 1
  • 15 posts
Posted December 3, 2020
51 minutes ago, diesieben07 said:

Can' tell from the log, it just says it can't find the file.

Post a Git repo of your mod.

First time uploading to github, is it right?

https://github.com/GigiTeddy/Keanumod

  • Quote

Share this post


Link to post
Share on other sites

zOnlyKroks    1

zOnlyKroks

zOnlyKroks    1

  • Stone Miner
  • zOnlyKroks
  • Members
  • 1
  • 65 posts
Posted December 3, 2020

That's .class files. Maybe post it again with .java files so we can read it properly.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55115 posts
Posted December 3, 2020

The MDK comes with a .gitignore file for a reason.

  • Quote

Share this post


Link to post
Share on other sites

GiovanniStella    1

GiovanniStella

GiovanniStella    1

  • Tree Puncher
  • GiovanniStella
  • Members
  • 1
  • 15 posts
Posted December 3, 2020
6 minutes ago, zOnlyKroks said:

That's .class files. Maybe post it again with .java files so we can read it properly.

I posted it again as .jar, but its the same as before. Im uploading as a txt so you guys can see it.

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55115 posts
Posted December 3, 2020

It should be neither .class, nor .jar nor .txt files.

Please simply create a git repository in your project root (where your build.gradle is) and push. The MDK comes with a .gitignore file which will ignore any unneeded files.

  • Quote

Share this post


Link to post
Share on other sites

GiovanniStella    1

GiovanniStella

GiovanniStella    1

  • Tree Puncher
  • GiovanniStella
  • Members
  • 1
  • 15 posts
Posted December 3, 2020
31 minutes ago, diesieben07 said:

It should be neither .class, nor .jar nor .txt files.

Please simply create a git repository in your project root (where your build.gradle is) and push. The MDK comes with a .gitignore file which will ignore any unneeded files.

Its my first time doing this, and i cannot believe i actually did it. Here it is : https://github.com/GigiTeddy/Test1

 

  • Quote

Share this post


Link to post
Share on other sites

kiou.23    5

kiou.23

kiou.23    5

  • Creeper Killer
  • kiou.23
  • Members
  • 5
  • 158 posts
Posted December 3, 2020
26 minutes ago, GiovanniStella said:

Its my first time doing this, and i cannot believe i actually did it. Here it is : https://github.com/GigiTeddy/Test1

 

Code Style 5

Don't create an ItemBase class, when registering call new Item, and pass the properties to the constructor. If you want to save a few keystrokes you can write a utility method that simply return the default ItemProperties that you want.

Additionally, you should be using Data Generators to generate the ItemModel files, if you want to know more about them, this comment has a few useful links that explain how to use them: https://forums.minecraftforge.net/topic/94402-generated/?tab=comments#comment-432933

 

  • Quote

Share this post


Link to post
Share on other sites

diesieben07    7597

diesieben07

diesieben07    7597

  • Reality Controller
  • diesieben07
  • Forum Team
  • 7597
  • 55115 posts
Posted December 3, 2020

You set showAsResourcePack to true, which means your mod will be its own resource pack, which needs to be separately enabled. If you enable it, your model works.

  • Quote

Share this post


Link to post
Share on other sites

GiovanniStella    1

GiovanniStella

GiovanniStella    1

  • Tree Puncher
  • GiovanniStella
  • Members
  • 1
  • 15 posts
Posted December 3, 2020
2 minutes ago, diesieben07 said:

You set showAsResourcePack to true, which means your mod will be its own resource pack, which needs to be separately enabled. If you enable it, your model works.

Dude, you are a LEGEND. Thank you so much, it worked. I don't actually remember writing it down but anyways. Thanks to everyone that posted here!

  • Quote

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

    • Insert image from URL
×
  • Desktop
  • Tablet
  • Phone
Sign in to follow this  
Followers 2
Go To Topic Listing



  • Recently Browsing

    No registered users viewing this page.

  • Posts

    • GenElectrovise
      What is the method to left click?

      By GenElectrovise · Posted 20 minutes ago

      There's probably something in or nearby to PlayerEntity (as a movement controller or something similar?) I'd start with searching my workspace for something along the lines of KeystrokeHandler or PlayerMovementController
    • Luis_ST
      [1.16.5] GameOverlay

      By Luis_ST · Posted 20 minutes ago

      I just want to render a overlay (i have creat a spyglass likt that from 1.17) and now i want to render the Overlay this is the code of the event i used: @SubscribeEvent(priority = EventPriority.HIGHEST) public static void RenderSpyglassOverlay(RenderGameOverlayEvent event) { PlayerEntity player = Minecraft.getInstance().player; int posX = event.getWindow().getScaledWidth() / 2; int posY = event.getWindow().getScaledHeight() / 2; if (player.getActiveItemStack().getItem() == CaveItems.SPYGLASS.get()) { RenderSystem.disableDepthTest(); RenderSystem.depthMask(false); RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F); RenderSystem.disableAlphaTest(); Minecraft.getInstance().getTextureManager().bindTexture(new ResourceLocation("cave:textures/misc/spyglass_scope.png")); Minecraft.getInstance().ingameGUI.blit(event.getMatrixStack(), posX - 128, posY - 128, 0, 0, posX * 2, posY * 2, 256, 256); RenderSystem.depthMask(true); RenderSystem.enableDepthTest(); RenderSystem.enableAlphaTest(); RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F); } } but the overlay looks like this: https://drive.google.com/file/d/15llZaiIqNWK7WRqcihIJY7oaAszkFKnn/view?usp=sharing so my question: 1 .how to render the game overlay translucent 2. how to set the outside of the overlay to black
    • GenElectrovise
      Server doesnt start

      By GenElectrovise · Posted 25 minutes ago

      Never heard of an error like this but what's your version.
    • Potatoe
      Minecraft server

      By Potatoe · Posted 1 hour ago

      ok
    • diesieben07
      Minecraft server

      By diesieben07 · Posted 1 hour ago

      This is a Forum for Forge, I would suggest you seek help elsewhere for Vanilla Minecraft.
  • Topics

    • Gubipe
      5
      What is the method to left click?

      By Gubipe
      Started 14 hours ago

    • Luis_ST
      0
      [1.16.5] GameOverlay

      By Luis_ST
      Started 20 minutes ago

    • BinAufGoogle
      3
      Server doesnt start

      By BinAufGoogle
      Started 18 hours ago

    • Potatoe
      4
      Minecraft server

      By Potatoe
      Started Sunday at 10:13 AM

    • Luis_ST
      4
      [1.16.5] Player Field of View

      By Luis_ST
      Started 2 hours ago

  • Who's Online (See full list)

    • Luis_ST
    • yumeji
    • Linky132
    • Leronus
    • Choonster
    • HowHow
    • diesieben07
    • Heliarco
    • GenElectrovise
    • Yagnap
    • hendrik
    • ElpisII
    • Beethoven92
    • zOnlyKroks
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Item name and texture not showing up VER 1.16.4
  • Theme

Copyright © 2019 ForgeDevelopment LLC · Ads by Longitude Ads LLC Powered by Invision Community