Fix Parse Error: Static constant 'new' not present in built-in type NAME_1.
in this code:

extends Resource

var terrain: NAME_1

func _ready():
	terrain = NAME_1.new()
	terrain.center = Vector3(0, 0, 0)
	terrain.size = Vector3(100, 100, 0)
	terrain.constant_normal = Vector3(0, 1, 0)
	terrain.divisions_u = 16
	terrain.divisions_v = 16

func _process(vars: Variant):
	# Get the camera's position and direction
	var cam_pos = get_node("Camera").position
	var cam_rot = get_node("Camera").rotation_degrees

	# Transform the terrain NAME_1 to match the camera's perspective
	terrain.transform = Matrix4.rotation(Vector3(0, 1, 0), cam_rot) * Matrix4.translate(cam_pos)

	# Get the current terrain texture
	var texture = terrain.get_texture(0)

	# Draw the terrain NAME_1 to the screen
	draw_NAME_1(texture, terrain.world_transform)