Compare commits

..

4 Commits

Author SHA1 Message Date
126b8e8010 crate loot pools 2025-03-28 18:48:51 +05:00
7fbb68d9d0 loot table tweaks 2025-03-28 18:29:28 +05:00
a39bfd5a47 Industrial ladder recipe 2025-03-28 18:23:28 +05:00
0306ec6455 Add chance condition to rogue ai core drop 2025-03-28 18:21:17 +05:00
3 changed files with 71 additions and 9 deletions

View File

@ -22,6 +22,7 @@ fun addEntityLoot(loot: LootTables) {
}
lootPool {
item(MItems.ROGUE_AI_CORE) {
chanceCondition(0.5)
setCount(1, 1)
}
}
@ -30,6 +31,7 @@ fun addEntityLoot(loot: LootTables) {
loot.builder(LootContextParamSets.ENTITY, modLootTable("entities/android_melee")) {
lootPool {
item(MItems.ROGUE_AI_CORE) {
chanceCondition(0.3)
setCount(1, 1)
}
}

View File

@ -32,7 +32,6 @@ fun addChestLootTables(loot: LootTables) {
item(MItems.MECHANICAL_PARTS) { setCount(minimal = 2, maximal = 3) }
item(MItems.IRON_PLATE) { setCount(minimal = 2, maximal = 3) }
item(MItems.ELECTRIC_PARTS) { setCount(minimal = 2, maximal = 3) }
item(MItems.MECHANICAL_PARTS) { setCount(minimal = 2, maximal = 3) }
item(MItems.CIRCUIT_PLATING) { setCount(minimal = 1, maximal = 3) }
item(MItems.METAL_JUNK) { setCount(minimal = 3, maximal = 5) }
@ -49,6 +48,58 @@ fun addChestLootTables(loot: LootTables) {
}
}
loot.builder(LootContextParamSets.BLOCK, modLootTable("wooden_crate")) {
lootPool {
item(Items.STICK) { setCount(minimal = 2, maximal = 4)}
}
lootPool {
item(Items.OAK_PLANKS) { setCount(minimal = 1, maximal = 2)}
}
}
loot.builder(LootContextParamSets.BLOCK, modLootTable("wooden_crate_materials")) {
lootPool {
item(Items.IRON_INGOT) {
setCount(minimal = 1, maximal = 3)
}
item(MItems.TRITANIUM_INGOT) {
setCount(minimal = 1, maximal = 3)
}
}
lootPool {
item(Items.GOLD_INGOT) {
chanceCondition(0.3)
setCount(minimal = 1, maximal = 3)
}
item(Items.DIAMOND) {
chanceCondition(0.1)
setCount(minimal = 1, maximal = 2)
}
}
lootPool {
item(MItems.MECHANICAL_PARTS) { setCount(minimal = 2, maximal = 3) }
item(Items.COPPER_INGOT) { setCount(minimal = 1, maximal = 3) }
}
lootPool {
add(NestedLootTable.lootTableReference(
modLootTable("wooden_crate")
))
}
}
loot.builder(LootContextParamSets.BLOCK, modLootTable("wooden_crate_modules")) {
lootPool {
item(MItems.ExopackUpgrades.INVENTORY_UPGRADE_PROCEDURAL) {
apply(ProceduralExopackSlotUpgradeItem.Randomizer(UniformInt.of(12, 24), UniformInt.of(0, 3)))
}
}
lootPool {
add(NestedLootTable.lootTableReference(
modLootTable("wooden_crate")
))
}
}
loot.builder(LootContextParamSets.CHEST, modLootTable("frigate_cargo")) {
lootPool {
item(Items.IRON_INGOT) { setCount(minimal = 1, maximal = 3)}
@ -129,10 +180,6 @@ fun addChestLootTables(loot: LootTables) {
setCount(minimal = 1, maximal = 3)
setWeight(1)
}
item(MItems.ROFLITE_ALLOY_INGOT) {
setCount(minimal = 2, maximal = 4)
setWeight(2)
}
}
//food
lootPool {
@ -148,13 +195,17 @@ fun addChestLootTables(loot: LootTables) {
setCount(minimal = 2, maximal = 4)
setWeight(3)
}
}
lootPool {
item(Items.OMINOUS_BOTTLE) {
chanceCondition(0.3)
setWeight(1)
}
}
//otm
lootPool {
item(MItems.MATTER_DUST) { chanceCondition(0.1)
item(MItems.MATTER_DUST) {
chanceCondition(0.1)
setWeight(4)
apply(MatterDustItem.Randomizer(UniformDecimal(Decimal(100), Decimal(2_500))))
}
@ -216,11 +267,11 @@ fun addChestLootTables(loot: LootTables) {
setWeight(2)
}
item(Items.IRON_BLOCK) {
setCount(minimal = 1, maximal = 3)
setCount(minimal = 2, maximal = 3)
setWeight(1)
}
item(Items.REDSTONE_BLOCK) {
setCount(minimal = 1, maximal = 2)
setCount(minimal = 1, maximal = 3)
setWeight(1)
}
}
@ -231,7 +282,7 @@ fun addChestLootTables(loot: LootTables) {
setWeight(1)
}
item(MItems.PILL_OBLIVION) {
chanceCondition(0.5)
chanceCondition(0.3)
setWeight(2)
setCount(2, 5)
}

View File

@ -412,6 +412,15 @@ fun addDecorativesRecipes(provider: MatteryRecipeProvider, consumer: RecipeOutpu
.unlockedBy(MItems.METAL_MESH)
.build(consumer, modLocation("decorative/metal_railing"))
MatteryRecipe(MItems.INDUSTRIAL_LADDER, count = 6, category = RecipeCategory.BUILDING_BLOCKS)
.rowAC(MItems.METAL_MESH, MItems.METAL_MESH)
.row(MItems.METAL_MESH, MItems.METAL_MESH, MItems.METAL_MESH)
.rowAC(MItems.METAL_MESH, MItems.METAL_MESH)
.unlockedBy(Items.IRON_BARS)
.unlockedBy(Tags.Items.NUGGETS_IRON)
.unlockedBy(MItems.METAL_MESH)
.build(consumer, modLocation("decorative/industrial_ladder"))
// Голо табличка
MatteryRecipe(MItems.HOLO_SIGN, category = RecipeCategory.DECORATIONS)
.row(MItemTags.BASIC_CIRCUIT, MItemTags.TRITANIUM_PLATES, MItemTags.HARDENED_GLASS_PANES_COLORLESS)