UNPKG

@flymeth/datapackjs

Version:

A great library to create your own minecraft datapack with javascript!

23 lines (22 loc) 919 B
import { ressourceLocation } from "../utils/ressourceLocation"; declare type recipesType = "blasting" | "campfire_cooking" | "crafting_shaped" | "crafting_shapeless" | "smelting" | "smithing" | "smoking" | "stonecutting" | "crafting_special_" | string; /** * Represent a game recipe * @link * https://minecraft.fandom.com/wiki/Recipe * https://minecraft.fandom.com/wiki/Recipe#JSON_format */ declare class gameRecipe { readonly ObjectType = "Recipe"; namespace: string | undefined; name: string; data: object; /** * @param name The recipe's name * @param group The recipe's group (useful for the recipies book) * @param options The recipe option (see https://minecraft.fandom.com/wiki/Recipe#JSON_format) */ constructor(name: ressourceLocation, type: recipesType, group: string, options: object); render(): string; } export default gameRecipe;