more stuff

This commit is contained in:
GearShocky 2025-03-08 02:17:17 +05:00
parent 2d1d9d28f3
commit 22798cff1e
12 changed files with 48 additions and 35 deletions

View File

@ -133,13 +133,6 @@ fun addChestLootTables(loot: LootTables) {
setCount(minimal = 2, maximal = 4) setCount(minimal = 2, maximal = 4)
setWeight(2) setWeight(2)
} }
setRolls(3)
}
//gear
lootPool{
item(Items.IRON_SWORD) {
}
} }
//food //food
lootPool { lootPool {
@ -159,7 +152,29 @@ fun addChestLootTables(loot: LootTables) {
setWeight(1) setWeight(1)
} }
} }
//pills //otm
lootPool {
item(MItems.MATTER_DUST) { chanceCondition(0.1)
setWeight(4)
apply(MatterDustItem.Randomizer(UniformDecimal(Decimal(100), Decimal(2_500))))
}
item(MItems.PROCEDURAL_BATTERY) {
chanceCondition(0.05)
setWeight(1)
apply(
ProceduralBatteryItem.Randomizer(
maxBatteryLevel = UniformDecimal(Decimal(10_000_000), Decimal(50_000_000)),
batteryLevel = UniformDecimal(Decimal(0), Decimal(25_000_000)),
maxInput = UniformDecimal(Decimal(1_000), Decimal(5_000)),
)
)
}
item(MItems.ExopackUpgrades.INVENTORY_UPGRADE_PROCEDURAL) {
chanceCondition(0.2)
setWeight(2)
apply(ProceduralExopackSlotUpgradeItem.Randomizer(UniformInt.of(1, 9), UniformInt.of(0, 3)))
}
lootPool { lootPool {
item(MItems.PILL_ANDROID) { chanceCondition(0.1) item(MItems.PILL_ANDROID) { chanceCondition(0.1)
setWeight(1) setWeight(1)
@ -169,33 +184,13 @@ fun addChestLootTables(loot: LootTables) {
setCount(2, 5) setCount(2, 5)
} }
} }
//otm
lootPool {
item(MItems.MATTER_DUST) { chanceCondition(0.1)
setWeight(4)
apply(MatterDustItem.Randomizer(UniformDecimal(Decimal(100), Decimal(2_500))))
} }
} }
lootPool { item(MItems.PROCEDURAL_BATTERY) { chanceCondition(0.05)
setWeight(1)
apply(
ProceduralBatteryItem.Randomizer(
maxBatteryLevel = UniformDecimal(Decimal(10_000_000), Decimal(50_000_000)),
batteryLevel = UniformDecimal(Decimal(0), Decimal(25_000_000)),
maxInput = UniformDecimal(Decimal(1_000), Decimal(5_000)),
))
} }
lootPool { item(MItems.ExopackUpgrades.INVENTORY_UPGRADE_PROCEDURAL) { chanceCondition(0.2)
setWeight(2)
apply(ProceduralExopackSlotUpgradeItem.Randomizer(UniformInt.of(1, 9), UniformInt.of(0, 3)))
} }
}
loot.builder(LootContextParamSets.CHEST, modLootTable("laboratory/reward_ominous")) { loot.builder(LootContextParamSets.CHEST, modLootTable("laboratory/reward_ominous")) {
//unique //unique
lootPool { item(MItems.FALLING_SUN) { lootPool { item(MItems.FALLING_SUN) {
chanceCondition(0.1) chanceCondition(0.075)
setWeight(1) setWeight(1)
} } } }
@ -207,11 +202,11 @@ fun addChestLootTables(loot: LootTables) {
} }
item(Items.EMERALD) { item(Items.EMERALD) {
setCount(minimal = 3, maximal = 6) setCount(minimal = 3, maximal = 6)
setWeight(3) setWeight(7)
} }
item(MItems.WITHERED_STEEL) { item(MItems.WITHERED_STEEL) {
setCount(minimal = 2, maximal = 4) setCount(minimal = 2, maximal = 4)
setWeight(2) setWeight(8)
} }
} }
//materials //materials

View File

@ -45,6 +45,15 @@
"projection": "rigid" "projection": "rigid"
}, },
"weight": 1 "weight": 1
},
{
"element": {
"element_type": "minecraft:single_pool_element",
"location": "overdrive_that_matters:laboratory/fluff/bench",
"processors": "minecraft:empty",
"projection": "rigid"
},
"weight": 1
} }
], ],
"fallback": "minecraft:empty" "fallback": "minecraft:empty"

View File

@ -26,7 +26,7 @@
"processors": "overdrive_that_matters:laboratory_weathering", "processors": "overdrive_that_matters:laboratory_weathering",
"projection": "rigid" "projection": "rigid"
}, },
"weight": 1 "weight": 2
}, },
{ {
"element": { "element": {
@ -36,6 +36,15 @@
"projection": "rigid" "projection": "rigid"
}, },
"weight": 1 "weight": 1
},
{
"element": {
"element_type": "minecraft:single_pool_element",
"location": "overdrive_that_matters:laboratory/intersections/car_portal",
"processors": "overdrive_that_matters:laboratory_weathering",
"projection": "rigid"
},
"weight": 1
} }
], ],
"fallback": "overdrive_that_matters:laboratory/fallback_pool" "fallback": "overdrive_that_matters:laboratory/fallback_pool"