Recipe - Crafting Result From Items (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 3.8.0

Syntax

crafting result [item|id] (of|from) [items] %itemtypes% [in %-world%]

Description

Get the result of a crafting recipe from a list of items. This requires either 4 or 9 items, to follow the 2x2 and 3x3 crafting grids respectively. Use `air` to represent blank slots in the crafting grid. I have no clue what the world is for since recipes are not per world, but Bukkit offers it so here we are.

Examples

set {_barrel} to crafting result of oak planks, oak slab, oak planks, oak planks, air, oak planks, oak planks, oak slab, oak planks
set {_carrotOnStick} to crafting result of fishing rod, air, air, carrot
set {_diamondSwordId} to crafting result id of air, diamond, air, air, diamond, air, air, stick, air

View source