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.

com.google.gson.stream.MalformedJsonException: Unterminated object at line 18 column 10 path $.key.O

Featured Replies

Posted

So i was trying to code a crafting recipe and i was using minecraft sticks in it, Well i made the crafting recipe and here it is
 

{
    "type": "minecraft:crafting_shaped",
    
    "pattern":
    [
        " O ",
        " O ",
        " S "
    ],
    
    "key":
    {
        "O":
        {
            "item": "ss:obsidian_shard"
        }

        "S":
        {
            "item": "minecraft:stick"
        }
    },
    
    "result":
    {
        "item": "ss:obsidianshard_sword",
        "count": 1
    }
}
I'm pretty sure i put everything right but it keeps saying that it's wrong, If someone knows how to fix this i would love to know.

4 minutes ago, J0WAY said:

Expecting comma or }, not string. It thinks when i do "S" It's for string

Actually, it's telling you that there should be a comma or } there instead of a string. "S" is a string, and there should be a comma there instead, because you're currently missing one.

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

  • Author

O, Well would i replace the S with a } because that makes no sense, Also sorry if i am wasting your time i'm just new to coding so i want to make sure i'm getting my information right. and the "S" Is there for stick 

7 minutes ago, J0WAY said:

Well would i replace the S with a } because that makes no sense

Actually, I meant that you should add a comma into the place where you're missing one (right before "S"). "O" is currently an unterminated object, because it doesn't have a comma separating it from "S".

Fancy 3D Graphing Calculator mod, with many different coordinate systems.

Lightweight 3D/2D position/vector transformations library, also with support for different coordinate systems.

  • Author

Yes okay it does work thank you, I did read that message but for some reason i was thinking, Well why would i need it there but now i know.

4 minutes ago, J0WAY said:

Yes okay it does work thank you, I did read that message but for some reason i was thinking, Well why would i need it there but now i know.

You should also get a json editor plugin for your IDE so this doesnt happen again. 

VANILLA MINECRAFT CLASSES ARE THE BEST RESOURCES WHEN MODDING

I will be posting 1.15.2 modding tutorials on this channel. If you want to be notified of it do the normal YouTube stuff like subscribing, ect.

Forge and vanilla BlockState generator.

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.