Add lootPool helper function
This commit is contained in:
parent
8657850ed4
commit
d3296767dd
@ -38,6 +38,8 @@ fun singleLootPool(f: (LootPool.Builder) -> Unit): LootTable.Builder {
|
|||||||
return LootTable.lootTable().withPool(LootPool.lootPool().also(f))
|
return LootTable.lootTable().withPool(LootPool.lootPool().also(f))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun LootTable.Builder.lootPool(configurator: LootPool.Builder.() -> Unit): LootTable.Builder = withPool(LootPool.lootPool().also(configurator))
|
||||||
|
|
||||||
data class NbtCopy(val source: String, val destination: String, val strategy: CopyNbtFunction.MergeStrategy = CopyNbtFunction.MergeStrategy.REPLACE)
|
data class NbtCopy(val source: String, val destination: String, val strategy: CopyNbtFunction.MergeStrategy = CopyNbtFunction.MergeStrategy.REPLACE)
|
||||||
|
|
||||||
fun TileNbtCopy(source: String, strategy: CopyNbtFunction.MergeStrategy = CopyNbtFunction.MergeStrategy.REPLACE): NbtCopy {
|
fun TileNbtCopy(source: String, strategy: CopyNbtFunction.MergeStrategy = CopyNbtFunction.MergeStrategy.REPLACE): NbtCopy {
|
||||||
|
Loading…
Reference in New Issue
Block a user