# Cheatsheet
ToLaserBlade-Fabric v0.6.2.0

## Items
### Laser Blade
- ID: `tolaserblade:laser_blade`
- Tool type: Sword
- Durability: Infinity
- Basic attack damage: 7
- Basic attack speed: 2.8
- Enchanting: Available on Enchanting Table, Anvil, or Smithing Table
- Mining speed: 12
- Mining level: 3

Crafting Table:

- I = Iron Ingot; D = Diamond; G = Glowstone Dust; R = Redstone
  - x, I, D;
  - I, G, I;
  - R, I, x; -> Laser Blade
- I = Iron Ingot; D = Diamond; R = Redstone
  - x, I, D;
  - I, D, I;
  - R, I, x; -> Laser Blade

### Laser Blade (fireproof)
- ID: `tolaserblade:laser_blade_fp`
- Basic attack damage: 8
- Mining level: 4
- Recipe: See Upgrading Laser Blades

## Features
### Changing Laser Blade colors
Smithing Table:

- Outer Blade: Laser Blade + Stained Glass
- Inner blade: Laser Blade + Stained Glass Pane
- Grip: Laser Blade + Carpet
- Switching Blend Mode of Outer Blade: Laser Blade + Tinted Glass
- Switching Blend Mode of Inner Blade: Laser Blade + Block of Amethyst

### Upgrading Laser Blades
Smithing Table:

- Attack Speed (up to 4.0): Laser Blade + Gold Ingot
- Attack Damage (up to 8): Laser Blade + Diamond
- Light Element: Laser Blade + Glowstone
- Silk Touch: Laser Blade + Prismarine Crystals / Amethyst Shard / Echo Shard
- Fireproof: Laser Blade + Netherite Ingot

### Enchantment: Light Element
- ID: `tolaserblade:light_element`
- Enchanting: See Upgrading Laser Blades
- Max level: 10
- Incompatible with Sharpness, Smite, and Bane of Arthropods

Light element increases the damage of the laser blade, and deals additional damage to undead mobs and illagers.

### Laser Trap
When you put a laser blade in a dispenser and activate it, you can attack the mobs (of course, players included) in front of the dispenser with the laser blade.

### Laser Furnace
When a laser trap is fired at a furnace, it will light the furnace.

### Laser Blade Sound Events
You can add audio files that will be played when laser blades are swung.

- `(resource_pack_root_dir)/assets/tolaserblade/sounds/item/laser_blade/swing.ogg`
- `(resource_pack_root_dir)/assets/tolaserblade/sounds/item/laser_blade_fp/swing.ogg`

## Config
`(game_dir)/config/tolaserblade.toml`

If you change the config, you will need to restart the game.

### (Common)
In multiplayer mode, server-side config will be used.

- `enableLaserTrap` (boolean, default value is `true`)
  - Enable to attack entities with the laser blade in a dispenser when the dispenser is activated
- `canLaserTrapAttackPlayer` (boolean, default value is `true`)
  - Whether to allow laser trap to attack player. This is only valid when `enableLaserTrap` is `true`
- `canLaserTrapHeatUpFurnace` (boolean, default value is `true`)
  - Whether to allow laser trap to light furnace. This is only valid when `enableLaserTrap` is `true`

### `[client]`
- `useOriginalShaderProgram` (boolean, default value is `true`)
  - Whether to use original shader program to render blade of laser blade
  - If you have trouble when using shader mod, try setting this to `false`
