123456789101112131415 |
- extends Node
- @export var block_prefab = preload("res://prefabs/default_block.tscn")
- @export var target_chunk: Node3D
- # Called when the node enters the scene tree for the first time.
- func _ready():
- var new_blk: MeshInstance3D = block_prefab.instantiate()
- new_blk.set_instance_shader_parameter("blkcolor", Color(0.0, 0.3, 1.0))
- target_chunk.add_child(new_blk)
- # Called every frame. 'delta' is the elapsed time since the previous frame.
- func _process(delta):
- pass
|