# Cheatsheet

LaserBlade-Tools
version 2.0.0+26.2

- [LaserBlade-Tools](https://github.com/Iunius118/laserblade-tools)

## Requirements

- NeoForge version - NeoForge
- Forge version - Minecraft Forge
- Fabric version - Fabric Loader and Fabric API

## How to Get Started

1. Craft a laser blade core
2. Craft a laser blade tool

## Items

### Laser Blade Core

A laser blade core is the crafting and repair material for laser blade tools.

Crafting (shaped recipe):

    Laser Blade Core
    4x Iron Ingot (#), 1x Diamond (D), 1x Glowstone Dust (G) and 1x Redstone Dust (R)
    |   | # | D |
    | # | G | # |
    | R | # |   |

Laser blade tools can be smelted into laser blade cores using a furnace or blast furnace.

Smelting/Blasting:

    Laser Blade Axe/Hoe/Pickaxe/Shovel/Spear/Sword -> Laser Blade Core

### Laser Blade Tools

Laser blade tools are tool items with laser blades.

- Laser Blade Axe
- Laser Blade Hoe
- Laser Blade Pickaxe
- Laser Blade Shovel
- Laser Blade Spear
- Laser Blade Sword

Laser blade tools have performance comparable to diamond tools.

- Mining level: Diamond tool
- Base mining speed: 8
- Durability: 2311
- Repair material: Laser blade core

A laser blade colorizer block can be used to change the colors of laser blade tools.

#### Laser Blade Axe

- Attack damage: 9
- Attack speed: 1

Crafting (shaped recipe):

    Laser Blade Axe
    2x Iron Ingot (#), 2x Diamond (D) and 1x Laser Blade Core (X)
    | D | X |   |
    | D | # |   |
    |   | # |   |

#### Laser Blade Hoe

- Attack damage: 1
- Attack speed: 4

Crafting (shaped recipe):

    Laser Blade Hoe
    2x Iron Ingot (#), 1x Diamond (D) and 1x Laser Blade Core (X)
    | D | X |   |
    |   | # |   |
    |   | # |   |

#### Laser Blade Pickaxe

- Attack damage: 5
- Attack speed: 1.2

Crafting (shaped recipe):

    Laser Blade Pickaxe
    2x Iron Ingot (#), 2x Diamond (D) and 1x Laser Blade Core (X)
    | D | X | D |
    |   | # |   |
    |   | # |   |

#### Laser Blade Shovel

- Attack damage: 5.5
- Attack speed: 1

Crafting (shaped recipe):

    Laser Blade Shovel
    2x Iron Ingot (#) and 1x Laser Blade Core (X)
    |   | X |   |
    |   | # |   |
    |   | # |   |

#### Laser Blade Spear

- Attack damage: 4
- Attack speed: 0.95

Crafting (shaped recipe):

    Laser Blade Spear
    2x Iron Ingot (#) and 1x Laser Blade Core (X)
    |   |   | X |
    |   | # |   |
    | # |   |   |

#### Laser Blade Sword

- Attack damage: 7
- Attack speed: 1.6

Crafting (shaped recipe):

    Laser Blade Sword
    1x Iron Ingot (#), 1x Diamond (D) and 1x Laser Blade Core (X)
    |   | D |   |
    |   | X |   |
    |   | # |   |

## Blocks

### Laser Blade Colorizer

A laser blade colorizer is a utility block used to change the colors of laser blade tools.

Crafting (shaped recipe):

    Laser Blade Colorizer
    1x Crafting Table (#) and 1x Laser Blade Core (X)
    |   | X |   |
    |   | # |   |
    |   |   |   |

The interface is accessed by using (right-clicking) a placed laser blade colorizer.

The procedure for changing the colors of laser blade tools is as follows:

1. Place a laser blade tool in the input slot on the left side of the interface
2. Press the cycle buttons below to select the color of each part
3. Take the recolored laser blade tool from the result slot in the center

## Mechanism

### Laser Blade Tool Coloring

The colors of each part of laser blade tools are stored using the `minecraft:custom_model_data` component.

    minecraft:custom_model_data={
      flags:[(is handle color set),(is outer blade color set),(is inner blade color set)],
      colors:[(handle color),(outer blade color),(inner blade color)]
    }

These values stored in each tool are used in item models.

Parts whose `flags` are set to `true` are rendered using the colors set in `colors`;
otherwise, they are rendered using the default colors specified by the item models.

### Laser Blade Rendering

This mod uses mixins to assign a custom unlit render type to specific models.
The targets are item models in the `laserbladetools` namespace whose file names end with `_blade`.

## Resource Pack

Additional resource pack for LaserBlade-Tools.

- [Readme](https://github.com/Iunius118/laserblade-tools/blob/main/resourcepacks/README.md)

### LaserBlade-Tools: Slim sword texture

Replaces the Laser Blade Sword texture with a slimmer version.

- Download: [CurseForge](https://www.curseforge.com/minecraft/texture-packs/laserblade-tools-slim-tool-textures)
- License: MIT License
