Skip to content

Commit

Permalink
v1.3 - Update textures, minor adjustments + fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DakotaPride committed Aug 15, 2024
1 parent 7301ccf commit 4db957e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ public class HibernalHerbsForge {
public static final TagKey<Item> PADLOCKS_TAG = ItemTags.create(new ResourceLocation(MOD_ID, "padlocks/unbound"));

public static final TagKey<Item> GRIMOIRES_TAG = ItemTags.create(new ResourceLocation(MOD_ID, "grimoires"));


public static final TagKey<Item> AXES_OR_SIMILAR_TAG = ItemTags.create(new ResourceLocation("forge", "tools/axes"));

public HibernalHerbsForge() {
IEventBus eventBus = FMLJavaModLoadingContext.get().getModEventBus();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package net.dakotapride.hibernalHerbs.common.block;

import net.dakotapride.hibernalHerbs.common.HibernalHerbsForge;
import net.dakotapride.hibernalHerbs.common.registry.BlockRegistry;
import net.minecraft.core.BlockPos;
import net.minecraft.core.Direction;
Expand Down Expand Up @@ -33,7 +34,7 @@ public int getFireSpreadSpeed(BlockState state, BlockGetter level, BlockPos pos,

@Override
public @Nullable BlockState getToolModifiedState(BlockState state, UseOnContext context, ToolAction toolAction, boolean simulate) {
if(context.getItemInHand().getItem() instanceof AxeItem) {
if(context.getItemInHand().getItem().getDefaultInstance().is(HibernalHerbsForge.AXES_OR_SIMILAR_TAG)) {
if(state.is(BlockRegistry.MYQUESTE_LOG.get())) {
return BlockRegistry.STRIPPED_MYQUESTE_LOG.get().defaultBlockState().setValue(AXIS, state.getValue(AXIS));
}
Expand Down

0 comments on commit 4db957e

Please sign in to comment.