Compare commits

...

3 commits

Author SHA1 Message Date
Flanks255
6263e819ab Goggles. 2023-01-14 17:26:59 -06:00
Flanks255
a03036e9db Goggles. 2023-01-14 17:26:37 -06:00
Flanks255
8dd0e1a951 Leaf blowers are done. 2023-01-14 16:02:33 -06:00
5 changed files with 10 additions and 10 deletions

View file

@ -16,6 +16,7 @@ import de.ellpeck.actuallyadditions.mod.material.ArmorMaterials;
import de.ellpeck.actuallyadditions.mod.proxy.ClientProxy;
import de.ellpeck.actuallyadditions.mod.util.StackUtil;
import io.netty.util.internal.ConcurrentSet;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.inventory.EquipmentSlotType;
@ -40,7 +41,7 @@ public class ItemEngineerGoggles extends ItemArmorAA implements IGoggles {
super(ArmorMaterials.GOGGLES, EquipmentSlotType.HEAD, ActuallyItems.defaultProps().setNoRepair().durability(0));
this.displayMobs = displayMobs;
//MinecraftForge.EVENT_BUS.register(this);
MinecraftForge.EVENT_BUS.register(this);
}
public static boolean isWearing(PlayerEntity player) {
@ -51,7 +52,7 @@ public class ItemEngineerGoggles extends ItemArmorAA implements IGoggles {
@OnlyIn(Dist.CLIENT)
@SubscribeEvent
public void onClientTick(TickEvent.ClientTickEvent event) {
/* PlayerEntity player = ClientProxy.getCurrentPlayer();
PlayerEntity player = Minecraft.getInstance().player;
if (player != null && isWearing(player)) {
ItemStack face = player.inventory.armor.get(3);
if (((IGoggles) face.getItem()).displaySpectralMobs()) {
@ -85,7 +86,7 @@ public class ItemEngineerGoggles extends ItemArmorAA implements IGoggles {
}
}
this.cachedGlowingEntities.clear();
}*/
}
}
@Override

View file

@ -69,7 +69,7 @@ public class ItemLeafBlower extends ItemBase implements IDisplayStandItem {
//Breaks the Blocks
boolean broke = this.breakStuff(world, x, y, z);
//Plays a Minecart sounds (It really sounds like a Leaf Blower!)
world.playSound(null, x, y, z, SoundEvents.MINECART_RIDING, SoundCategory.PLAYERS, 0.3F, 0.001F);
world.playSound(null, x, y, z, SoundEvents.MINECART_RIDING, SoundCategory.PLAYERS, 0.2F, 0.001F);
return broke;
}
}
@ -100,7 +100,7 @@ public class ItemLeafBlower extends ItemBase implements IDisplayStandItem {
BlockPos pos = new BlockPos(x + reachX, y + reachY, z + reachZ);
Block block = world.getBlockState(pos).getBlock();
if ((block instanceof BushBlock || block instanceof IForgeShearable) && (this.isAdvanced || block instanceof LeavesBlock)) {
if ((block instanceof BushBlock || block instanceof IForgeShearable) && (this.isAdvanced || !(block instanceof LeavesBlock))) {
breakPositions.add(pos);
}
}

View file

@ -322,9 +322,8 @@
"item.actuallyadditions.ring": "Ring (wip)",
"item.actuallyadditions.ring.storage": "Blaze Stored (wip)",
"item.actuallyadditions.teleport_staff": "Teleport Staff",
"item.actuallyadditions.hairy_ball": "Ball of Fur (wip)",
"item.actuallyadditions.leaf_blower": "Leaf Blower (wip)",
"item.actuallyadditions.advanced_leaf_blower": "Advanced Leaf Blower (wip)",
"item.actuallyadditions.leaf_blower": "Leaf Blower",
"item.actuallyadditions.advanced_leaf_blower": "Advanced Leaf Blower",
"item.actuallyadditions.crafter_on_a_stick": "Crafting Table On A Stick",
"item.actuallyadditions.basic_coil": "Basic Coil (wip)",
"item.actuallyadditions.advanced_coil": "Advanced Coil (wip)",
@ -388,8 +387,8 @@
"item.actuallyadditions.lens_of_the_killer": "Lens of the Killer (wip)",
"item.actuallyadditions.handheld_filler": "Handheld Filler (wip)",
"item.actuallyadditions.laser_upgrade_invisibility": "Laser Relay Modifier: Invisibility (wip)",
"item.actuallyadditions.engineers_goggles": "Engineer's Goggles (wip)",
"item.actuallyadditions.engineers_goggles_advanced": "Engineer's Infrared Goggles (wip)",
"item.actuallyadditions.engineers_goggles": "Engineer's Goggles",
"item.actuallyadditions.engineers_goggles_advanced": "Engineer's Infrared Goggles",
"item.actuallyadditions.laser_upgrade_range": "Laser Relay Modifier: Range (wip)",
"item.actuallyadditions.restonia_crystal_shard": "Red Crystal Shard (wip)",
"item.actuallyadditions.palis_crystal_shard": "Blue Crystal Shard (wip)",