basic command blocks now working

This commit is contained in:
Clevertop 2024-08-10 22:37:32 +10:00
parent 220ca2886f
commit 52426368b1
15 changed files with 235 additions and 14 deletions

View file

@ -37,10 +37,12 @@ func _process(delta):
print("Tick: " + str(current_tick))
for i in pedestals.size():
if i+1 == current_tick:
pedestals[i].mesh.mesh.material = pedestal_on_mat
else:
pass
#pedestals[i].mesh.material
var activated_pedestal = pedestals[i]
activated_pedestal.mesh.mesh.material = pedestal_on_mat
if activated_pedestal.has_command:
print("broadcasting: " + activated_pedestal.placed_command.command_name)
broadcast.emit(activated_pedestal.placed_command.command_name)
pass