crafting

package module
v0.0.0-...-b20e3d8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 8 Imported by: 2

README

JungleMC Crafting

Crafting system for Minecraft

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load() (err error)

Types

type Ingredient

type Ingredient struct {
	Count int32         `type:"varint"`
	Item  mc.Identifier `json:"item,omitempty"`
	Tag   mc.Identifier `json:"tag,omitempty"`
}

type Recipe

type Recipe struct {
	ID          mc.Identifier
	Group       mc.Identifier
	Ingredients []Ingredient           `json:"ingredients,omitempty"`
	Ingredient  Ingredient             `json:"ingredient,omitempty"`
	Base        Ingredient             `json:"base,omitempty"`
	Addition    Ingredient             `json:"addition,omitempty"`
	Pattern     []string               `json:"pattern,omitempty"`
	Key         map[string]interface{} `json:"key,omitempty"`
	Result      interface{}            `json:"result,omitempty"`
	Type        mc.Identifier          `json:"type"`
	Experience  float32                `json:"experience,omitempty"`
	CookingTime int32                  `json:"cookingtime,omitempty"`
}

func Recipes

func Recipes() []*Recipe

func (*Recipe) MarshalMinecraft

func (v *Recipe) MarshalMinecraft() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL