mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 07:10:41 +00:00
Loot Table Modifier generator (#758)
* Loot Table Modifier loot_modifier generator
Should support everything currently implemented
* Translation keys
* Make 'actions' and 'predicates' always a list
Seems simpler to understand and a list of one entry behaves exactly the same
* Update loot-table-modifier.mcdoc
Should match currently latest commit
* Fix loot modifier path in datapack being incorrect
* Match v2 alpha 1
* Import LootPoolEntry
* Add files via upload
* Revert "Add files via upload"
This reverts commit 7e9c50ee10.
* add condition_add action
* Add union member name overrides
Co-authored-by: Misode <misoloo64@gmail.com>
---------
Co-authored-by: Misode <misoloo64@gmail.com>
This commit is contained in:
@@ -432,6 +432,10 @@ function UnionHead({ type, optional, node, ctx }: Props<UnionType<SimplifiedMcdo
|
||||
}
|
||||
|
||||
function formatUnionMember(type: SimplifiedMcdocTypeNoUnion, others: SimplifiedMcdocTypeNoUnion[]): string {
|
||||
const memberNameAttribute = type.attributes?.find(a => a.name === 'misode_member_name')?.value
|
||||
if (memberNameAttribute?.kind === 'literal' && memberNameAttribute.value.kind === 'string') {
|
||||
return memberNameAttribute.value.value
|
||||
}
|
||||
if (type.kind === 'literal') {
|
||||
return formatIdentifier(type.value.value.toString())
|
||||
}
|
||||
|
||||
@@ -948,6 +948,13 @@
|
||||
"tags": ["partners"],
|
||||
"dependency": "create"
|
||||
},
|
||||
{
|
||||
"id": "loot-table-modifier:loot_modifier",
|
||||
"url": "loot-table-modifier/loot_modifier",
|
||||
"path": "loot-table-modifier/loot_modifier",
|
||||
"tags": ["partners"],
|
||||
"dependency": "loot-table-modifier"
|
||||
},
|
||||
{
|
||||
"id": "thermoo:environment_provider",
|
||||
"url": "thermoo/environment_provider",
|
||||
|
||||
@@ -92,6 +92,7 @@
|
||||
"generator.jukebox_song": "Jukebox Song",
|
||||
"generator.lang": "Language",
|
||||
"generator.loot_table": "Loot Table",
|
||||
"generator.loot-table-modifier:loot_modifier": "Loot Modifier",
|
||||
"generator.model": "Model",
|
||||
"generator.texture_meta": "Texture Metadata",
|
||||
"generator.neoforge:biome_modifier": "Biome Modifier",
|
||||
@@ -229,6 +230,7 @@
|
||||
"partner.fabric": "Fabric",
|
||||
"partner.immersive_weathering": "Immersive Weathering",
|
||||
"partner.lithostitched": "Lithostitched",
|
||||
"partner.loot-table-modifier": "Loot Table Modifier",
|
||||
"partner.neoforge": "NeoForge",
|
||||
"partner.obsidian": "Obsidian",
|
||||
"partner.ohthetreesyoullgrow": "Oh The Trees You'll Grow",
|
||||
|
||||
Reference in New Issue
Block a user