Jump to content

Recommended Posts

Posted

So I am following a tutorial by Modding by Kaupenjoe the Minecraft forge modding for 1.19 and am on the blockstates video, number 8, and when I place down a block in my world it is the not loaded texture, pink and black block , and also if you watch the video it shouldn't say anything in chat when I right click but it does. My GitHub page with all my code will be included so you can see it and screen shots from Minecraft too.

 

GitHub page:

https://github.com/ShadowBoyCat/forge-1.19-41.1.0-mdk

 

Minecraft screenshot:

Minecraft screen shot not work :(

 

Posted

If you are going to code a mod, you need to learn how to debug problems.

One of the most important tools is the logs/debug.log - another is the debugger in your IDE

 

Your debug.log has the following errors for your blockstates:

Quote

[21Oct2022 15:56:21.260] [Worker-Main-2/WARN] [net.minecraft.client.resources.model.ModelBakery/]: Exception loading blockstate definition: 'tutorialmod:blockstates/gaze_lantern.json' in resourcepack: 'Mod Resources' for variant: 'lit=false': Unknown blockstate property: 'lit'
[21Oct2022 15:56:21.260] [Worker-Main-2/WARN] [net.minecraft.client.resources.model.ModelBakery/]: Exception loading blockstate definition: 'tutorialmod:blockstates/gaze_lantern.json' in resourcepack: 'Mod Resources' for variant: 'lit=true': Unknown blockstate property: 'lit'
[21Oct2022 15:56:21.260] [Worker-Main-2/WARN] [net.minecraft.client.resources.model.ModelBakery/]: Exception loading blockstate definition: 'tutorialmod:blockstates/gaze_lantern.json' missing model for variant: 'tutorialmod:gaze_lantern#'
 

i.e. your blockstates file references the property "lit" which doesn't exist in your block's property.

This is because what you are registering with that name isn't your GazeLantern block

https://github.com/ShadowBoyCat/forge-1.19-41.1.0-mdk/blob/9c9c3a42e921bd6ffdfa0a234042013ee3a11d0b/src/main/java/net/anchit/tutorialmod/blocks/ModBlocks.java#L46

 

Unrelated: You also seem to have to broken the mineable/shovel block tag by adding a broken/empty file.

Quote

[21Oct2022 15:56:56.112] [Worker-Main-5/ERROR] [net.minecraft.tags.TagLoader/]: Couldn't read tag list minecraft:mineable/shovel from minecraft:tags/blocks/mineable/shovel.json in data pack main
java.lang.RuntimeException: Not a JSON object: null
 

 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Posted
2 hours ago, soltair said:

the forge mod installer in windows errors

This page isn’t working

adfoc.us redirected you too many times.

Try clearing your cookies.

ERR_TOO_MANY_REDIRECTS

 

url: https://files.minecraftforge.net/net/minecraftforge/forge/

how do i get past this, i have removed ad blocking and still get the same message. 

thanks

This thread you posted in is totally unrelated, but I've seen people suggest downloading forge using a browser other than google chrome, as it seems to be having issues with the adfocus site

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.