Combinable Items
This commit is contained in:
@@ -8,6 +8,9 @@
|
||||
[ext_resource type="Animation" uid="uid://d1xnpyc08njjx" path="res://addons/godot-xr-tools/hands/animations/right/Grip 4.res" id="6_bdp75"]
|
||||
[ext_resource type="Script" uid="uid://bs7cxydoxk1cx" path="res://cookable_item.gd" id="7_hc3f7"]
|
||||
[ext_resource type="PackedScene" uid="uid://cucc3gaqu2nab" path="res://Charcoal.tscn" id="8_a0a5b"]
|
||||
[ext_resource type="Script" uid="uid://dounic663dn5q" path="res://combinable_item.gd" id="9_comb"]
|
||||
[ext_resource type="Script" uid="uid://e3im02nq5cye" path="res://combine_zone.gd" id="10_zone"]
|
||||
[ext_resource type="Script" uid="uid://coidnv8b2yvxr" path="res://combine_recipe.gd" id="11_recipe"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_m1xbq"]
|
||||
size = Vector3(0.1, 0.1, 0.1)
|
||||
@@ -29,6 +32,14 @@ script = ExtResource("4_hc3f7")
|
||||
closed_pose = ExtResource("6_bdp75")
|
||||
metadata/_custom_type_script = "uid://dvobm6vcfnqe8"
|
||||
|
||||
[sub_resource type="Resource" id="Resource_recipe_cube"]
|
||||
script = ExtResource("11_recipe")
|
||||
ingredient_id = &"cube"
|
||||
result = ExtResource("8_a0a5b")
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_combine"]
|
||||
size = Vector3(0.16, 0.16, 0.16)
|
||||
|
||||
[node name="PickableObject" unique_id=1675596942 instance=ExtResource("1_dbtw8")]
|
||||
|
||||
[node name="CollisionShape3D" parent="." index="0"]
|
||||
@@ -49,3 +60,14 @@ hand_pose = SubResource("Resource_qyiot")
|
||||
script = ExtResource("7_hc3f7")
|
||||
cooking_time = 2.0
|
||||
turns_into = ExtResource("8_a0a5b")
|
||||
|
||||
[node name="CombinableItem" type="Node" parent="." index="5" unique_id=1265358312]
|
||||
script = ExtResource("9_comb")
|
||||
id = &"cube"
|
||||
recipes = Array[ExtResource("11_recipe")]([SubResource("Resource_recipe_cube")])
|
||||
|
||||
[node name="CombineZone" type="Area3D" parent="." index="6" unique_id=1412308162]
|
||||
script = ExtResource("10_zone")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="CombineZone" index="0" unique_id=1926800015]
|
||||
shape = SubResource("BoxShape3D_combine")
|
||||
|
||||
Reference in New Issue
Block a user