Skip to content
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

Document crafting module #19

Open
jorgeberrex opened this issue Oct 7, 2019 · 0 comments
Open

Document crafting module #19

jorgeberrex opened this issue Oct 7, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@jorgeberrex
Copy link
Contributor

All ingredients can be defined either as a string (example: "bookshelf") or a JSON object for matching exact items (example: {"material": "bookshelf", "displayName": "Magical books"} )

Removing recipes

Recipe removal for a specific material

	"crafting": {
		"remove": [
			"crafting table"
		]
	},

NOTE: compass recipe is always removed

Remove all recipes

	"crafting": {
		"remove": "*"
	},

Adding custom recipes:

shapeless recipes

	"crafting": {
		"recipes": [
			{
				"type": "shapeless",
				"result": {
					"material": "iron sword",
					"displayName": "&6&lExodus"
				},
				"ingredients": [
					"dirt"
				]
			}
		]
	},

shaped recipes

	"crafting": {
		"recipes": [
			{
				"type": "shaped",
				"result": {
					"material": "diamond",
					"enchantments": ["power:1"]
				},
				"ingredients": {
					"X": "dirt",
					"Y": "stone"
				},
				"shape": [
					"XY",
					"YX"
				]
			}
		]
	},

Cooking recipes (furnace, smoking, blasting, campfire)

	"crafting": {
		"recipes": [
			{
				"type": "campfire",
				"result": {
					"material": "diamond",
					"lore": [
						"Yes this is how diamonds are made"
					]
				},
				"ingredient": "coal",
				"experience": 0,
				"cookingTime": 600
			}
		]
	},

NOTE: experience and cookingTime are optional.

Stonecutting recipes

	"crafting": {
		"recipes": [
			{
				"type": "stonecutting",
				"result": {
					"material": "smooth stone slab"
				},
				"ingredient": "stone"
			}
		]
	},
@Palmidence Palmidence added the enhancement New feature or request label Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants