Skip to content

Commit

Permalink
Rename ToolActions to ItemAbilities (#1148)
Browse files Browse the repository at this point in the history
Co-authored-by: Matyrobbrt <[email protected]>
  • Loading branch information
TelepathicGrunt and Matyrobbrt authored Jun 26, 2024
1 parent 2b82077 commit fd2db10
Show file tree
Hide file tree
Showing 66 changed files with 278 additions and 278 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
int i = p_340935_.getMainArm() == HumanoidArm.RIGHT ? 1 : -1;
ItemStack itemstack = p_340935_.getMainHandItem();
- if (!itemstack.is(Items.FISHING_ROD)) {
+ if (!itemstack.canPerformAction(net.neoforged.neoforge.common.ToolActions.FISHING_ROD_CAST)) {
+ if (!itemstack.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.FISHING_ROD_CAST)) {
i = -i;
}

2 changes: 1 addition & 1 deletion patches/net/minecraft/world/entity/LivingEntity.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@
if (this.isUsingItem() && !this.useItem.isEmpty()) {
Item item = this.useItem.getItem();
- return item.getUseAnimation(this.useItem) != UseAnim.BLOCK ? false : item.getUseDuration(this.useItem, this) - this.useItemRemaining >= 5;
+ return !this.useItem.canPerformAction(net.neoforged.neoforge.common.ToolActions.SHIELD_BLOCK) ? false : item.getUseDuration(this.useItem, this) - this.useItemRemaining >= 5;
+ return !this.useItem.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SHIELD_BLOCK) ? false : item.getUseDuration(this.useItem, this) - this.useItemRemaining >= 5;
} else {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
return BehaviorBuilder.create(
p_259197_ -> p_259197_.group(p_259197_.absent(MemoryModuleType.ADMIRING_ITEM)).apply(p_259197_, p_259512_ -> (p_352826_, p_352827_, p_352828_) -> {
- if (!p_352827_.getOffhandItem().isEmpty() && !p_352827_.getOffhandItem().is(Items.SHIELD)) {
+ if (!p_352827_.getOffhandItem().isEmpty() && !p_352827_.getOffhandItem().canPerformAction(net.neoforged.neoforge.common.ToolActions.SHIELD_BLOCK)) {
+ if (!p_352827_.getOffhandItem().isEmpty() && !p_352827_.getOffhandItem().canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SHIELD_BLOCK)) {
PiglinAi.stopHoldingOffHandItem(p_352827_, true);
return true;
} else {
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/entity/player/Player.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
@Override
protected void hurtCurrentlyUsedShield(float p_36383_) {
- if (this.useItem.is(Items.SHIELD)) {
+ if (this.useItem.canPerformAction(net.neoforged.neoforge.common.ToolActions.SHIELD_BLOCK)) {
+ if (this.useItem.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SHIELD_BLOCK)) {
if (!this.level().isClientSide) {
this.awardStat(Stats.ITEM_USED.get(this.useItem.getItem()));
}
Expand Down Expand Up @@ -261,7 +261,7 @@
- if (itemstack1.getItem() instanceof SwordItem) {
- flag2 = true;
- }
+ flag2 = itemstack1.canPerformAction(net.neoforged.neoforge.common.ToolActions.SWORD_SWEEP);
+ flag2 = itemstack1.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SWORD_SWEEP);
}

float f6 = 0.0F;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
ItemStack itemstack1 = p_37137_.getOffhandItem();
- boolean flag = itemstack.is(Items.FISHING_ROD);
- boolean flag1 = itemstack1.is(Items.FISHING_ROD);
+ boolean flag = itemstack.canPerformAction(net.neoforged.neoforge.common.ToolActions.FISHING_ROD_CAST);
+ boolean flag1 = itemstack1.canPerformAction(net.neoforged.neoforge.common.ToolActions.FISHING_ROD_CAST);
+ boolean flag = itemstack.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.FISHING_ROD_CAST);
+ boolean flag1 = itemstack1.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.FISHING_ROD_CAST);
if (!p_37137_.isRemoved() && p_37137_.isAlive() && (flag || flag1) && !(this.distanceToSqr(p_37137_) > 1024.0)) {
return false;
} else {
Expand Down
10 changes: 5 additions & 5 deletions patches/net/minecraft/world/item/AxeItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
- private Optional<BlockState> evaluateNewBlockState(Level p_308922_, BlockPos p_308899_, @Nullable Player p_309192_, BlockState p_308900_) {
- Optional<BlockState> optional = this.getStripped(p_308900_);
+ private Optional<BlockState> evaluateNewBlockState(Level p_308922_, BlockPos p_308899_, @Nullable Player p_309192_, BlockState p_308900_, UseOnContext p_40529_) {
+ Optional<BlockState> optional = Optional.ofNullable(p_308900_.getToolModifiedState(p_40529_, net.neoforged.neoforge.common.ToolActions.AXE_STRIP, false));
+ Optional<BlockState> optional = Optional.ofNullable(p_308900_.getToolModifiedState(p_40529_, net.neoforged.neoforge.common.ItemAbilities.AXE_STRIP, false));
if (optional.isPresent()) {
p_308922_.playSound(p_309192_, p_308899_, SoundEvents.AXE_STRIP, SoundSource.BLOCKS, 1.0F, 1.0F);
return optional;
} else {
- Optional<BlockState> optional1 = WeatheringCopper.getPrevious(p_308900_);
+ Optional<BlockState> optional1 = Optional.ofNullable(p_308900_.getToolModifiedState(p_40529_, net.neoforged.neoforge.common.ToolActions.AXE_SCRAPE, false));
+ Optional<BlockState> optional1 = Optional.ofNullable(p_308900_.getToolModifiedState(p_40529_, net.neoforged.neoforge.common.ItemAbilities.AXE_SCRAPE, false));
if (optional1.isPresent()) {
p_308922_.playSound(p_309192_, p_308899_, SoundEvents.AXE_SCRAPE, SoundSource.BLOCKS, 1.0F, 1.0F);
p_308922_.levelEvent(p_309192_, 3005, p_308899_, 0);
return optional1;
} else {
- Optional<BlockState> optional2 = Optional.ofNullable(HoneycombItem.WAX_OFF_BY_BLOCK.get().get(p_308900_.getBlock()))
- .map(p_150694_ -> p_150694_.withPropertiesOf(p_308900_));
+ Optional<BlockState> optional2 = Optional.ofNullable(p_308900_.getToolModifiedState(p_40529_, net.neoforged.neoforge.common.ToolActions.AXE_WAX_OFF, false));
+ Optional<BlockState> optional2 = Optional.ofNullable(p_308900_.getToolModifiedState(p_40529_, net.neoforged.neoforge.common.ItemAbilities.AXE_WAX_OFF, false));
if (optional2.isPresent()) {
p_308922_.playSound(p_309192_, p_308899_, SoundEvents.AXE_WAX_OFF, SoundSource.BLOCKS, 1.0F, 1.0F);
p_308922_.levelEvent(p_309192_, 3004, p_308899_, 0);
Expand All @@ -50,7 +50,7 @@
+ }
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_AXE_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_AXE_ACTIONS.contains(itemAbility);
}
}
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/BrushItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_BRUSH_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_BRUSH_ACTIONS.contains(itemAbility);
+ }
}
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/FishingRodItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
+ /* ******************** FORGE START ******************** */
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_FISHING_ROD_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_FISHING_ROD_ACTIONS.contains(itemAbility);
}
}
8 changes: 4 additions & 4 deletions patches/net/minecraft/world/item/HoeItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
+ /**
+ * @deprecated Forge: This map is patched out of vanilla code.
+ * Listen to {@link net.neoforged.neoforge.event.level.BlockEvent.BlockToolModificationEvent}
+ * or override {@link net.neoforged.neoforge.common.extensions.IBlockExtension#getToolModifiedState(BlockState, UseOnContext, net.neoforged.neoforge.common.ToolAction, boolean)}.
+ * or override {@link net.neoforged.neoforge.common.extensions.IBlockExtension#getToolModifiedState(BlockState, UseOnContext, net.neoforged.neoforge.common.ItemAbility, boolean)}.
+ */
+ @Deprecated
protected static final Map<Block, Pair<Predicate<UseOnContext>, Consumer<UseOnContext>>> TILLABLES = Maps.newHashMap(
Expand All @@ -18,7 +18,7 @@
Level level = p_41341_.getLevel();
BlockPos blockpos = p_41341_.getClickedPos();
- Pair<Predicate<UseOnContext>, Consumer<UseOnContext>> pair = TILLABLES.get(level.getBlockState(blockpos).getBlock());
+ BlockState toolModifiedState = level.getBlockState(blockpos).getToolModifiedState(p_41341_, net.neoforged.neoforge.common.ToolActions.HOE_TILL, false);
+ BlockState toolModifiedState = level.getBlockState(blockpos).getToolModifiedState(p_41341_, net.neoforged.neoforge.common.ItemAbilities.HOE_TILL, false);
+ Pair<Predicate<UseOnContext>, Consumer<UseOnContext>> pair = toolModifiedState == null ? null : Pair.of(ctx -> true, changeIntoState(toolModifiedState));
if (pair == null) {
return InteractionResult.PASS;
Expand All @@ -30,7 +30,7 @@
+ }
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_HOE_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_HOE_ACTIONS.contains(itemAbility);
}
}
2 changes: 1 addition & 1 deletion patches/net/minecraft/world/item/Item.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
public void onUseTick(Level p_41428_, LivingEntity p_41429_, ItemStack p_41430_, int p_41431_) {
}

+ /** @deprecated Forge: {@link IItemExtension#onDestroyed(ItemEntity, DamageSource) Use damage source sensitive version} */
+ /** @deprecated Forge: {@link net.neoforged.neoforge.common.extensions.IItemExtension#onDestroyed(ItemEntity, DamageSource) Use damage source sensitive version} */
+ @Deprecated
public void onDestroyed(ItemEntity p_150887_) {
}
Expand Down
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/PickaxeItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_PICKAXE_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_PICKAXE_ACTIONS.contains(itemAbility);
+ }
}
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/ShearsItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
+ }
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_SHEARS_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_SHEARS_ACTIONS.contains(itemAbility);
+ }
+
+ @Override
Expand Down
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/ShieldItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
+ /* ******************** FORGE START ******************** */
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_SHIELD_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_SHIELD_ACTIONS.contains(itemAbility);
+ }
+
@Override
Expand Down
6 changes: 3 additions & 3 deletions patches/net/minecraft/world/item/ShovelItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
} else {
Player player = p_43119_.getPlayer();
- BlockState blockstate1 = FLATTENABLES.get(blockstate.getBlock());
+ BlockState blockstate1 = blockstate.getToolModifiedState(p_43119_, net.neoforged.neoforge.common.ToolActions.SHOVEL_FLATTEN, false);
+ BlockState blockstate1 = blockstate.getToolModifiedState(p_43119_, net.neoforged.neoforge.common.ItemAbilities.SHOVEL_FLATTEN, false);
BlockState blockstate2 = null;
if (blockstate1 != null && level.getBlockState(blockpos.above()).isAir()) {
level.playSound(player, blockpos, SoundEvents.SHOVEL_FLATTEN, SoundSource.BLOCKS, 1.0F, 1.0F);
Expand All @@ -21,7 +21,7 @@
+ }
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_SHOVEL_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_SHOVEL_ACTIONS.contains(itemAbility);
}
}
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/SwordItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
+ }
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_SWORD_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_SWORD_ACTIONS.contains(itemAbility);
}
}
4 changes: 2 additions & 2 deletions patches/net/minecraft/world/item/TridentItem.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}
+
+ @Override
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ToolAction toolAction) {
+ return net.neoforged.neoforge.common.ToolActions.DEFAULT_TRIDENT_ACTIONS.contains(toolAction);
+ public boolean canPerformAction(ItemStack stack, net.neoforged.neoforge.common.ItemAbility itemAbility) {
+ return net.neoforged.neoforge.common.ItemAbilities.DEFAULT_TRIDENT_ACTIONS.contains(itemAbility);
+ }
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@Override
protected float getDestroyProgress(BlockState p_48981_, Player p_48982_, BlockGetter p_48983_, BlockPos p_48984_) {
- return p_48982_.getMainHandItem().getItem() instanceof SwordItem ? 1.0F : super.getDestroyProgress(p_48981_, p_48982_, p_48983_, p_48984_);
+ return p_48982_.getMainHandItem().canPerformAction(net.neoforged.neoforge.common.ToolActions.SWORD_DIG) ? 1.0F : super.getDestroyProgress(p_48981_, p_48982_, p_48983_, p_48984_);
+ return p_48982_.getMainHandItem().canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SWORD_DIG) ? 1.0F : super.getDestroyProgress(p_48981_, p_48982_, p_48983_, p_48984_);
}

