# Cheatsheet
ToLaserBlade-Fabric v0.8.0.0

## Items
### Laser Blade Blueprint
- ID: `tolaserblade:lb_blueprint`
- This item will remain on the crafting grid
- Crafting on Crafting Table: R = Redstone; B = Blue Dye; S = Stick; P = Paper
  - R, B, R;
  - S, P, S;

### LB Energy Cell
- ID: `tolaserblade:lb_battery`
- Crafting on Crafting Table: B = Laser Blade Blueprint; I = Iron Ingot; R = Redstone
  - B;
  - I;
  - R;

### Laser Medium
- ID: `tolaserblade:lb_medium`
- Crafting on Crafting Table: B = Laser Blade Blueprint; x = Glowstone Dust or Diamond
  - B;
  - x;

### Laser Blade Emitter
- ID: `tolaserblade:lb_emitter`
- Crafting on Crafting Table: B = Laser Blade Blueprint; D = Diamond; I = Iron Ingot
  - B;
  - D;
  - I;

### Laser Blade Casing
- ID: `tolaserblade:lb_casing`
- Crafting on Crafting Table: B = Laser Blade Blueprint; I = Iron Ingot
  - B;
  - I;
  - I;

### 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 on Crafting Table (shapeless recipe):
  - Laser Blade Blueprint
  - LB Energy Cell
  - Laser Medium
  - Laser Blade Emitter
  - Laser Blade Casing

### Laser Blade (fireproof)
- ID: `tolaserblade:laser_blade_fp`
- Basic attack damage: 8
- Mining level: 4
- Upgrading on Smithing Table:
  - Laser Blade + Netherite Ingot

## 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

### Changing Laser Blade Shape
Smithing Table:

- Type 0 (Standard): Laser Blade + Glass
- Type 1: Laser Blade + Sand
- Type 2: Laser Blade + Sandstone
- Type 526: Laser Blade + Dirt

### Upgrading Laser Blades
Smithing Table:

- Attack speed (up to 4.0): Laser Blade + Gold Ingot
- Attack damage (up to 8): Laser Blade + Block of Diamond
- Light Element: Laser Blade + Glowstone
- Silk Touch: Laser Blade + Prismarine Crystals / Amethyst Shard / Echo Shard
- Looting: Laser Blade + Nautilus Shell / Block of Emerald
- 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`

## Related Mod
### ToLaserBlade-ExtraModels
A ToLaserBlade add-on to add more laser blade shapes.

https://www.curseforge.com/minecraft/mc-mods/tolaserblade-extramodels
