From 3a8ac91e92feb476af8cd55dd295ac4c01012f3d Mon Sep 17 00:00:00 2001 From: ZXMushroom63 Date: Tue, 5 Nov 2024 17:46:17 +0800 Subject: [PATCH] fix unlucky blocks --- examplemods/unlucky_blocks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examplemods/unlucky_blocks.js b/examplemods/unlucky_blocks.js index 0967a99..72fd3a3 100644 --- a/examplemods/unlucky_blocks.js +++ b/examplemods/unlucky_blocks.js @@ -73,7 +73,7 @@ const oldDecorate = ModAPI.hooks.methods[BiomeDecorator_decorate]; ModAPI.hooks.methods[BiomeDecorator_decorate] = function ($this, $world, $random, $biomeGenBase, $blockpos) { if (!$this.$currentWorld) { - $this.$unluckyBlockGen = WorldGenMineable(ModAPI.blocks.unluckiness.getDefaultState().getRef(), 5); + $this.$unluckyBlockGen = WorldGenMineable(ModAPI.blocks.unluckiness.getDefaultState().getRef(), 4); } return oldDecorate.apply(this, [$this, $world, $random, $biomeGenBase, $blockpos]); } @@ -81,7 +81,7 @@ const BiomeDecorator_generateOres = ModAPI.util.getMethodFromPackage("net.minecraft.world.biome.BiomeDecorator", "generateOres"); const oldGenerateOres = ModAPI.hooks.methods[BiomeDecorator_generateOres]; ModAPI.hooks.methods[BiomeDecorator_generateOres] = function ($this) { - $this.$genStandardOre1(145, $this.$unluckyBlockGen || null, 0, 256); + $this.$genStandardOre1(105, $this.$unluckyBlockGen || null, 0, 256); return oldGenerateOres.apply(this, [$this]); }