🏷️

Tags

Introduction

Sandstone features fully type-safe Tags. Like for all resources, you need to provide a name, which can include a namespace and folders. You then provide the definition of the tag.

Syntax

Tags need a type, a name and a list of corresponding values.
Tag('blocks' | 'entity_types' | 'fluids' | 'functions' | 'items', '<name>', [
	// Use directly a name,
	'<>',

	// Or an object with an ID - `required` is optional.
  { id: '<>', required?: true | false },
])
Function Tags also accept MCFunction as values.