2.1.1 Hammer Range Toggle

This commit is contained in:
Vos
2026-03-28 01:09:24 -05:00
parent b51d6a8528
commit ad8adc6b12
2 changed files with 6 additions and 24 deletions
@@ -1,31 +1,9 @@
# Changes
## Additions
- Ashen Smithing Template can be found in Nether Fortress Chests
- Prisma Smithing Templates can be given by Armorers as a Hero of the Village Gift.
- Ashen and Prisma Smithing Templates can be duplicated like other templates.
- Hammers are now included in the pickaxe item tag. (aka, to other mods they will be considered a type of pickaxe)
- The Entropic Wand is now obtainable by grafting a breeze rod with a Stable Entropy. It turns blocks into other blocks. You will have to experiment to find out which ones.
- Fire Oak Trees and associated wood blocks. Obtainable by placing an oak sapling and infernal ashes in an Entropic Entangler
- Leaf Litter for both Lemonwood and the new Fire Oak leaf types.
- Fractal Diamonds can now be obtained by placing a diamond and stable entropy into an entropic entangler. They can be used to craft tools and armor. They have the same effect as Prisma Steel and drop additional ores when mining.
- Hellfire Diamonds can now be obtained by placing a diamond and infernal ashes into an entropic entangler. They can be used to craft tools and armor. They automatically smelt items that are smeltable. (Ex: Ores->ingots, logs->charcoal, sand->glass).
- Bag of Holding which acts as a portable double chest.
- Green Bricks (Useless) can be obtained by placing a brick in an Entropic Eviscerator. Though, this is pointless as green bricks are useless.
- Kaupen Bow can be obtained by placing a bow in an Entropic Evicerator. It functions the same as a normal bow but is a nice reference to the YT Channel that taught me modding.
- More Advancements!
## Fixes
- Hammers now reflect the correct durability.
## Changes
- Lemonwood saplings are now obtained through an Entropic Entangler recipe (Stable Entropy + Birch Sapling)
- Bricked Up are now obtained through an Entropic Entangler recipe (Stable Endtropy + Brick)
- Ashen Steel tools now automatically smelt items that can be smeltable. (Ex: Ores->ingots, logs->charcoal, sand->glass)
- Durability calculations have changed to reflect the material's rarity.
- Tools have the mining level of the base material with the durability of the next tier.
- Hammers get the equivalent durability for the materials put into them. (effectively the durability x6.33)
- Lemonwood Trees now drop lemons.
- Lemonwood trees now have yellow leaf particles.
- Crystalized Entropy has a new texture that's less... bad.
- Crouch while holding a Hammer to mine a single block.
# Known Issues
- The Command Core Item does not display the correct texture when activated.
- The Command Core Item does not offer any functionality
@@ -24,11 +24,15 @@ public class HammerUsageEvent implements PlayerBlockBreakEvents.Before{
ItemStack mainHandItem = player.getMainHandStack();
if(mainHandItem.getItem() instanceof HammerItem hammer && player instanceof ServerPlayerEntity serverPlayer) {
boolean isSneaking = player.isSneaking();
if(HARVESTED_BLOCKS.contains(pos)) {
return true;
}
for(BlockPos position : HammerItem.getBlocksToBeDestroyed(1, pos, serverPlayer)) {
int range = isSneaking ? 0 : 1;
for(BlockPos position : HammerItem.getBlocksToBeDestroyed(range, pos, serverPlayer)) {
if(pos == position || !hammer.isCorrectForDrops(mainHandItem, world.getBlockState(position))) {
continue;
}