Skip to content

Commit

Permalink
feat: increase yield of ores and doubly increase yield when using for…
Browse files Browse the repository at this point in the history
…tune (golden tools) when the ore is deepslate
  • Loading branch information
Yarden-zamir committed Nov 6, 2024
1 parent a003180 commit 4b0c037
Showing 1 changed file with 79 additions and 3 deletions.
82 changes: 79 additions & 3 deletions kubejs/server_scripts/base/loot.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,86 @@ if (feature("Gold ore drops more gold")) {
event
.addBlockLootModifier("minecraft:nether_gold_ore")
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget");
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")

.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")

.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")
.addLoot("minecraft:gold_nugget")

.applyOreBonus("minecraft:fortune");
event
.addBlockLootModifier("minecraft:deepslate_gold_ore")
.addLoot("minecraft:raw_gold");
.addLoot("minecraft:raw_gold")
.addLoot("minecraft:raw_gold")
.addLoot("minecraft:raw_gold")
.applyOreBonus("minecraft:fortune");

});
}

if (feature('Iron ore drops more raw iron')) {
LootJS.modifiers((event) => {
event
.addBlockLootModifier("minecraft:iron_ore")
.addLoot("minecraft:raw_iron")
.addLoot("minecraft:raw_iron")
.addLoot("minecraft:raw_iron");
event
.addBlockLootModifier("minecraft:deepslate_iron_ore")
.addLoot("minecraft:raw_iron")
.addLoot("minecraft:raw_iron")
.addLoot("minecraft:raw_iron")
.applyOreBonus("minecraft:fortune");

});
}

if (feature('Coal ore drops more coal')) {

LootJS.modifiers((event) => {
event
.addBlockLootModifier("minecraft:coal_ore")
.addLoot("minecraft:coal")
event
.addBlockLootModifier("minecraft:deepslate_coal_ore")
.addLoot("minecraft:coal")
.applyOreBonus("minecraft:fortune");
});
}
if (feature('Copper ore drops more copper')) {
LootJS.modifiers((event) => {
event
.addBlockLootModifier("minecraft:copper_ore")
.addLoot("minecraft:raw_copper")
.addLoot("minecraft:raw_copper")
event
.addBlockLootModifier("minecraft:deepslate_copper_ore")
.addLoot("minecraft:raw_copper")
.addLoot("minecraft:raw_copper")
.applyOreBonus("minecraft:fortune");
});

}

if (feature('Redstone ore drops more redstone')) {
LootJS.modifiers((event) => {
event
.addBlockLootModifier("minecraft:redstone_ore")
.addLoot("minecraft:redstone")
.addLoot("minecraft:redstone")
event
.addBlockLootModifier("minecraft:deepslate_redstone_ore")
.addLoot("minecraft:redstone")
.addLoot("minecraft:redstone")
.applyOreBonus("minecraft:fortune");
});
}

Expand Down Expand Up @@ -149,4 +225,4 @@ if (feature('Replace white ingot (iron ingot) with white plates')) {
.addEntityLootModifier("minecraft:iron_golem")
.replaceLoot("minecraft:iron_ingot", "create:iron_sheet", true)
});
}
}

0 comments on commit 4b0c037

Please sign in to comment.