mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-05 04:49:10 +01:00
Compare commits
No commits in common. "cea06a8e48580f691a7a7b1f581792b25ed81699" and "d7e438934485a01dadc28418ef6e47d0c14bd007" have entirely different histories.
cea06a8e48
...
d7e4389344
5 changed files with 9 additions and 11 deletions
|
@ -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.3
|
||||
mod_version=39.1
|
||||
# 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
|
||||
|
|
|
@ -13,7 +13,6 @@ 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 {
|
||||
|
||||
|
@ -34,7 +33,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 || ForgeRegistries.BLOCK_ENTITY_TYPES.getKey(tile.getType()).getNamespace().equals("lootr")) {
|
||||
if (tile.getCapability(ForgeCapabilities.ITEM_HANDLER).isPresent() || tile instanceof SpawnerBlockEntity) {
|
||||
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);
|
||||
|
@ -58,5 +57,4 @@ public class ItemLootFinder extends ItemImpl {
|
|||
playerIn.getCooldowns().addCooldown(this, 20 * 60);
|
||||
return new InteractionResultHolder<>(InteractionResult.SUCCESS, stack);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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, stack);
|
||||
Block.dropResources(offState, player.level(), offset, entity, null, ItemStack.EMPTY);
|
||||
player.level().setBlock(offset, Blocks.AIR.defaultBlockState(), 3);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 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."
|
||||
"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."
|
||||
},
|
||||
{
|
||||
"type": "crafting",
|
||||
|
@ -22,4 +22,4 @@
|
|||
"recipe": "naturesaura:field_creator"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,9 +1,9 @@
|
|||
{
|
||||
"type": "minecraft:crafting_shaped",
|
||||
"pattern": [
|
||||
" I ",
|
||||
"GSG",
|
||||
" I "
|
||||
"SGS",
|
||||
"GIG",
|
||||
"SGS"
|
||||
],
|
||||
"key": {
|
||||
"I": {
|
||||
|
@ -19,4 +19,4 @@
|
|||
"result": {
|
||||
"item": "naturesaura:depth_ingot"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue