fix kubejs bullshit

This commit is contained in:
Merith-TK 2022-09-17 13:03:54 -07:00
parent ff600fedbc
commit 193fc71acd

View file

@ -21,6 +21,7 @@ onEvent('block.loot_tables', event => {
table.addPool(pool => { table.addPool(pool => {
pool.addItem('minecraft:cobblestone', 1) pool.addItem('minecraft:cobblestone', 1)
var i = 0
for (i = 0; i < stoneLootTable.length; i++) { for (i = 0; i < stoneLootTable.length; i++) {
pool.addItem(stoneLootTable[i],1).randomChance(stoneLootChance) pool.addItem(stoneLootTable[i],1).randomChance(stoneLootChance)
} }
@ -34,7 +35,7 @@ onEvent('block.loot_tables', event => {
event.addBlock('minecraft:deepslate', table => { event.addBlock('minecraft:deepslate', table => {
table.addPool(pool => { table.addPool(pool => {
pool.addItem('minecraft:cobbled_deepslate', 1) pool.addItem('minecraft:cobbled_deepslate', 1)
var i = 0
for (i = 0; i < deepSlateLootTable.length; i++) { for (i = 0; i < deepSlateLootTable.length; i++) {
pool.addItem(deepSlateLootTable[i],1).randomChance(deepSlateLootChance) pool.addItem(deepSlateLootTable[i],1).randomChance(deepSlateLootChance)
} }