Crafting Block

Helps set up crafting.

The Crafting Block is used to set up crafting functionality that the player can interact with.

You can add the default design to your scene by right-clicking in the hierarchy and navigating to Inventool > Blocks > Merchants > Crafting Block.

Check out its scripting section to learn about its full potential.

Crafting Blockchevron-right

Properties

Name
Description

Ingredient Slot Prefab

The item slot prefab instantiated for each ingredient.

Result Item Slot

The slot that contains the result item.

Ingredients Container

The transform parent of all instantiated ingredient slot instances.

Cost Display

A block that displays the crafting cost.

Receiver

The inventory that receives the crafted item. This is also used as the resources provider.

Craftsman Reference

The craftsman merchant reference. This is entirely optional. Setting up an enchanter provides extra control over what can and cannot be enchanted by this crafting block.

Enable Cost

If the crafting cost should be applied.

Display Messages

If this is enabled, a message will be displayed if crafting is successful or unsuccessful if there is a if there is a Confirmation Block in the scene.

Last updated