Skip to content

๐ŸŒฟ BLN Veg Modifier โ€‹

bln veg modifier

๐Ÿ”ฝ Get it Now โ€‹

Download

A powerful tool designed to modify in-game vegetation with ease. Whether you want to clear out areas by removing grass, debris, bushes, and rocks, or flatten the landscape for better visuals and gameplay, this script gives you full control.

โœจ Features โ€‹

With a wide range of static vegetation modification options, you can:

  • ๐Ÿงน Remove or flatten vegetation types such as grass, debris, bushes, weeds, flowers, saplings, trees, rocks, and long grass
  • ๐Ÿ”ง Choose from multiple modifier types including flattening, exploding, or pushing vegetation to fit your needs

Modifier Types โ€‹

  • Cull - Remove vegetation
  • Flatten - Level the ground and remove vegetation
  • Flatten Deep Surface - Deeper flattening effect
  • Explode - Dramatically clear vegetation
  • Push - Push vegetation out of the area
  • Decal - Apply surface decals over vegetation

Supported Vegetation Types โ€‹

Debris, Grass, Bushes, Weeds, Flowers, Saplings, Trees, Rocks, and more.

๐Ÿ› ๏ธ Configuration โ€‹

Basic Setup โ€‹

lua
Config = {}

-- Distance to start veg modifier
-- Formula: distance + zone radius = total effect range
-- Example: 5.0 (distance) + 15.0 (zone radius) = 20.0 total
Config.distance = 5.0

-- Define your zones
Config.zones = {
    {
        key = "CampArea",                    -- Unique identifier
        position = vector3(-366.35, 807.82, 115.95),
        radius = 10.0,                        -- Zone radius
        flags = FLAGS.All,                    -- What to remove (see below)
        type = TYPES.VMT_Cull                 -- How to modify (recommended)
    },
    {
        key = "TradingPost",
        position = vector3(-5485.28, -3266.24, -21.15),
        radius = 150.0,
        flags = FLAGS.All,
        type = TYPES.VMT_Cull
    }
}

Configuration Options โ€‹

OptionTypeDescription
keystringUnique identifier for the zone
positionvector3Center coordinates of the zone
radiusfloatRadius of the affected area
flagstable/numberVegetation types to modify (see Flags below)
typenumberModification type (see Types below)

Vegetation Flags โ€‹

lua
FLAGS = {
    All = {1,2,4,8,16,32,64,128,256},  -- All vegetation types
    Debris = 1,
    Grass = 2,
    Bush = 4,
    Weed = 8,
    Flower = 16,
    Sapling = 32,
    Tree = 64,
    Rock = 128,
    LongGrass = 256
}

Modification Types โ€‹

lua
TYPES = {
    VMT_Cull = 1,                -- Remove vegetation (recommended)
    VMT_Flatten = 2,             -- Flatten and remove
    VMT_FlattenDeepSurface = 4,  -- Deep flattening
    VMT_Explode = 8,             -- Dramatic clearing
    VMT_Push = 16,               -- Push vegetation away
    VMT_Decal = 32               -- Apply decals
}

๐Ÿ”ง Advanced Usage โ€‹

Using Specific Vegetation Types โ€‹

To target specific vegetation instead of all types:

lua
{
    key = "PathwayClearing",
    position = vector3(100.0, 200.0, 50.0),
    radius = 5.0,
    flags = FLAGS.Grass,          -- Only remove grass
    type = TYPES.VMT_Cull
}

Or combine multiple types:

lua
{
    key = "CampSite",
    position = vector3(100.0, 200.0, 50.0),
    radius = 8.0,
    flags = {FLAGS.Grass, FLAGS.Bush, FLAGS.Weed},  -- Multiple types
    type = TYPES.VMT_Cull
}

Export for Other Resources โ€‹

You can create zones dynamically from other scripts:

lua
-- From another resource
exports.bln_veg_modifier:CreateZone({
    key = "DynamicZone",
    position = vector3(476.72, 477.51, 109.97),
    radius = 5.0,
    flags = FLAGS.All,
    type = TYPES.VMT_Cull
})

๐ŸŽฏ Common Use Cases โ€‹

  • ๐Ÿ•๏ธ Camp Sites - Clear areas for player camps
  • ๐Ÿ—๏ธ Building Plots - Prepare terrain for construction
  • ๐Ÿ›ค๏ธ Pathways - Create clear walking paths
  • ๐ŸŽช Event Areas - Set up clear spaces for server events
  • ๐Ÿฐ Hideouts - Prepare secret locations

โš™๏ธ Installation โ€‹

  1. Extract to your resources folder
  2. Add ensure bln_veg_modifier to your server.cfg
  3. Configure zones in config.lua
  4. Restart your server

๐Ÿ’ก Tips โ€‹

  • Recommended Type: VMT_Cull works best for most situations
  • Distance Formula: Config.distance + zone radius = total effect range
  • Performance: Smaller zones with specific flags perform better than large zones with all flags
  • Testing: Start with small radius values and increase as needed

๐Ÿค Support โ€‹

Need help? Have questions? Join our Discord server for support and updates!

  • ๐Ÿ’ฌ Discord: Join Our Community
  • ๐ŸŽฎ Live support and community help
  • ๐Ÿ”„ Regular updates and improvements

Built with โค๏ธ by BLN Studio