Skip to content

Commit

Permalink
Fix: Plunderer's Remourse Now Triggers On MC Soil (#1839)
Browse files Browse the repository at this point in the history
Plunderer's Remourse triggers only on tilling of aether soil, added MC
vanilla blocks to relevant JSON and Immutable Hashmap.

I've tested this on my local, and is working as intended.
  • Loading branch information
YvanCywan authored Nov 29, 2023
1 parent 0a3dbfe commit a488575
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@
"aether:aether_dirt",
"aether:aether_grass_block",
"aether:enchanted_aether_grass_block",
"aether:aether_dirt_path"
"aether:aether_dirt_path",
"minecraft:dirt",
"minecraft:rooted_dirt",
"minecraft:coarse_dirt",
"minecraft:dirt_path"
]
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import net.minecraft.world.level.Level;
import net.minecraft.world.level.LevelAccessor;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.storage.loot.LootParams;
import net.minecraft.world.level.storage.loot.LootTable;
Expand Down Expand Up @@ -232,6 +233,10 @@ public static class ToolHooks {
.put(AetherBlocks.AETHER_GRASS_BLOCK.get(), AetherBlocks.AETHER_FARMLAND.get())
.put(AetherBlocks.ENCHANTED_AETHER_GRASS_BLOCK.get(), AetherBlocks.AETHER_FARMLAND.get())
.put(AetherBlocks.AETHER_DIRT_PATH.get(), AetherBlocks.AETHER_FARMLAND.get())
.put(Blocks.DIRT, Blocks.FARMLAND)
.put(Blocks.ROOTED_DIRT, Blocks.FARMLAND)
.put(Blocks.COARSE_DIRT, Blocks.FARMLAND)
.put(Blocks.DIRT_PATH, Blocks.FARMLAND)
.build();

public static boolean debuffTools;
Expand Down

0 comments on commit a488575

Please sign in to comment.