protected void growBamboo(Level p_48973_, BlockPos p_48974_) {
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
@Override
protected float getDestroyProgress(BlockState p_261691_, Player p_262171_, BlockGetter p_261621_, BlockPos p_261500_) {
- return p_262171_.getMainHandItem().getItem() instanceof SwordItem ? 1.0F : super.getDestroyProgress(p_261691_, p_262171_, p_261621_, p_261500_);
+ return p_262171_.getMainHandItem().canPerformAction(net.neoforged.neoforge.common.ToolActions.SWORD_DIG) ? 1.0F : super.getDestroyProgress(p_261691_, p_262171_, p_261621_, p_261500_);
+ return p_262171_.getMainHandItem().canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SWORD_DIG) ? 1.0F : super.getDestroyProgress(p_261691_, p_262171_, p_261621_, p_261500_);
}

protected void growBamboo(BlockState p_261855_, Level p_262076_, BlockPos p_262109_, RandomSource p_261633_, int p_261759_) {
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
if (i >= 5) {
Item item = p_316844_.getItem();
- if (p_316844_.is(Items.SHEARS)) {
+ if (p_316844_.canPerformAction(net.neoforged.neoforge.common.ToolActions.SHEARS_HARVEST)) {
+ if (p_316844_.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SHEARS_HARVEST)) {
p_316306_.playSound(p_316824_, p_316824_.getX(), p_316824_.getY(), p_316824_.getZ(), SoundEvents.BEEHIVE_SHEAR, SoundSource.BLOCKS, 1.0F, 1.0F);
dropHoneycomb(p_316306_, p_316497_);
p_316844_.hurtAndBreak(1, p_316824_, LivingEntity.getSlotForHand(p_316436_));
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ItemStack p_316383_, BlockState p_316676_, Level p_316272_, BlockPos p_316484_, Player p_316367_, InteractionHand p_316216_, BlockHitResult p_316827_
) {
- if (!p_316383_.is(Items.SHEARS)) {
+ if (!p_316383_.canPerformAction(net.neoforged.neoforge.common.ToolActions.SHEARS_CARVE)) {
+ if (!p_316383_.canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SHEARS_CARVE)) {
return super.useItemOn(p_316383_, p_316676_, p_316272_, p_316484_, p_316367_, p_316216_, p_316827_);
} else if (p_316272_.isClientSide) {
return ItemInteractionResult.sidedSuccess(p_316272_.isClientSide);
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
@Override
public BlockState playerWillDestroy(Level p_57615_, BlockPos p_57616_, BlockState p_57617_, Player p_57618_) {
- if (!p_57615_.isClientSide && !p_57618_.getMainHandItem().isEmpty() && p_57618_.getMainHandItem().is(Items.SHEARS)) {
+ if (!p_57615_.isClientSide && !p_57618_.getMainHandItem().isEmpty() && p_57618_.getMainHandItem().canPerformAction(net.neoforged.neoforge.common.ToolActions.SHEARS_DISARM)) {
+ if (!p_57615_.isClientSide && !p_57618_.getMainHandItem().isEmpty() && p_57618_.getMainHandItem().canPerformAction(net.neoforged.neoforge.common.ItemAbilities.SHEARS_DISARM)) {
p_57615_.setBlock(p_57616_, p_57617_.setValue(DISARMED, Boolean.valueOf(true)), 4);
p_57615_.gameEvent(p_57618_, GameEvent.SHEAR, p_57616_);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"neoforge:tool_action": "axe_wax_off"
"neoforge:item_ability": "axe_wax_off"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"condition": "minecraft:match_tool",
"predicate": {
"predicates": {
"neoforge:tool_action": "axe_wax_off"
"neoforge:item_ability": "axe_wax_off"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"condition": "minecraft:any_of",
"terms": [
{
"action": "shears_dig",
"condition": "neoforge:can_tool_perform_action"
"ability": "shears_dig",
"condition": "neoforge:can_item_perform_ability"
},
{
"condition": "minecraft:match_tool",
Expand Down Expand Up @@ -70,8 +70,8 @@
"condition": "minecraft:any_of",
"terms": [
{
"action": "shears_dig",
"condition": "neoforge:can_tool_perform_action"
"ability": "shears_dig",
"condition": "neoforge:can_item_perform_ability"
},
{
"condition": "minecraft:match_tool",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"condition": "minecraft:any_of",
"terms": [
{
"action": "shears_dig",
"condition": "neoforge:can_tool_perform_action"
"ability": "shears_dig",
"condition": "neoforge:can_item_perform_ability"
},
{
"condition": "minecraft:match_tool",
Expand Down Expand Up @@ -70,8 +70,8 @@
"condition": "minecraft:any_of",
"terms": [
{
"action": "shears_dig",
"condition": "neoforge:can_tool_perform_action"
"ability": "shears_dig",
"condition": "neoforge:can_item_perform_ability"
},
{
"condition": "minecraft:match_tool",
Expand Down
Loading

0 comments on commit fd2db10

Please sign in to comment.