Skip to content
Discussion options

You must be logged in to vote

Basic craft_station tutorial
Add the nodes to your scene so that it looks like this:

Configure database for two inventory system nodes:

For CraftStation configure the input and output inventory to Inventory Node added previously:

Too add craft station type id (Same of configured on inventory editor), in this casa add "campfire" for 'valid_recipes' receives only campfire configured recipes (like steak in demo)

Check too auto_craft for simple craft recipes without need call craft() function:

Create script and add references of nodes:

extends Node3D

@onready var craft_station: CraftStation = $CraftStation
@onready var inventory: Inventory = $CraftStation/Inventory

Add process function…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@luiscesjr
Comment options

Answer selected by luiscesjr
Comment options

@luiscesjr
Comment options

@scriptsengineer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
documentation Improvements or additions to documentation
2 participants