A Minecraft datapack generator written in go.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wip: loot tables

cosmeak a7e8ca47 88f7ea26

+44
+21
loottable/context.go
··· 1 + package loottable 2 + 3 + type Context string 4 + 5 + const ( 6 + AdvancementReward Context = "advancement_reward" 7 + Archaeology Context = "archaeology" 8 + Barter Context = "barter" 9 + Block Context = "block" 10 + BlockInteract Context = "block_interact" 11 + Chest Context = "chest" 12 + Empty Context = "empty" 13 + Entity Context = "entity" 14 + EntityInteract Context = "entity_interact" 15 + Equipement Context = "equipement" 16 + Fishing Context = "fishing" 17 + Generic Context = "generic" 18 + Gift Context = "gift" 19 + Shearing Context = "shearing" 20 + Vault Context = "vault" 21 + )
+1
loottable/emitter.go
··· 1 + package loottable
+22
loottable/loot_table.go
··· 1 + package loottable 2 + 3 + type LootTable struct { 4 + category string 5 + context Context 6 + functions []string 7 + pools []string 8 + randomSequence string 9 + } 10 + 11 + func (l LootTable) Type() string { 12 + return "loot_table" 13 + } 14 + 15 + func MkLootTable(context Context, functions []string, pools []string, randomSequence string) LootTable { 16 + return LootTable{ 17 + context: context, 18 + functions: functions, 19 + pools: pools, 20 + randomSequence: randomSequence, 21 + } 22 + }