# Cheatsheet
O.F.Device (Ore Farming Device) v1.0.0

## Blocks
### OF Device
- Recipe (# = Stone, F = Furnace, L = Lever, i = Iron Ingot, x = Stone Pickaxe)
  - ` # F # `
  - ` # L # `
  - ` i x i `
- Make Stones or Ores from Cobblestone
- Products made from Cobblestone: Stone, Coal Ore, Iron Ore, Lapis Lazuli Ore
- Make Nether Bricks or Nether Ores from Netherrack
- Products made from Netherrack: Nether Brick, Nether Quartz Ore, Nether Gold Ore
- Require fuel to work
- Put materials in the upper right slot and fuel in the left slot on the GUI
- Products will be output to the bottom right slot on the GUI
- If the output slot fills up during operation, the products are ejected out of the block
- Hopper can be used to push materials and fuel into the device, and to pull products from the device
- Farming efficiency: appearance rate of ores increases with number of players, villagers, etc. (up to 3) around the device (5x3x5)
- The appearance of the OF Device block can be changed using a stick.

### OF Device Mod 1
- Recipe (crafting): OF Device + Iron Pickaxe
- Recipe (smithing): OF Device + Iron Pickaxe
- Processing speed is faster than OF Device
- Products made from Cobblestone: Stone, Coal Ore, Iron Ore, Redstone Ore, Gold Ore, Lapis Lazuli Ore, Diamond Ore
- Products made from Netherrack: Nether Brick, Nether Quartz Ore, Nether Gold Ore

### OF Device Mod 2
- Recipe (crafting): OF Device Mod 1 + Diamond Pickaxe
- Recipe (smithing): OF Device Mod 1 + Diamond Pickaxe
- Processing speed is faster than OF Device Mod 1
- Products made from Cobblestone: Stone, Coal Ore, Iron Ore, Redstone Ore, Gold Ore, Lapis Lazuli Ore, Diamond Ore, Emerald Ore
- Products made from Netherrack: Nether Brick, Nether Quartz Ore, Nether Gold Ore, Ancient Debris

## Items
### OF C Feeder I
- Recipe (L = Lava Bucket, R = Redstone Repeater, P = Piston, x = Stone Pickaxe, W = Water Bucket)
  - ` _ _ L `
  - ` R P x `
  - ` _ _ W `
- This item provides an infinite supply of Cobblestones to OF Devices
- Place this item in the material slot of an OF device
- This item consumes twice as much fuel as material blocks
- Recycling recipe (crafting): OF C Feeder I + Bucket -> Lava Bucket

### OF C Feeder II
- Recipe (crafting): OF C Feeder I + Diamond Pickaxe
- Recipe (smithing): OF C Feeder I + Diamond Pickaxe
- Improved version of Feeder I with no increase in fuel consumption
- Recycling recipe (crafting): OF C Feeder II + Bucket -> Lava Bucket
- Recycling recipe (crafting): OF C Feeder II + Stick -> Diamond Pickaxe

## Config
`(world_save_dir)/serverconfig/orefarmingdevice-server.toml`

Restart the game when you change the config. In multiplayer mode, server-side config will be used.

- isCobblestoneFeederAvailable (boolean, default value is true)
  - Whether OF Cobblestone Feeder is available for devices
- enableFarmingEfficiency (boolean, default value is true)
  - Whether mobs around device increase farming efficiency of device
- accelerateProcessingSpeedByMod (boolean, default value is true)
  - Whether to accelerate processing speed of device by modification
- increaseFuelConsumptionByMod (boolean, default value is true)
  - Whether to increase fuel consumption of device by modification

## Modifying Product Tables
The products and their probabilities of each device can be modified using loot table in data pack. JSON files for the loot tables corresponding to each device are as follows.

Here is the formula for the corrected weight: `weight + (farming_efficiency * quality)`.

### OF Device
- Cobblestone:       `(data_pack_root)/data/orefarmingdevice/loot_tables/device_0.json`
- Netherrack:        `(data_pack_root)/data/orefarmingdevice/loot_tables/device_0_n.json`

### OF Device Mod 1
- Cobblestone:       `(data_pack_root)/data/orefarmingdevice/loot_tables/device_1.json`
- Netherrack:        `(data_pack_root)/data/orefarmingdevice/loot_tables/device_1_n.json`

### OF Device Mod 2
- Cobblestone:       `(data_pack_root)/data/orefarmingdevice/loot_tables/device_2.json`
- Netherrack:        `(data_pack_root)/data/orefarmingdevice/loot_tables/device_2_n.json`
