Blueprint

Blueprint System

Blueprint Types

  1. Specific Blueprints: One blueprint per item

    • Create item with name matching the recipe

  2. Shared Blueprints: One blueprint for multiple items

    • Use blueprint.name in recipe to link to common blueprint

    • Example: brake_blueprint used by multiple brake recipes


You can define blueprints for sale in lvs_shop or use exports

shops = {
    {
        type = 'youtool',
        ...
        items = {
    			{
    				type = 'blueprints',
    				name = 'lvs_blueprint',
    				price = 1500,
    				label = 'Toolbox blueprint',
    				metadata = {
    					type = 'blueprint',
    					label = 'Toolbox blueprint',
    					recipe = 'mechanic_toolbox', -- items name
    					durability = 100
    				}
    			},
    			{
    				type = 'blueprints',
    				name = 'lvs_blueprint',
    				price = 5000,
    				label = 'Brake blueprint',
    				metadata = {
    					type = 'blueprint',
    					label = 'Brake Blueprint',
    					recipe = 'brake_blueprint', -- general name defined in recipes
    					durability = 100
    				}
    			},
        },
        ...
    },
    ...
}

Blueprint Durability Mechanics

  • Starting durability: 100 (or custom value in metadata)

  • Durability loss: recipe.blueprint.degrade * 100 per craft or default Config.DefaultBlueprintDurabilityDegrade

  • Example: degrade = 0.05 โ†’ loses 5 durability per craft โ†’ 20 crafts until destroyed

  • When durability reaches 0: Tool is automatically removed from inventory

  • If degrade = 0: blueprint has no durability losses

Last updated