working on command blocks

This commit is contained in:
Clevertop 2024-08-10 19:26:53 +10:00
parent 685d9642dc
commit 8cceafb10c
10 changed files with 112 additions and 26 deletions

View file

@ -34,7 +34,10 @@ func _physics_process(delta):
# interact with stuff
if Input.is_action_just_pressed("interact"):
if "name" in raycast.get_collider():
print(raycast.get_collider().name)
if "command_name" in raycast.get_collider():
print(raycast.get_collider().command_name)
else:
print(raycast.get_collider().name)
object_clicked.emit(raycast.get_collider())
else:
print("womp womp")