Compare commits

...

5 commits

Author SHA1 Message Date
Ell cea06a8e48 39.3 2023-11-13 18:50:47 +01:00
Ell 7865f2683c made depth ingots much cheaper
closes #330
2023-11-13 18:30:26 +01:00
Ell 453754096e fixed soulstrider hoe enchantments not being applied for the AOE effect
closes #327
2023-11-13 18:28:37 +01:00
Ell b3d0d429c9 note enchanted tools in the field creator entry
closes #331
2023-11-13 18:26:46 +01:00
Ell 5d0bbcf164 made the staff of riches work with lootr
closes #332
2023-11-13 18:24:16 +01:00
5 changed files with 11 additions and 9 deletions

View file

@ -46,7 +46,7 @@ mod_name=NaturesAura
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT
# The mod version. See https://semver.org/
mod_version=39.1
mod_version=39.3
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html

View file

@ -13,6 +13,7 @@ import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.entity.SpawnerBlockEntity;
import net.minecraft.world.phys.AABB;
import net.minecraftforge.common.capabilities.ForgeCapabilities;
import net.minecraftforge.registries.ForgeRegistries;
public class ItemLootFinder extends ItemImpl {
@ -33,7 +34,7 @@ public class ItemLootFinder extends ItemImpl {
var pos = playerIn.blockPosition();
Helper.getBlockEntitiesInArea(levelIn, pos, 64, tile -> {
if (tile.getCapability(ForgeCapabilities.ITEM_HANDLER).isPresent() || tile instanceof SpawnerBlockEntity) {
if (tile.getCapability(ForgeCapabilities.ITEM_HANDLER).isPresent() || tile instanceof SpawnerBlockEntity || ForgeRegistries.BLOCK_ENTITY_TYPES.getKey(tile.getType()).getNamespace().equals("lootr")) {
inst.spawnMagicParticle(
tile.getBlockPos().getX() + 0.5F, tile.getBlockPos().getY() + 0.5F, tile.getBlockPos().getZ() + 0.5F,
0F, 0F, 0F, 0xf5f10a, 6F, 20 * 60, 0F, false, true);
@ -57,4 +58,5 @@ public class ItemLootFinder extends ItemImpl {
playerIn.getCooldowns().addCooldown(this, 20 * 60);
return new InteractionResultHolder<>(InteractionResult.SUCCESS, stack);
}
}

View file

@ -96,7 +96,7 @@ public class ItemHoe extends HoeItem implements IModItem, ICustomItemModel {
var offState = player.level().getBlockState(offset);
if (offState.getBlock() instanceof BushBlock || stack.getItem() == ModItems.DEPTH_HOE && offState.getBlock() instanceof LeavesBlock) {
var entity = offState.hasBlockEntity() ? player.level().getBlockEntity(offset) : null;
Block.dropResources(offState, player.level(), offset, entity, null, ItemStack.EMPTY);
Block.dropResources(offState, player.level(), offset, entity, null, stack);
player.level().setBlock(offset, Blocks.AIR.defaultBlockState(), 3);
}
}

View file

@ -14,7 +14,7 @@
},
{
"type": "text",
"text": "Of course, breaking blocks and especially the initial channel time will require a bit of $(aura) from the environment. Additionally, while the field is active, a small amount is consumed as a sort of upkeep cost.$(br)Any botanist that requires items gained from $(thing)shearing$() certain blocks doesn't have to worry: Placing an $(item)Item Frame$() with $(item)Shears$() on any of the two $(item)Aura Field Creators$() will cause all shearable blocks inbetween to be sheared with all others being harvested normally."
"text": "Of course, breaking blocks and especially the initial channel time will require a bit of $(aura) from the environment. Additionally, while the field is active, a small amount is consumed as a sort of upkeep cost.$(br)Any botanist that requires that blocks be broken in a specific manner doesn't have to worry: Placing an $(item)Item Frame$() with $(item)Shears$() or an $(item)enchanted tool$() on any of the two $(item)Aura Field Creators$() will cause all blocks inbetween to be broken as if using that tool."
},
{
"type": "crafting",
@ -22,4 +22,4 @@
"recipe": "naturesaura:field_creator"
}
]
}
}

View file

@ -1,9 +1,9 @@
{
"type": "minecraft:crafting_shaped",
"pattern": [
"SGS",
"GIG",
"SGS"
" I ",
"GSG",
" I "
],
"key": {
"I": {
@ -19,4 +19,4 @@
"result": {
"item": "naturesaura:depth_ingot"
}
}
}