Fix shulkerbox loot table replenish (#11366)

* Fix shulkerbox loot table replenish

* re-add loot table if cleared

* add config
This commit is contained in:
Jake Potrebic
2024-09-07 12:49:28 -07:00
parent 83ba6295a8
commit 2c264ee7c0
2 changed files with 61 additions and 5 deletions

View File

@@ -1460,7 +1460,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+import net.minecraft.world.entity.Entity;
+import net.minecraft.world.entity.EntityType;
+import net.minecraft.world.entity.ExperienceOrb;
+import net.minecraft.world.entity.Leashable;
+import net.minecraft.world.entity.MobCategory;
+import net.minecraft.world.entity.boss.enderdragon.EnderDragon;
+import net.minecraft.world.entity.decoration.HangingEntity;
@@ -1800,6 +1799,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ public int maxRefills = -1;
+ public Duration refreshMin = Duration.of("12h");
+ public Duration refreshMax = Duration.of("2d");
+ public boolean retainUnlootedShulkerBoxLootTableOnNonPlayerBreak = true;
+ }
+
+ public MaxGrowthHeight maxGrowthHeight;