Depends on
Required for this file to work correctly.
About RNPCs Builders Addon
This addon for RoamingNPCs turns roamers into builders. Bot picks a spot, builds a whole base from a ready CopyPaste blueprint with a building plan and a hammer, and then lives in it: stores loot, repairs the walls, rebuilds what raiders destroyed and defends the cupboard.
Building by Hand
- The bot looks for a flat free area away from other bases, monuments, roads and deep water.
- It builds base piece by piece: foundations, walls and floors, roof, doors, furniture, cupboard, then turrets and traps.
- Every piece is placed with the building plan in hand and upgraded with a hammer to the blueprint grade.
- 3 ready bases come with the addon or you can add your own CopyPaste blueprints.
Loot Storage
- When the backpack is almost full, the bot carries loot to its base
- When the boxes are full, it places an extra large box next to them
Repair and Rebuilding
- A damaged block gets repaired: the bot walks up and hits it with a hammer until it is fully repaired.
- Destroyed building blocks and entities are placed again after the raid.
- If the cupboard is destroyed or taken over, bot builds a new base elsewhere.
Defense and Upkeep
- Player damage to the base turns on raid mode: the bot gets aggressive and repairs the whole base wherever it is.
- Auto turrets get the weapon and ammo from the config. Shotgun traps, flame turrets and SAM sites are loaded too.
- Bot powers turrets, SAM sites and lights itself - no generator or wiring.
- Cupboard is topped up with resources to prevent decay.
- After death bot respawns at the base sleeping bag.
Customization
- Repair threshold, paid or free repair, rebuild delay, interval between parts.
- Raid mode radius and time, aggression can be turned off.
- Storage containers and amount of extra boxes.
Commands (permission npcscontroller.admin)
- /rnpc build list - active bases and their progress
- /rnpc build remove <preset> [slot] - destroy the base
- /rnpc build draw - show or hide bot bases
Requirements
- Latest version of RoamingNPCs
- Blueprints CopyPaste files (data/RNPCsBuildersAddon/Buildings/), 3 bases comes with addon
Video Demo:
Configuration:
{ "General settings": { "Prefabs builders skip from blueprints (shortname or full path)": [ "bed_deployed", "generator.small", "switch", "splitter", "electrical.branch.deployed", "electrical.combiner.deployed", "hbhfsensor.deployed", "andswitch.entity" ] }, "Builder bot settings (key = preset name from RoamingNPCs config)": { "bob_resources_farmer": { "Enable preset?": true, "Building settings": { "Use resources from inventory/containers?": false, "Blacklisted items for building (shortname/itemID)": [], "CopyPaste blueprint file names (no .json in name) in data/RNPCsBuildersAddon/Buildings/": [ "rnpcs_base_1", "rnpcs_base_2", "rnpcs_base_3" ] }, "Repair settings": { "Use resources for repair?": false, "Blacklisted items for repair": [], "Block HP threshold below which repair state activates": 0.75, "Restore destroyed base parts after a raid?": true, "Calm time without base damage before restoring": 60.0 }, "Storage settings": { "Container prefabs to store loot in": [ "box.wooden.large", "small.stash" ], "Collect dropped loot in the base area (bags and items)?": true, "Extra space radius to find dropped loot": 5.0, "How many extra large boxes the builder may place in the base when its boxes are full (0 - none)": 10, "Delete loot that nowhere to put from the inventory (otherwise it stays in the bot's inventory)?": true }, "Cupboard (TC) settings": { "Enable auto fill cupboard with resources?": true, "Take resources from bot inventory? (false — spawn)": false, "Blacklisted items for fill": [], "Fill radius — bot must be within this distance from TC": 8.0, "Check interval (minimum 5)": 30.0 }, "Turrets and traps settings": { "Weapon for auto turret": { "Item settings": { "Item shortname or ID": "rifle.ak", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 0.0, "Max": 0.0 }, "Attachments": null }, "Ammo for auto turret": { "Item settings": { "Item shortname or ID": "ammo.rifle", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 128.0, "Max": 128.0 }, "Attachments": null }, "Enable peacekeeper mode on auto turret": true, "Rockets for SAM": { "Min": 24.0, "Max": 24.0 }, "SAM defender mode: shoots only MLRS rockets, not vehicles": false, "Auto-refill base turrets/traps?": true, "Take weapon/ammo/fuel from bot inventory? (false — spawn)": false, "Refill radius — bot manages turrets/traps within this range": 30.0, "Refill interval (minimum 5)": 30.0 }, "Aggressive personality when base is being raided": true, "Keep raid mode while the attacker is within this distance of the base (0 = fresh damage only)": 30.0, "Max raid mode hold in seconds after the last damage": 180.0, "Respawn at own base sleeping bag (if present in blueprint)": true, "Base placement search radius": 60.0, "Extended place search radius when nothing is found within the main one (0 or not above the main radius = search within the main radius only)": 300.0, "Max terrain slope for base": 25.0, "Relocate when no place is found": true, "Place search failures without movement before relocation": 2, "Min relocation distance": 100.0, "Max relocation distance": 250.0, "Seconds per block placement": 1.0, "Auto-close base doors after (0 = off)": 5.0 }, "john_looter": { "Enable preset?": true, "Building settings": { "Use resources from inventory/containers?": false, "Blacklisted items for building (shortname/itemID)": [], "CopyPaste blueprint file names (no .json in name) in data/RNPCsBuildersAddon/Buildings/": [ "rnpcs_base_1", "rnpcs_base_2", "rnpcs_base_3" ] }, "Repair settings": { "Use resources for repair?": false, "Blacklisted items for repair": [], "Block HP threshold below which repair state activates": 0.75, "Restore destroyed base parts after a raid?": true, "Calm time without base damage before restoring": 60.0 }, "Storage settings": { "Container prefabs to store loot in": [ "box.wooden.large", "small.stash" ], "Collect dropped loot in the base area (bags and items)?": true, "Extra space radius to find dropped loot": 5.0, "How many extra large boxes the builder may place in the base when its boxes are full (0 - none)": 10, "Delete loot that nowhere to put from the inventory (otherwise it stays in the bot's inventory)?": true }, "Cupboard (TC) settings": { "Enable auto fill cupboard with resources?": true, "Take resources from bot inventory? (false — spawn)": false, "Blacklisted items for fill": [], "Fill radius — bot must be within this distance from TC": 8.0, "Check interval (minimum 5)": 30.0 }, "Turrets and traps settings": { "Weapon for auto turret": { "Item settings": { "Item shortname or ID": "rifle.ak", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 0.0, "Max": 0.0 }, "Attachments": null }, "Ammo for auto turret": { "Item settings": { "Item shortname or ID": "ammo.rifle", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 128.0, "Max": 128.0 }, "Attachments": null }, "Enable peacekeeper mode on auto turret": true, "Rockets for SAM": { "Min": 24.0, "Max": 24.0 }, "SAM defender mode: shoots only MLRS rockets, not vehicles": false, "Auto-refill base turrets/traps?": true, "Take weapon/ammo/fuel from bot inventory? (false — spawn)": false, "Refill radius — bot manages turrets/traps within this range": 30.0, "Refill interval (minimum 5)": 30.0 }, "Aggressive personality when base is being raided": true, "Keep raid mode while the attacker is within this distance of the base (0 = fresh damage only)": 30.0, "Max raid mode hold in seconds after the last damage": 180.0, "Respawn at own base sleeping bag (if present in blueprint)": true, "Base placement search radius": 60.0, "Extended place search radius when nothing is found within the main one (0 or not above the main radius = search within the main radius only)": 300.0, "Max terrain slope for base": 25.0, "Relocate when no place is found": true, "Place search failures without movement before relocation": 2, "Min relocation distance": 100.0, "Max relocation distance": 250.0, "Seconds per block placement": 1.0, "Auto-close base doors after (0 = off)": 5.0 }, "alfred_hunter": { "Enable preset?": true, "Building settings": { "Use resources from inventory/containers?": false, "Blacklisted items for building (shortname/itemID)": [], "CopyPaste blueprint file names (no .json in name) in data/RNPCsBuildersAddon/Buildings/": [ "rnpcs_base_1", "rnpcs_base_2", "rnpcs_base_3" ] }, "Repair settings": { "Use resources for repair?": false, "Blacklisted items for repair": [], "Block HP threshold below which repair state activates": 0.75, "Restore destroyed base parts after a raid?": true, "Calm time without base damage before restoring": 60.0 }, "Storage settings": { "Container prefabs to store loot in": [ "box.wooden.large", "small.stash" ], "Collect dropped loot in the base area (bags and items)?": true, "Extra space radius to find dropped loot": 5.0, "How many extra large boxes the builder may place in the base when its boxes are full (0 - none)": 10, "Delete loot that nowhere to put from the inventory (otherwise it stays in the bot's inventory)?": true }, "Cupboard (TC) settings": { "Enable auto fill cupboard with resources?": true, "Take resources from bot inventory? (false — spawn)": false, "Blacklisted items for fill": [], "Fill radius — bot must be within this distance from TC": 8.0, "Check interval (minimum 5)": 30.0 }, "Turrets and traps settings": { "Weapon for auto turret": { "Item settings": { "Item shortname or ID": "rifle.ak", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 0.0, "Max": 0.0 }, "Attachments": null }, "Ammo for auto turret": { "Item settings": { "Item shortname or ID": "ammo.rifle", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 128.0, "Max": 128.0 }, "Attachments": null }, "Enable peacekeeper mode on auto turret": true, "Rockets for SAM": { "Min": 24.0, "Max": 24.0 }, "SAM defender mode: shoots only MLRS rockets, not vehicles": false, "Auto-refill base turrets/traps?": true, "Take weapon/ammo/fuel from bot inventory? (false — spawn)": false, "Refill radius — bot manages turrets/traps within this range": 30.0, "Refill interval (minimum 5)": 30.0 }, "Aggressive personality when base is being raided": true, "Keep raid mode while the attacker is within this distance of the base (0 = fresh damage only)": 30.0, "Max raid mode hold in seconds after the last damage": 180.0, "Respawn at own base sleeping bag (if present in blueprint)": true, "Base placement search radius": 60.0, "Extended place search radius when nothing is found within the main one (0 or not above the main radius = search within the main radius only)": 300.0, "Max terrain slope for base": 25.0, "Relocate when no place is found": true, "Place search failures without movement before relocation": 2, "Min relocation distance": 100.0, "Max relocation distance": 250.0, "Seconds per block placement": 1.0, "Auto-close base doors after (0 = off)": 5.0 }, "austin_fighter": { "Enable preset?": true, "Building settings": { "Use resources from inventory/containers?": false, "Blacklisted items for building (shortname/itemID)": [], "CopyPaste blueprint file names (no .json in name) in data/RNPCsBuildersAddon/Buildings/": [ "rnpcs_base_1", "rnpcs_base_2", "rnpcs_base_3" ] }, "Repair settings": { "Use resources for repair?": false, "Blacklisted items for repair": [], "Block HP threshold below which repair state activates": 0.75, "Restore destroyed base parts after a raid?": true, "Calm time without base damage before restoring": 60.0 }, "Storage settings": { "Container prefabs to store loot in": [ "box.wooden.large", "small.stash" ], "Collect dropped loot in the base area (bags and items)?": true, "Extra space radius to find dropped loot": 5.0, "How many extra large boxes the builder may place in the base when its boxes are full (0 - none)": 10, "Delete loot that nowhere to put from the inventory (otherwise it stays in the bot's inventory)?": true }, "Cupboard (TC) settings": { "Enable auto fill cupboard with resources?": true, "Take resources from bot inventory? (false — spawn)": false, "Blacklisted items for fill": [], "Fill radius — bot must be within this distance from TC": 8.0, "Check interval (minimum 5)": 30.0 }, "Turrets and traps settings": { "Weapon for auto turret": { "Item settings": { "Item shortname or ID": "rifle.ak", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 0.0, "Max": 0.0 }, "Attachments": null }, "Ammo for auto turret": { "Item settings": { "Item shortname or ID": "ammo.rifle", "Item name (leave empty for default name)": "", "Item skin": 0 }, "Random amount": { "Min": 128.0, "Max": 128.0 }, "Attachments": null }, "Enable peacekeeper mode on auto turret": true, "Rockets for SAM": { "Min": 24.0, "Max": 24.0 }, "SAM defender mode: shoots only MLRS rockets, not vehicles": false, "Auto-refill base turrets/traps?": true, "Take weapon/ammo/fuel from bot inventory? (false — spawn)": false, "Refill radius — bot manages turrets/traps within this range": 30.0, "Refill interval (minimum 5)": 30.0 }, "Aggressive personality when base is being raided": true, "Keep raid mode while the attacker is within this distance of the base (0 = fresh damage only)": 30.0, "Max raid mode hold in seconds after the last damage": 180.0, "Respawn at own base sleeping bag (if present in blueprint)": true, "Base placement search radius": 60.0, "Extended place search radius when nothing is found within the main one (0 or not above the main radius = search within the main radius only)": 300.0, "Max terrain slope for base": 25.0, "Relocate when no place is found": true, "Place search failures without movement before relocation": 2, "Min relocation distance": 100.0, "Max relocation distance": 250.0, "Seconds per block placement": 1.0, "Auto-close base doors after (0 = off)": 5.0 } } }