Godot

From decentraland/godot-explorer · View interactive version

Godot is an AI agent skill from the GitHub repository decentraland/godot-explorer. Use when editing Godot files in this repo — scenes (.tscn) or resources (.tres) under `godot/`. Covers the .tscn/.tres serialization rules that differ from hand-written code, instance property overrides, and the repo's validation commands. Trigger on hand-editing a .tscn/.tres, "failed to load" reso

How to use this skill

Skill file

Godot files in this repo

The project runs a custom Godot 4.6 fork through xtask — cargo run -- run runs the client,

cargo run -- run -e opens the editor. There is no godot binary on PATH. UI placement lives in

the godot-ui-components skill, user-facing text in the i18n skill.

.tscn / .tres are serialization

[ext_resource type="Script" path="res://item.gd" id="1"]

[resource]
script = ExtResource("1")   # not preload()
item_name = "Sword"         # not var item_name = "Sword"

[sub_resource ...] + SubResource("id"). Never preload(); every id is declared before use.

Array[Resource]([SubResource("a")]), an untyped Array is plain [...]. Match the script.

there break when the editor re-saves. Simple property edits by hand are fine.

Instance property overrides

An instanced scene uses its defaults (often null) for child properties unless overridden with the

index syntax — a pickup with a null item_resource fails silently:

[node name="KeyPickup" parent="." instance=ExtResource("6_pickup")]

[node name="PickupInteraction" parent="KeyPickup" index="0"]
item_resource = ExtResource("7_key")

CPUParticles3D `color` / `color_ramp`

Particle colors only show when the mesh's material has vertex_color_use_as_albedo = true:

[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1"]
vertex_color_use_as_albedo = true

[sub_resource type="SphereMesh" id="SphereMesh_1"]
material = SubResource("StandardMaterial3D_1")

Validate

cargo run -- import-assets       # after adding assets or changing a scene
find godot/src -name '*.gd'      # must stay empty: the engine has no GDScript
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.