Posted October 2, 20196 yr 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.
October 2, 20196 yr Author Expecting comma or }, not string. It thinks when i do "S" It's for string when it's for stick how do i fix that?
October 2, 20196 yr 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.
October 2, 20196 yr 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
October 2, 20196 yr 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.
October 2, 20196 yr 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.
October 2, 20196 yr 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.