Terrain Generation V2
Key RequiredUniversal

Terrain Generation V2

Universal ScriptUnnesscaryInventionsUnnesscaryInventions 128.8K views 168 executesUpdated Aug 16, 2024
5.0/ 5(1 votes)
10100% Positive
Lua Script•1 lines (751 chars)
local a=32;local b=8;local c=2;local d=10;local e=0.05;local f=3;local g=Vector3.new(0,50,0)local function h()for i=0,b-1 do for j=0,b-1 do local k=i*a;local l=j*a;for m=0,a-1 do for n=0,a-1 do local o=k+m;local p=l+n;local q=0;local r=1;local s=e;for t=1,f do q=q+r*math.noise(o*s,p*s)r=r*0.5;s=s*2 end;q=(q+1)/2;local u=q*d;for v=0,u-1 do local w=Instance.new("Part")w.Size=Vector3.new(c,c,c)w.Position=g+Vector3.new(o*c,v*c,p*c)w.Anchored=true;w.BrickColor=BrickColor.new("Light green")w.Material=Enum.Material.Mud;w.Parent=workspace end;local x=Instance.new("Part")x.Size=Vector3.new(c,c,c)x.Position=g+Vector3.new(o*c,u*c,p*c)x.Anchored=true;x.BrickColor=BrickColor.Green()x.Material=Enum.Material.Grass;x.Parent=workspace end end end end end;h()

Features & Information

Uses perlin noise to generate smooth terrain Note : when ran expect client freezes since it loads the terrain immediately Dimensions : Block : 2x2 stud Chunk : 32 blocks World : 8x8 chunks No trees yet since like uh i still need to optimize how terrain are generated
#Terrain#Minecraft

Community Comments (2)

UnnesscaryInventionsUnnesscaryInventionsAug 16, 2024(edited)

Just unmifiy this if you want to optimize this

WhatsHisIdentifierWhatsHisIdentifierAug 19, 2024(edited)

kinda fire

More Scripts for Universal Scripts