mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-27 00:38:46 +00:00
Add literal and tuple types + improve struct and list default
This commit is contained in:
@@ -386,6 +386,9 @@ const LootFunctions: Record<string, (params: any) => LootFunction> = {
|
||||
item.set('written_book_content', newContent)
|
||||
},
|
||||
set_components: ({ components }) => (item) => {
|
||||
if (typeof components !== 'object' || components === null) {
|
||||
return
|
||||
}
|
||||
for (const [key, value] of Object.entries(components)) {
|
||||
item.set(key, jsonToNbt(value))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user