# Cheatsheet

[Chili Bullet Weapons](https://iunius118.github.io/ChiliBulletWeapons/)

Version 1.5.0

## How to Get Started

### 1. Obtain Curved Chili Pepper

Curved chili peppers can be obtained from breaking short grass.

### 2. Craft Chili Pepper Seeds

Chili pepper seeds can be crafted from curved chili pepper.

### 3. Grow Chili Pepper Crops

Chili pepper seeds can be placed on farmland by right-clicking, where they grow through eight stages.

Breaking the final stage produces 1 to 3 curved chili peppers and 1 to 3 bullet-like chili peppers.

## Farming

### Chili Pepper Seeds (CBW)

Chili pepper seeds can be obtained from curved chili pepper that can be obtained by breaking short grass or mature chili pepper crops.

When extracting chili pepper seeds from a curved chili pepper, use a crafting table or the player's crafting grid.

Crafting:

- Curved Chili Pepper -> Chili Pepper Seeds

### Chili Pepper Crops (CBW)

Chili pepper seeds can be planted on farmland and the crops will grow to stage eight.

Chili peppers can be harvested from the crop in the final growth stage.

Items produced when crops are broken at each stage:

- Stage 1-7 - 1x Chili Pepper Seeds (CBW)
- Stage  8  - 1-3x Curved Chili Pepper and 1-3x Bullet-like Chili Pepper

If harvested with Fortune enchanted tool, the number of chili peppers dropped will increase.

### Drying Curved Chili Peppers

A string of curved chili peppers is a block for drying curved chili peppers and can be hung from ceiling.

Crafting:

- 9x Curved Chili Pepper <-> 1x String of Curved Chili Peppers

Dried curved chili peppers are dropped by breaking the string of curved chili peppers placed.
If broken with Silk Touch enchanted tool, the block itself will drop.

Curved chili Peppers can also be dried by heating.

Cooking in Furnace/Smoker/Campfire:

- Curved Chili Pepper -> Dried Curved Chili Pepper

Dried curved chili peppers can be used in the same way as curved chili peppers in food.

### Compact Storage of Chili Peppers

Sacks of chili peppers can be used to store chili peppers in a compact fashion.

Crafting:

- 9x Dried Curved Chili Pepper <-> 1x Sack of Curved Chili Peppers
- 9x Bullet-like Chili Pepper <-> 1x Sack of Bullet-like Chili Peppers

### Composting

The following items can be added to composters:

- Chili Pepper Seeds (CBW)
- Curved Chili Pepper
- Dried Curved Chili Pepper
- Bullet-like Chili Pepper
- Chili Potato Sandwich
- Half-sized Chili Potato Sandwich
- Fried Chili Pepper

## Foods

### Hot Chili Sauce

Hot chili sauce is a hot sauce made from curved chili peppers and can be used to flavor food.

Crafting (shaped recipe):

    Hot Chili Sauce
    1x Water Bucket (w), 3x (Dried) Curved Chili Pepper (c), and 3x Glass Bottle (g) -> 3x Hot Chili Sauce
    |   | w |   |
    | c | c | c |
    | g | g | g |

Glass bottles will be returned when hot chili sauce is consumed.

A barrel of hot chili sauce can be used to make many bottles of hot chili sauce at one time.

Crafting (shaped recipe):

    Barrel of Hot Chili Sauce
    1x Water Bucket (w), 6x (Dried) Curved Chili Pepper (c)
    |   | w |   |
    | c | c | c |
    | c | c | c |

    Hot Chili Sauce
    1x Barrel of Hot Chili Sauce (#), 8x Glass Bottle (g) -> 8x Hot Chili Sauce
    | g | g | g |
    | g | # | g |
    | g | g | g |

### Sandwiches

Sandwiches can be crafted by combining curved chili pepper, cooked food, and bread.
Hot chili sauce can also be used in place of curved chili pepper.

Crafting (shapeless recipe):

- (Dried) Curved Chili Pepper/Hot Chili Sauce + Cooked Chicken + Bread -> 2x Chili Chicken Sandwich
- (Dried) Curved Chili Pepper/Hot Chili Sauce + Cooked Cod/Cooked Salmon + Bread -> 2x Chili Fish Sandwich
- (Dried) Curved Chili Pepper/Hot Chili Sauce + Cooked Mutton/Cooked Porkchop/Cooked Rabbit/Steak + Bread -> 2x Chili Meat Sandwich
- (Dried) Curved Chili Pepper/Hot Chili Sauce + Baked Potato + Bread -> 2x Chili Potato Sandwich

### Half-sized Sandwiches

Each sandwich can be divided into two half-sized pieces by crafting.

Crafting:

- Chili Chicken Sandwich -> 2x Half-sized Chili Chicken Sandwich
- Chili Fish Sandwich -> 2x Half-sized Chili Fish Sandwich
- Chili Meat Sandwich -> 2x Half-sized Chili Meat Sandwich
- Chili Potato Sandwich -> 2x Half-sized Chili Potato Sandwich

### Pasta Olio e Peperoncino

Pasta olio e peperoncino is a dish of pasta cooked in salted water, tossed with oil and crushed chili peppers, and served in a bowl.
This dish is really simple and poor, but it will prevent starvation.

Crafting (shaped recipe):

    Pasta Olio e Peperoncino
    1x (Dried) Curved Chili Pepper (c), 1x Wheat (w), and 1x Bowl (b)
    |   | c |   |
    | w | w | w |
    |   | b |   |

### Fried Chili Pepper

A fried chili pepper can be crafted from curved chili peppers and wheat and gives Speed effect (0:30) when eaten by the player.

Crafting (shapeless recipe):

- 3x (Dried) Curved Chili Pepper + Wheat -> 3x Fried Chili Pepper

## Weapons

### Bullet Chili Arrow

A bullet chili arrow serves as ammunition for bows, crossbows, and dispensers.

Crafting (shapeless recipe):

- Arrow + Bullet-like Chili Pepper -> Bullet Chili Arrow
- Arrow + Chili Bullet -> Bullet Chili Arrow

When a bullet chili arrow is shot and hits an entity or a block, it causes a small explosion, dealing explosive damage to nearby entities.

Power enchanted bows increase the explosive power and Multishot enchanted crossbows increase the number of bullet chili arrows shot.

### Chili Bullet

A chili bullet serves as ammunition for chili bullet guns and can be crafted from a bullet-like chili pepper.

Crafting:

- Bullet-like Chili Pepper -> Chili Bullet

Chili bullets will disappear two seconds after they are fired.

### Chili Bullet Gun

A chili bullet gun is a break-action single-shot firearm that fires chili bullets to attack mobs at a distance.

Crafting (shaped recipe):

    Chili Bullet Pistol
    2x Iron Ingot (i), 1x Chili Bullet (b), and 1x Any Planks (p)
    | i |   |   |
    |   | i |   |
    |   | p | b |

Chili bullet guns can be fired with the same operation as crossbows.
Specifically, unloaded guns can be loaded by holding down the right mouse button, and loaded guns can be fired by right-clicking.

Chili bullet guns can have the same enchantments as crossbows, and each gun can have a different appearance, display name, and performance depending on the enchantment it has.

Below is a list of enchantments that guns have and their corresponding display names:

- Piercing - Chili Bullet Rifle
- Multishot - Chili Bullet Shotgun
- Other than above - Chili Bullet Pistol

Chili bullet rifles are highly accurate, and bullets from them pass through the number of entities equal to the Piercing level.

Chili bullet shotguns are less accurate, and they can fire four bullets in a single shot but also have four times the ammunition consumption and wear per shot.

#### Upgrading Guns

Chili bullet guns can be upgraded by using upgrade items.

To upgrade a chili bullet gun, follow these steps:

1. Hold a gun in the off-hand
2. Hold an upgrade item in the main hand
3. Use (right-click) the item in the main hand

Currently, there are three types of upgrade items available.

- Bayonet Upgrade
- Gun Barrel Upgrade
- Gun Mechanism Upgrade

A bayonet upgrade is an item to upgrade a chili bullet gun to a chili bullet gun with bayonet.

A gun barrel upgrade gives Piercing II to a gun without Piercing and Multishot to a gun with Piercing IV.

A gun mechanism upgrade gives Quick Charge I to a gun without Quick Charge.

Crafting (shaped recipe):

    Bayonet Upgrade
    2x Iron Ingot (i), 1x Stick (s), and 6x Chili Bullet (b)
    | b | b | b |
    | i | i | s |
    | b | b | b |

    Gun Barrel Upgrade
    3x Iron Ingot (i) and 6x Chili Bullet (b)
    | b | b | b |
    | i | i | i |
    | b | b | b |

    Gun Mechanism Upgrade
    1x Any Planks (p), 2x Iron Ingot (i), and 6x Chili Bullet (b)
    | b | b | b |
    | p | i | i |
    | b | b | b |

### Chili Bullet Gun with Bayonet

A chili bullet gun with bayonet is a chili bullet gun with a bayonet fitted and can deal 6 (heart × 3) damage in melee combat.

Crafting (shapeless recipe):

- Bayonet Upgrade + Any chili bullet gun -> Chili Bullet Pistol with Bayonet

Bayonet upgrade items can be used to make a chili bullet gun with bayonet retaining the enchantments.

Each chili bullet gun with bayonet can also have a different appearance, display name, and performance depending on the enchantment it has.

Below is a list of enchantments that guns have and their corresponding display names:

- Piercing - Chili Bullet Rifle with Bayonet
- Multishot - Chili Bullet Shotgun with Bayonet
- Other than above - Chili Bullet Pistol with Bayonet

### Chili Bullet Machine Gun

A chili bullet machine gun is a gun for creative mode players and can only be obtained from the creative mode tab or command.

## Configuration

The configuration is saved in file `config/chilibulletweapons.toml`.

### Common

```toml
# The common section contains configuration values referenced by both the server and the client.
# In multiplayer mode, server-side values are used.
[common]

# A Boolean value of canShotgunMultiHit represents whether a single target can be damaged multiple times at once by bullets fired from a shotgun.
# If set to false, a single target will take damage from only one bullet at the same time.
canShotgunMultiHit = true

# A real number between 0 and 8 of chiliArrowDamageMultiplier represents the multiplier of the explosive power of bullet chili arrows.
chiliArrowDamageMultiplier = 1.0

# A non-negative real number of chiliBulletBaseDamage represents the base damage amount of a chili bullet fired from a gun.
# If set to 0, chili bullets will do no damage.
# Formula for chili bullet damage (chiliBulletBaseDamage > 0):
#   speed (initial) = 3 (pistols/shotguns) or 4 (rifles)
#   minDamage = ceil(speed * speed * chiliBulletBaseDamage)
#   maxDamage = floor(minDamage * 1.5) + 1
#   damage = a random integer between minDamage and maxDamage
chiliBulletBaseDamage = 0.85
```
