2008Choco / Alchema

Spigot plugin. In-world cauldron crafting, witchcraft and sorcery
https://www.spigotmc.org/resources/alchema.87078/
GNU General Public License v3.0
9 stars 3 forks source link

MMOItems integration #9

Closed ArcticRaven closed 3 years ago

ArcticRaven commented 3 years ago

Describe the new feature MMOItems integration to allow the creation/usage of MMOItems.

How will it work? Like witchcraft! But seriously - similar to the 'mincraft:potato' or 'alchema:waffles' we could just have 'mmoitem:chickennuggies' or something. Issues may stem from MMOItems have both a name and a type, not sure how that would be handled.

Does this require integration with another plugin? Yes - and unfortunately the resource is premium, however I am more than willing to provide a test environment. API information can be found here

2008Choco commented 3 years ago

Looks like MMO items does have a relatively decent API to fetch items. I think optional integration with this plugin is definitely viable and I want to integrate natively with more plugins like this because they fit well with servers that would be running Alchema. I may even look into integrating this today 😄

I'm not too concerned about premium status, I'm a moderator on SpigotMC and can download premium resources free of charge. I don't, however, see a Maven repository which is going to make things painful for me. Compilation would require local installation of the plugin. I'll join the Discord and see if there are ways to depend on it.

TL;DR: Yes! I'd love to. Depends on whether or not I can depend on it from Maven remotely.

EDIT: Found a Maven repository I can properly depend on! Will work on integration today.

2008Choco commented 3 years ago
{
    "name": "MMOItems Gemstone",
    "description": "A recipe to test integration with MMOItems",
    "result": {
        "item": "minecraft:emerald",
        "name": "&aMMOItems Gemstone"
    },
    "ingredients": [
        {
            "type": "mmoitems:mmoitem",
            "item_type": "SWORD",
            "id": "CUTLASS"
        },
        {
            "type": "alchema:material",
            "item": "minecraft:emerald"
        }
    ]
}

The above is now supported and will be available in a future version 😄

ArcticRaven commented 3 years ago

Built Alchema current build from URL through Intellij - your provided template worked fine - however MMOItems don't seem to able to be used as a recipe result.