Skip to content
This repository has been archived by the owner on Jan 30, 2025. It is now read-only.

Commit

Permalink
This was stupid ngl
Browse files Browse the repository at this point in the history
  • Loading branch information
kckarnige committed Aug 21, 2024
1 parent 48590f2 commit 238d593
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/java/com/kckarnige/oye/item/EndCatalyst.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,6 @@ public EndCatalyst(Settings settings) {
super(settings);
}

@Override
public TypedActionResult<ItemStack> use(World world, PlayerEntity player, Hand hand) {
if (!world.isClient()) {
world.playSound(null, player.getBlockPos(), SoundEvents.BLOCK_ENCHANTMENT_TABLE_USE, SoundCategory.PLAYERS);
player.addStatusEffect(new StatusEffectInstance(StatusEffects.DARKNESS, 100, 3, false, false, false));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.BLINDNESS, 100, 3, false, false, false));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.WEAKNESS, 100, 1, false, false, false));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 100, 2, false, false, false));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.WITHER, 100, 1, false, false, false));
player.addStatusEffect(new StatusEffectInstance(StatusEffects.INSTANT_DAMAGE, 20, 3, false, false, false));
}
return TypedActionResult.consume(ItemStack.EMPTY);
}

public void inventoryTick(ItemStack nullStack, World world, Entity entity, int slot, boolean selected) {
if (!world.isClient()) {
if (entity instanceof PlayerEntity player) {
Expand Down

0 comments on commit 238d593

Please sign in to comment.