Fluid registry
This commit is contained in:
@@ -21,6 +21,7 @@ export const loot_table_id = z.string('must be a loot table id, like "my_mod:blo
|
||||
// text players see
|
||||
export const text = z.string().min(1);
|
||||
export const vec3 = z.tuple([z.number(), z.number(), z.number()], "must be [x, y, z]");
|
||||
export const color = z.string('must be a color like "#79c05a"').regex(/^#[0-9a-fA-F]{6}$/);
|
||||
// any json object, for what's only stored, like components
|
||||
export const json_object = z.record(z.string(), z.unknown());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user