Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

so basicaly i was trying to mod 1.15
i made a block texture and foudn the code to make it work
thing is it doesnt work
i dont know why
but i have found an error when i load the game
[20:27:39] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tm:blockstates/obsidium.json' missing model for variant: 'tm:obsidium#'
[20:27:39] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tm:blockstates/obsidium.json' in resourcepack: 'Mod Resources': Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium
[20:27:40] [Server-Worker-1/WARN] [minecraft/ModelBakery]: Unable to load model: 'tm:obsidium#inventory' referenced from: tm:obsidium#inventory: net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium
anyone know what the problem could be.
this is my first time modding so sorry if i dont understand everything you say
the model is obviously the problem but idk what could be wrong with it
i can send you the code if you need it

 

Edited by CodeLock

Howdy

Quote

net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium

don't use capital letters in your namespace

-TGG

  • Author
5 hours ago, diesieben07 said:

Also change your mod ID! "tm" is way too short and I have in fact seen "tm" used multiple times on this forum already.

this is just a test mod no one else is gonna use it so i just used tm or test mod so thats not a problem but ill be sure to keep that in mind if i make another mod
 

 

6 hours ago, TheGreyGhost said:

Howdy

don't use capital letters in your namespace

-TGG

 wahts a name space?
is it the TM?

 

36 minutes ago, CodeLock said:

this is just a test mod no one else is gonna use it so i just used tm or test mod so thats not a problem but ill be sure to keep that in mind if i make another mod
 

 

 wahts a name space?
is it the TM?

 

Something in this, I'd have to see the code to know what:

 

14 hours ago, CodeLock said:

net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium

Anyway, that's your error.

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

14 hours ago, CodeLock said:

Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium

In the extremely unlikely case that you can't read simple regex, a-z and A-Z are different things.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

  • Author
8 minutes ago, Draco18s said:

In the extremely unlikely case that you can't read simple regex, a-z and A-Z are different things.

i know those 2 are diffrent i just dont see where the error is. im not too good at java coding
im much better at python or html5/css

11 minutes ago, Novârch said:

Something in this, I'd have to see the code to know what:

 

Anyway, that's your error.

how do i send the code and waht part of the code should i send?

8 minutes ago, CodeLock said:

im not too good at java coding
im much better at python or html5/css

No one cares.

 

8 minutes ago, CodeLock said:

how do i send the code

If it's short, send it in as a spoiler here, if it's long(> 100 lines), send it as a GitHub gist.

8 minutes ago, CodeLock said:

waht part of the code should i send?

Send this:

15 hours ago, CodeLock said:

'tm:blockstates/obsidium.json'

 

Edited by Novârch

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

  • Author
2 minutes ago, Novârch said:

If it's short, send it in as a spoiler here, if it's long(> 100 lines), send it as a GitHub gist.

Send this:

{ "variants": { "": { "model": "TM:block/obsidium" } } }
thats all thats in there im following a tutorial
do i just change TM to tm?

 

Edited by CodeLock

7 minutes ago, CodeLock said:

{ "variants": { "": { "model": "TM:block/obsidium" } } }
thats all thats in there im following a tutorial

That's bad, try something like this:

Spoiler

{
    "parent": "block/cube_all",
    "textures": {
        "all": "examplemod:blocks/example_block"
    }
}

 

*Edit: Yes, change the TM

Edited by Novârch

It's sad how much time mods spend saying "x is no longer supported on this forum. Please update to a modern version of Minecraft to receive support".

The json has nothing to do with the error. (*edit: besides the modid being wrong because it's caps)

The error is because he's using caps in his modid.

 

He showed a blockstate, and you posted a model, they're 2 different things for 2 different purposes.

Edited by Ugdhar

  • Author
8 minutes ago, Novârch said:

That's bad, try something like this:

  Hide contents


{
    "parent": "block/cube_all",
    "textures": {
        "all": "examplemod:blocks/example_block"
    }
}

 

 

it didnt work
i got a new error

Spoiler
[13:05:12] [Server-Worker-3/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tm:blockstates/obsidium.json' missing model for variant: 'tm:obsidium#'
[13:05:12] [Server-Worker-3/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'tm:blockstates/obsidium.json' in resourcepack: 'Mod Resources': com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $.
[13:05:13] [Server-Worker-3/WARN] [minecraft/ModelBakery]: Unable to load model: 'tm:obsidium#inventory' referenced from: tm:obsidium#inventory: net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium


 

Edited by CodeLock

  • Author
7 minutes ago, Ugdhar said:

The json has nothing to do with the error. (*edit: besides the modid being wrong because it's caps)

The error is because he's using caps in his modid.

 

He showed a blockstate, and you posted a model, they're 2 different things for 2 different purposes.

it worked found it this wasnt the only place i put capitals in names space sorry for the trouble i caused


 

Edited by CodeLock

3 hours ago, CodeLock said:

net.minecraft.util.ResourceLocationException: Non [a-z0-9_.-] character in namespace of location: TM:block/obsidium

Well. You still have this one.

 

But you're right, you have another too:

3 hours ago, CodeLock said:

com.google.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 3 path $.

Your json file has invalid syntax.

https://jsonlint.com/

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

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...

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.