Skip to content

API8 Recipes #2236

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 30, 2020
Merged

API8 Recipes #2236

merged 1 commit into from
Sep 30, 2020

Conversation

Faithcaio
Copy link
Contributor

@Faithcaio Faithcaio commented Sep 21, 2020

SpongeAPI | SpongeCommon

RecipeRegistrations are saved as a datapack under:
<serverlocation>/world/datapacks/plugin-recipes/data/<pluginid>/recipes/<name>.json

When possible the recipes use vanilla syntax but sponge allows for more complex recipes too.
Vanilla Recipe Example:

{
    "type": "minecraft:crafting_shaped",
    "pattern": [
        "AAA",
        "ADA",
        "AAA"
    ],
    "key": {
        "A": {
            "item": "minecraft:polished_diorite"
        },
        "D": {
            "item": "minecraft:white_bed"
        }
    },
    "result": {
        "item": "minecraft:bedrock"
    }
}

Sponge Recipe Example:

{
    "type": "sponge:crafting_shaped",
    "pattern": [
        "ggg",
        "gbg",
        "ggg"
    ],
    "key": {
        "b": {
            "item": "minecraft:red_bed"
        },
        "g": {
            "item": "minecraft:polished_granite"
        }
    },
    "result": {
        "item": "minecraft:bedrock"
    },
    "sponge:result": {
        "ContentVersion": 1,
        "ItemType": "minecraft:bedrock",
        "Count": 1,
        "UnsafeDamage": 0,
        "UnsafeData": {
            "display": {
                "Name": "{\"color\":\"red\",\"text\":\"Bedrock\"}"
            }
        }
    }
}

@Faithcaio Faithcaio added the api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023) label Sep 21, 2020
@Faithcaio Faithcaio force-pushed the api8/recipe branch 3 times, most recently from e87d795 to c906528 Compare September 29, 2020 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: 8 (u) version: 1.16 (unsupported since Oct 17th 2023)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant