Skip to main content

Configuration

The iRobot mod offers extensive configuration options to tailor the experience to your liking. The settings are split into two files: a common config for server-side logic and a client config for visual settings.

Locating the Config Files

After running the game with iRobot at least once, configuration files will be generated in your config/irobot/ directory:

  • irobot-common.yml: For server-side and gameplay settings (attributes, energy costs, behaviors).
  • irobot-client.yml: For client-side visual settings (outlines, GUI elements).

Common Configuration (irobot-common.yml)

These settings affect gameplay and must be the same on the server and all clients.

Robot General

KeyDefaultDescription
recharge_threshold_percentage0.2The energy percentage at which a robot will seek a charging station.

Robot Attributes

KeyDefaultDescription
max_health20.0The base maximum health of a robot.
movement_speed0.5The base movement speed of a robot.
attack_damage4.0The base attack damage of a robot.
block_break_speed1.0A multiplier for the robot's overall block breaking speed.
mining_efficiency0.0Additive bonus to block breaking speed, like the Efficiency enchantment.
submerged_mining_speed0.2The multiplier for mining speed when the robot is in water.
follow_range16.0The range at which the robot can follow its owner or track targets.

Energy System

KeyDefaultDescription
movement_energy_cost_per_meter0.0625Energy consumed per meter traveled.
mining_energy_cost_per_block5.0Energy consumed for each block mined.
farming_energy_cost_per_harvest1.0Energy consumed for harvesting a crop.
farming_energy_cost_per_replant1.0Energy consumed for replanting a crop.
woodcutting_energy_cost_per_log2.0Energy consumed for each log block broken.
woodcutting_energy_cost_per_replant1.0Energy consumed for replanting a sapling.
regeneration_cooldown_ticks20Ticks between each health regeneration pulse.
regeneration_energy_cost10.0Energy cost to regenerate health.
regeneration_amount1.0Amount of health regenerated per pulse.

Batteries

KeyDefaultDescription
small_battery_capacity500Maximum energy capacity of the Small Battery.
medium_battery_capacity1500Maximum energy capacity of the Medium Battery.
large_battery_capacity3000Maximum energy capacity of the Large Battery.

Modules

KeyDefaultDescription
speed_boost_multiplier0.5Movement speed multiplier (+50%).
mining_speed_bonus2.0Additive mining efficiency bonus.
attack_damage_bonus4.0Additive attack damage bonus.
durability_health_bonus20.0Additive max health bonus (+10 hearts).
battery_efficiency_multiplier0.75Multiplier for energy consumption (25% less energy used).
solar_panel_energy_per_second2.0Energy generated per second by the Solar Panel Module.

Blocks

KeyDefaultDescription
robot_station.charge_rate_per_tick1Energy restored per tick by the Robot Station.

Behaviors

KeyDefaultDescription
poi_search_range128Max range a robot will search for a Point of Interest.
mining.mine_block_timeout_ticks600Max time a robot will spend trying to mine a single block.
mining.mine_block_retry_attempts5How many times a robot will try to move closer to a block.
woodcutting.cut_tree_timeout_ticks6000Max time a robot will spend trying to cut down a single tree.
woodcutting.cut_tree_retry_attempts5How many times a robot will try to move closer to a tree.
farming.harvest_crop_delay_ticks20Delay after reaching a crop before the robot harvests it.
following_and_protecting.follow_owner_speed0.75Speed modifier when following its owner.
following_and_protecting.follow_start_distance6Distance at which the robot will start walking towards its owner.
following_and_protecting.follow_stop_distance4Distance at which the robot will stop walking towards its owner.
following_and_protecting.protect_owner_range16Range within which the robot will engage mobs attacking its owner.
following_and_protecting.stroll_in_area_cooldown_ticks100Cooldown between random strolls when in 'Protecting' mode.

Client Configuration (irobot-client.yml)

These settings only affect your local game's visuals.

Rendering

KeyDefaultDescription
render_task_area_outlinetrueRenders a visual outline for the area selected with the Task Marker.
outline_color.red64The red component of the outline color (0-255).
outline_color.green229The green component of the outline color (0-255).
outline_color.blue242The blue component of the outline color (0-255).
outline_color.alpha255The alpha (transparency) of the outline color (0-255).
outline_width0.0625The thickness of the rendered outline.

GUI

KeyDefaultDescription
robot_screen_entity_scale40The scale of the robot entity in the robot's GUI screen.
robot_screen_entity_y_offset0.25The vertical offset of the robot entity in the GUI.