Overview
OvenMDK allows you to make mods faster and easier, while EagMan is dependency manager
OvenMDK API
static title:string
Sets the title for your mod
class ExampleMod extends OMod {
static title:string = "OvenMDK Example Mod";
}
static description:string
Sets the description for your mod
class ExampleMod extends OMod {
static description:string = "OvenMDK Example Mod";
}
static credits:string
Sets the credits for your mod.
class ExampleMod extends OMod {
static credits:string = "BendieGames";
}
static icon:string
Sets the icon for your mod.
class ExampleMod extends OMod {
static icon:string = "base64 image string";
}
static acceptedMinecraftVersions = []
Sets the accepted Minecraft versions for your mod
class ExampleMod extends OMod {
static acceptedMinecraftVersions = ["1.12.2"];
}
static acceptedEaglerUpdates = []
Sets the accepted Minecraft versions for your mod
class ExampleMod extends OMod {
static acceptedEaglerUpdates = ["1.12.2"];
}
static acceptedEFVersions = []
Sets the accepted EaglerForge versions for your mod
class ExampleMod extends OMod {
static acceptedEFVersions = ["2.7.1"];
}
static acceptedEFVersions = []
Sets the accepted EaglerForge versions for your mod
class ExampleMod extends OMod {
static acceptedEFVersions = ["2.7.1"];
}
static acceptedEFFlavour
Sets the accepted EaglerForge flavor for your mod
class ExampleMod extends OMod {
static acceptedEFFlavour = "injector";
}
static clientSideOnly:boolean
Sets the value for defining if your mod is clientSided only
class ExampleMod extends OMod {
static clientSideOnly = false;
}
static serverSideOnly:boolean
Sets the value for defining if your mod is serverSided only
class ExampleMod extends OMod {
static serverSideOnly = false;
}
static init():void {}
Runs a statement when the mod is registered to Oven.
class ExampleMod extends OMod {
static init(): void {
console.log('mod registered!')
}
}
static postinit():void {}
Runs a statement when all mods are loaded.
class ExampleMod extends OMod {
static postinit(): void {
console.log('All mods loaded!')
}
}
static config():void {}
Config function to run when conig button is clicked next to your mod
class ExampleMod extends OMod {
static config(): void {
// idk some html? ( I dont know how to do html in ts lol )
}
}
OItem(itemname, itemID, maxItemStack, base64 png, onRightClick, onItemUse);
Registers a item to your mod.
class ExampleMod extends OMod {
static init(): void {
const itemTexture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAKZJREFUOE9j/P//PxMDBIBoEP6HREOl4PLIciA2AyPIgMcM//7KgvWSDJjBBpx9/+YvJzc3Sbq12DhB6sEGsJ19/+YnmQawYhigzc7FcPXnN4KugbqAHWQAy9n3b34T4wJkw6EGYLqAoNVQBWS5ANlwZBfAvUCs/0EGkW0AzBKqGoCSDgh5A80F2KMRpAgfAKUT6kcjsfEPUycmKMQgy8AETkgUZWcAS3CPIf4oSPsAAAAASUVORK5CYII=";
const myItem = new OItem("My Sword", "my_sword", 1, itemTexture, ($itemstack) => {
ModAPI.displayToChat("Used item!")
});
myItem.registerItem();
}
}
OBlock(blockname, blockID, maxItemStack, base64 png, onBreak);
Registers a item to your mod.
class ExampleMod extends OMod {
static init(): void {
const itemTexture = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAKZJREFUOE9j/P//PxMDBIBoEP6HREOl4PLIciA2AyPIgMcM//7KgvWSDJjBBpx9/+YvJzc3Sbq12DhB6sEGsJ19/+YnmQawYhigzc7FcPXnN4KugbqAHWQAy9n3b34T4wJkw6EGYLqAoNVQBWS5ANlwZBfAvUCs/0EGkW0AzBKqGoCSDgh5A80F2KMRpAgfAKUT6kcjsfEPUycmKMQgy8AETkgUZWcAS3CPIf4oSPsAAAAASUVORK5CYII=";
const myItem = new OItem("My Sword", "my_sword", 1, itemTexture, ($itemstack) => {
ModAPI.displayToChat("Used item!")
});
myItem.registerItem();
}
}
More API coming soon
EagMan API ( Cancelled idk)
registerMod()
This function can be ran to register your mod to EagMan API.
registerMod('examplemod',['https://example-dependcy-source-code1','https://example-dependcy-source-code2'])