Instructions/Resource Type

From Desynced Wiki
Revision as of 05:51, 17 September 2023 by Johan (talk | contribs) (informational)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Resource Type
     
     Gets the resource type from an resource node
Lua ID get_resource_item
Category Global
Icon Notify.png
Argument One: Type Input
Argument One: Name Resource Node
Argument One: Description Resource Node
Argument One: Data Type entity
Argument Two: Type Output
Argument Two: Name Resource
Argument Two: Description Resource Type
Argument Three: Type Exec
Argument Three: Name Not Resource
Argument Three: Description Continue here if it wasn't a resource node



Description

Evaluates a Value and determines if it is a resource item.

Uses

Used as a data conversion from the orange resource type into an explicit item such as Metal Ore, Crustal Chunk or Silica Sand.Often used in conjuction with Get Resource Num, which returns a Resource Value.

Similar Instructions

Get Resource Num