@dcl/asset-packs 2.24.0 → 2.25.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/index.js +70 -60
- package/catalog.json +119 -829
- package/dist/actions.js +7 -57
- package/dist/admin-toolkit-ui/VideoControl/utils.js +4 -5
- package/dist/admin-toolkit-ui/config.d.ts +9 -0
- package/dist/admin-toolkit-ui/config.js +34 -0
- package/dist/admin-toolkit-ui/index.d.ts +60 -3
- package/dist/admin-toolkit-ui/index.js +14 -8
- package/dist/admin-toolkit-ui/panel-api.d.ts +17 -0
- package/dist/admin-toolkit-ui/panel-api.js +17 -0
- package/dist/bin/index.js +70 -60
- package/dist/combat.d.ts +18 -0
- package/dist/combat.js +65 -0
- package/package.json +1 -1
package/catalog.json
CHANGED
|
@@ -104186,45 +104186,15 @@
|
|
|
104186
104186
|
}
|
|
104187
104187
|
},
|
|
104188
104188
|
{
|
|
104189
|
-
"name": "asset-packs::
|
|
104189
|
+
"name": "asset-packs::Script",
|
|
104190
104190
|
"data": {
|
|
104191
104191
|
"0": {
|
|
104192
104192
|
"json": {
|
|
104193
|
-
"id": "{self}",
|
|
104194
104193
|
"value": [
|
|
104195
104194
|
{
|
|
104196
|
-
"
|
|
104197
|
-
"
|
|
104198
|
-
"
|
|
104199
|
-
"allowedInBasicView": true
|
|
104200
|
-
},
|
|
104201
|
-
{
|
|
104202
|
-
"name": "Play Explosion Animation",
|
|
104203
|
-
"type": "play_animation",
|
|
104204
|
-
"jsonPayload": "{ \"animation\": \"Animation\" }"
|
|
104205
|
-
},
|
|
104206
|
-
{
|
|
104207
|
-
"name": "Explosion Damage",
|
|
104208
|
-
"type": "damage",
|
|
104209
|
-
"jsonPayload": "{ \"radius\": 10, \"hits\": 30, \"layer\": \"all\" }",
|
|
104210
|
-
"basicViewId": "action-explosion-damage"
|
|
104211
|
-
},
|
|
104212
|
-
{
|
|
104213
|
-
"name": "Damage",
|
|
104214
|
-
"type": "decrease_counter",
|
|
104215
|
-
"jsonPayload": "{ \"amount\": 1 }",
|
|
104216
|
-
"allowedInBasicView": true
|
|
104217
|
-
},
|
|
104218
|
-
{
|
|
104219
|
-
"name": "Remove",
|
|
104220
|
-
"type": "remove_entity",
|
|
104221
|
-
"jsonPayload": "{ }",
|
|
104222
|
-
"allowedInBasicView": true
|
|
104223
|
-
},
|
|
104224
|
-
{
|
|
104225
|
-
"name": "Delay Remove",
|
|
104226
|
-
"type": "start_delay",
|
|
104227
|
-
"jsonPayload": "{ \"actions\": [\"Remove\"], \"timeout\": 1 }"
|
|
104195
|
+
"path": "{assetPath}/Barrel.ts",
|
|
104196
|
+
"priority": 0,
|
|
104197
|
+
"layout": "{\"params\":{\"health\":{\"type\":\"number\",\"value\":30,\"optional\":true,\"tooltip\":\"How many hits the barrel takes before it explodes.\"},\"explosionRadius\":{\"type\":\"number\",\"value\":10,\"optional\":true,\"tooltip\":\"How far the explosion's damage reaches.\"},\"explosionDamage\":{\"type\":\"number\",\"value\":30,\"optional\":true,\"tooltip\":\"How much damage the explosion deals to each target.\"},\"explosionTarget\":{\"type\":\"enum\",\"value\":\"all\",\"options\":[\"all\",\"player\",\"non_player\"],\"optional\":true,\"tooltip\":\"Who the explosion damages.\"},\"animation\":{\"type\":\"string\",\"value\":\"Animation\",\"optional\":true,\"tooltip\":\"Animation clip played when it explodes.\"},\"removeAfter\":{\"type\":\"number\",\"value\":1,\"optional\":true,\"tooltip\":\"Seconds after exploding before the barrel is removed.\"}},\"actions\":[{\"methodName\":\"explode\",\"description\":\"Explodes the barrel: plays the animation, deals area damage, then removes it.\",\"params\":{}}],\"events\":[\"exploded\"]}"
|
|
104228
104198
|
}
|
|
104229
104199
|
]
|
|
104230
104200
|
}
|
|
@@ -104232,91 +104202,28 @@
|
|
|
104232
104202
|
}
|
|
104233
104203
|
},
|
|
104234
104204
|
{
|
|
104235
|
-
"name": "asset-packs::
|
|
104205
|
+
"name": "asset-packs::Actions",
|
|
104236
104206
|
"data": {
|
|
104237
104207
|
"0": {
|
|
104238
104208
|
"json": {
|
|
104209
|
+
"id": "{self}",
|
|
104239
104210
|
"value": [
|
|
104240
104211
|
{
|
|
104241
|
-
"
|
|
104242
|
-
"
|
|
104243
|
-
|
|
104244
|
-
"id": "{self:asset-packs::Counter}",
|
|
104245
|
-
"type": "when_counter_is_greater_than",
|
|
104246
|
-
"value": "0"
|
|
104247
|
-
}
|
|
104248
|
-
],
|
|
104249
|
-
"actions": [
|
|
104250
|
-
{
|
|
104251
|
-
"id": "{self:asset-packs::Actions}",
|
|
104252
|
-
"name": "Damage"
|
|
104253
|
-
}
|
|
104254
|
-
]
|
|
104255
|
-
},
|
|
104256
|
-
{
|
|
104257
|
-
"type": "on_counter_change",
|
|
104258
|
-
"conditions": [
|
|
104259
|
-
{
|
|
104260
|
-
"id": "{self:asset-packs::Counter}",
|
|
104261
|
-
"type": "when_counter_is_less_than",
|
|
104262
|
-
"value": "1"
|
|
104263
|
-
}
|
|
104264
|
-
],
|
|
104265
|
-
"actions": [
|
|
104266
|
-
{
|
|
104267
|
-
"id": "{self:asset-packs::Actions}",
|
|
104268
|
-
"name": "Explode"
|
|
104269
|
-
}
|
|
104270
|
-
]
|
|
104212
|
+
"name": "Explode",
|
|
104213
|
+
"type": "call_script_method",
|
|
104214
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/Barrel.ts\",\"methodName\":\"explode\",\"params\":{}}"
|
|
104271
104215
|
}
|
|
104272
104216
|
]
|
|
104273
104217
|
}
|
|
104274
104218
|
}
|
|
104275
104219
|
}
|
|
104276
|
-
},
|
|
104277
|
-
{
|
|
104278
|
-
"name": "asset-packs::Counter",
|
|
104279
|
-
"data": {
|
|
104280
|
-
"0": {
|
|
104281
|
-
"json": {
|
|
104282
|
-
"id": "{self}",
|
|
104283
|
-
"value": 30
|
|
104284
|
-
}
|
|
104285
|
-
}
|
|
104286
|
-
}
|
|
104287
|
-
},
|
|
104288
|
-
{
|
|
104289
|
-
"name": "inspector::Config",
|
|
104290
|
-
"data": {
|
|
104291
|
-
"0": {
|
|
104292
|
-
"json": {
|
|
104293
|
-
"isBasicViewEnabled": true,
|
|
104294
|
-
"componentName": "Barrel",
|
|
104295
|
-
"fields": [
|
|
104296
|
-
{
|
|
104297
|
-
"name": "Item Health Points",
|
|
104298
|
-
"type": "asset-packs::Counter"
|
|
104299
|
-
},
|
|
104300
|
-
{
|
|
104301
|
-
"name": "Explosion Damage",
|
|
104302
|
-
"type": "asset-packs::Actions",
|
|
104303
|
-
"basicViewId": "action-explosion-damage",
|
|
104304
|
-
"layout": "{\"radius\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Explosion Radius\" }, \"hits\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Explosion Damage\" }, \"layer\": { \"field\": \"Dropdown\", \"label\": \"Damage Target\" }}"
|
|
104305
|
-
}
|
|
104306
|
-
],
|
|
104307
|
-
"helpTooltip": {
|
|
104308
|
-
"text": "Barrel that, when triggered to explode, can damage a player’s health if they are nearby. Can be used with the Health Bar smart item."
|
|
104309
|
-
},
|
|
104310
|
-
"version": 1
|
|
104311
|
-
}
|
|
104312
|
-
}
|
|
104313
|
-
}
|
|
104314
104220
|
}
|
|
104315
104221
|
]
|
|
104316
104222
|
},
|
|
104317
104223
|
"contents": {
|
|
104224
|
+
"Barrel.ts": "bafkreidrfbie7a2p4rb4g2fqwwdvyep7tu5wfqpun66rqmd2lefzmew4ze",
|
|
104318
104225
|
"barrel.glb": "bafybeig2gwwp6xbfwm7gkjl7ugco3ybiyqkrsirhwbexvrs6fduzxrmblu",
|
|
104319
|
-
"composite.json": "
|
|
104226
|
+
"composite.json": "bafkreiawdee67zcoh74e43zlkdvspudbr2zdxtlaspxppat2fzx24qwt6e",
|
|
104320
104227
|
"thumbnail.png": "bafkreifw6hkhl3zfgubexagusu6euo4ve7ytykghbnhn3ejmmo4crsrfm4"
|
|
104321
104228
|
}
|
|
104322
104229
|
},
|
|
@@ -105642,7 +105549,7 @@
|
|
|
105642
105549
|
},
|
|
105643
105550
|
"contents": {
|
|
105644
105551
|
"Clap Here.png": "bafkreic4xg4jscaygwalx3q6tekhntz22ctainaz7pibxnn2lfj3qjhzoa",
|
|
105645
|
-
"ClapClaim.tsx": "
|
|
105552
|
+
"ClapClaim.tsx": "bafkreiebhgjwwchwntowy7eblxv26yy5llkofjnwaeqezsptxazavkd2wq",
|
|
105646
105553
|
"Stencil.png": "bafkreicfeptokbk4hrl3jqh62wvnyxd3vxt3shxwxorjodoyalgviyq4ea",
|
|
105647
105554
|
"bannerPlaceholder.png": "bafkreidgbotlsm22535shy6cib7adhhchjfw7evllsj4zhd7x27oe4a6i4",
|
|
105648
105555
|
"composite.json": "bafkreid7bnvrzljx73mmdmojtx23rkxtwksput7jwkwxconrot2qsukn3m",
|
|
@@ -106204,7 +106111,7 @@
|
|
|
106204
106111
|
]
|
|
106205
106112
|
},
|
|
106206
106113
|
"contents": {
|
|
106207
|
-
"ClickArea.tsx": "
|
|
106114
|
+
"ClickArea.tsx": "bafkreiaqozfycj36czze5tycjt6r76gs54z5qjsaepleqk2j5uksssiwq4",
|
|
106208
106115
|
"click_area.glb": "bafkreibm5p36qbiu24aceg6m7wos4tfarbi35on4qwuy3zj3u3g3lodjwa",
|
|
106209
106116
|
"composite.json": "bafkreifxw5aj7r2unb7f46t44yk7bhrs42fesp75uhdrw6zfswpaelim4u",
|
|
106210
106117
|
"thumbnail.png": "bafkreig7de3xm6dl4ove52ltoybt7dmivfgpd6jpadofpu67dlqg55li3q"
|
|
@@ -107852,29 +107759,15 @@
|
|
|
107852
107759
|
}
|
|
107853
107760
|
},
|
|
107854
107761
|
{
|
|
107855
|
-
"name": "asset-packs::
|
|
107762
|
+
"name": "asset-packs::Script",
|
|
107856
107763
|
"data": {
|
|
107857
107764
|
"0": {
|
|
107858
107765
|
"json": {
|
|
107859
|
-
"id": "{self}",
|
|
107860
107766
|
"value": [
|
|
107861
107767
|
{
|
|
107862
|
-
"
|
|
107863
|
-
"
|
|
107864
|
-
"
|
|
107865
|
-
"basicViewId": "action-heal-player"
|
|
107866
|
-
},
|
|
107867
|
-
{
|
|
107868
|
-
"name": "Remove",
|
|
107869
|
-
"type": "remove_entity",
|
|
107870
|
-
"jsonPayload": "{ }",
|
|
107871
|
-
"allowedInBasicView": true
|
|
107872
|
-
},
|
|
107873
|
-
{
|
|
107874
|
-
"name": "Heal",
|
|
107875
|
-
"type": "batch",
|
|
107876
|
-
"jsonPayload": "{ \"actions\": [\"Heal Player\", \"Remove\"] }",
|
|
107877
|
-
"allowedInBasicView": true
|
|
107768
|
+
"path": "{assetPath}/FirstAid.ts",
|
|
107769
|
+
"priority": 0,
|
|
107770
|
+
"layout": "{\"params\":{\"healingPoints\":{\"type\":\"number\",\"value\":100,\"optional\":true,\"tooltip\":\"How much health to restore when used.\"},\"hoverText\":{\"type\":\"string\",\"value\":\"Heal\",\"optional\":true,\"tooltip\":\"Text shown when the player points at the kit.\"},\"removeOnUse\":{\"type\":\"boolean\",\"value\":true,\"optional\":true,\"tooltip\":\"Remove the kit after it's used.\"}},\"actions\":[{\"methodName\":\"heal\",\"description\":\"Heals the player and, if enabled, removes the kit.\",\"params\":{}}],\"events\":[\"healed\"]}"
|
|
107878
107771
|
}
|
|
107879
107772
|
]
|
|
107880
107773
|
}
|
|
@@ -107882,53 +107775,27 @@
|
|
|
107882
107775
|
}
|
|
107883
107776
|
},
|
|
107884
107777
|
{
|
|
107885
|
-
"name": "asset-packs::
|
|
107778
|
+
"name": "asset-packs::Actions",
|
|
107886
107779
|
"data": {
|
|
107887
107780
|
"0": {
|
|
107888
107781
|
"json": {
|
|
107782
|
+
"id": "{self}",
|
|
107889
107783
|
"value": [
|
|
107890
107784
|
{
|
|
107891
|
-
"
|
|
107892
|
-
"
|
|
107893
|
-
|
|
107894
|
-
"id": "{self:asset-packs::Actions}",
|
|
107895
|
-
"name": "Heal"
|
|
107896
|
-
}
|
|
107897
|
-
],
|
|
107898
|
-
"basicViewId": "trigger-when-clicked"
|
|
107785
|
+
"name": "Heal",
|
|
107786
|
+
"type": "call_script_method",
|
|
107787
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/FirstAid.ts\",\"methodName\":\"heal\",\"params\":{}}"
|
|
107899
107788
|
}
|
|
107900
107789
|
]
|
|
107901
107790
|
}
|
|
107902
107791
|
}
|
|
107903
107792
|
}
|
|
107904
|
-
},
|
|
107905
|
-
{
|
|
107906
|
-
"name": "inspector::Config",
|
|
107907
|
-
"data": {
|
|
107908
|
-
"0": {
|
|
107909
|
-
"json": {
|
|
107910
|
-
"isBasicViewEnabled": true,
|
|
107911
|
-
"componentName": "First Aid",
|
|
107912
|
-
"helpTooltip": {
|
|
107913
|
-
"text": "Configure the healing points that players receive when they interact with this first aid item. Set the amount of health points to restore."
|
|
107914
|
-
},
|
|
107915
|
-
"fields": [
|
|
107916
|
-
{
|
|
107917
|
-
"name": "Healing Points",
|
|
107918
|
-
"type": "asset-packs::Actions",
|
|
107919
|
-
"basicViewId": "action-heal-player",
|
|
107920
|
-
"layout": "{\"multiplier\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Healing Points Amount\" } }"
|
|
107921
|
-
}
|
|
107922
|
-
],
|
|
107923
|
-
"version": 1
|
|
107924
|
-
}
|
|
107925
|
-
}
|
|
107926
|
-
}
|
|
107927
107793
|
}
|
|
107928
107794
|
]
|
|
107929
107795
|
},
|
|
107930
107796
|
"contents": {
|
|
107931
|
-
"
|
|
107797
|
+
"FirstAid.ts": "bafkreievornwyxb5gk6nawozwtnnb7n5kpgm26pzgurr4aoe24ns6hpm4a",
|
|
107798
|
+
"composite.json": "bafkreih4kjecsnwrwermm27sjjph5pcmwpajeygz5e4bkzfasp4duv33si",
|
|
107932
107799
|
"first_aid.glb": "bafybeig5yvni57zemcnz3ye65w4yzvva2ldcc3uait7pie2p4mf7jjwj4u",
|
|
107933
107800
|
"thumbnail.png": "bafkreieoizvtuimmlw3dmgsdto3zkyczxi5jxt62antrbw6iaobsvkmpti"
|
|
107934
107801
|
}
|
|
@@ -108589,35 +108456,15 @@
|
|
|
108589
108456
|
}
|
|
108590
108457
|
},
|
|
108591
108458
|
{
|
|
108592
|
-
"name": "asset-packs::
|
|
108459
|
+
"name": "asset-packs::Script",
|
|
108593
108460
|
"data": {
|
|
108594
108461
|
"0": {
|
|
108595
108462
|
"json": {
|
|
108596
|
-
"id": "{self}",
|
|
108597
108463
|
"value": [
|
|
108598
108464
|
{
|
|
108599
|
-
"
|
|
108600
|
-
"
|
|
108601
|
-
"
|
|
108602
|
-
},
|
|
108603
|
-
{
|
|
108604
|
-
"name": "Heal Player",
|
|
108605
|
-
"type": "heal_player",
|
|
108606
|
-
"jsonPayload": "{ \"multiplier\": 5 }",
|
|
108607
|
-
"basicViewId": "action-heal-player"
|
|
108608
|
-
},
|
|
108609
|
-
{
|
|
108610
|
-
"name": "Start Healing",
|
|
108611
|
-
"type": "start_loop",
|
|
108612
|
-
"jsonPayload": "{ \"actions\": [\"Heal Player\"], \"interval\": 0.5 }",
|
|
108613
|
-
"basicViewId": "action-healing-interval",
|
|
108614
|
-
"allowedInBasicView": true
|
|
108615
|
-
},
|
|
108616
|
-
{
|
|
108617
|
-
"name": "Stop Healing",
|
|
108618
|
-
"type": "stop_loop",
|
|
108619
|
-
"jsonPayload": "{ \"action\": \"Heal Player\" }",
|
|
108620
|
-
"allowedInBasicView": true
|
|
108465
|
+
"path": "{assetPath}/HealingPad.ts",
|
|
108466
|
+
"priority": 0,
|
|
108467
|
+
"layout": "{\"params\":{\"healPoints\":{\"type\":\"number\",\"value\":5,\"optional\":true,\"tooltip\":\"How much health each tick restores.\"},\"interval\":{\"type\":\"number\",\"value\":0.5,\"optional\":true,\"tooltip\":\"Seconds between heal ticks.\"},\"sound\":{\"type\":\"string\",\"value\":\"heal.mp3\",\"optional\":true,\"tooltip\":\"Audio file in this item's folder played when the player steps on (e.g. heal.mp3). Empty for none.\"}},\"actions\":[{\"methodName\":\"heal\",\"description\":\"Restores one tick of health to the player right now.\",\"params\":{}}],\"events\":[]}"
|
|
108621
108468
|
}
|
|
108622
108469
|
]
|
|
108623
108470
|
}
|
|
@@ -108625,73 +108472,27 @@
|
|
|
108625
108472
|
}
|
|
108626
108473
|
},
|
|
108627
108474
|
{
|
|
108628
|
-
"name": "asset-packs::
|
|
108475
|
+
"name": "asset-packs::Actions",
|
|
108629
108476
|
"data": {
|
|
108630
108477
|
"0": {
|
|
108631
108478
|
"json": {
|
|
108479
|
+
"id": "{self}",
|
|
108632
108480
|
"value": [
|
|
108633
108481
|
{
|
|
108634
|
-
"
|
|
108635
|
-
"
|
|
108636
|
-
|
|
108637
|
-
"id": "{self:asset-packs::Actions}",
|
|
108638
|
-
"name": "Start Healing"
|
|
108639
|
-
},
|
|
108640
|
-
{
|
|
108641
|
-
"id": "{self:asset-packs::Actions}",
|
|
108642
|
-
"name": "Play Heal Sound"
|
|
108643
|
-
}
|
|
108644
|
-
],
|
|
108645
|
-
"basicViewId": "trigger-when-start-healing"
|
|
108646
|
-
},
|
|
108647
|
-
{
|
|
108648
|
-
"type": "on_player_leaves_area",
|
|
108649
|
-
"actions": [
|
|
108650
|
-
{
|
|
108651
|
-
"id": "{self:asset-packs::Actions}",
|
|
108652
|
-
"name": "Stop Healing"
|
|
108653
|
-
}
|
|
108654
|
-
],
|
|
108655
|
-
"basicViewId": "trigger-when-stop-healing"
|
|
108482
|
+
"name": "Heal",
|
|
108483
|
+
"type": "call_script_method",
|
|
108484
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/HealingPad.ts\",\"methodName\":\"heal\",\"params\":{}}"
|
|
108656
108485
|
}
|
|
108657
108486
|
]
|
|
108658
108487
|
}
|
|
108659
108488
|
}
|
|
108660
108489
|
}
|
|
108661
|
-
},
|
|
108662
|
-
{
|
|
108663
|
-
"name": "inspector::Config",
|
|
108664
|
-
"data": {
|
|
108665
|
-
"0": {
|
|
108666
|
-
"json": {
|
|
108667
|
-
"isBasicViewEnabled": true,
|
|
108668
|
-
"componentName": "Healing Pad",
|
|
108669
|
-
"fields": [
|
|
108670
|
-
{
|
|
108671
|
-
"name": "Healing Points",
|
|
108672
|
-
"type": "asset-packs::Actions",
|
|
108673
|
-
"basicViewId": "action-heal-player",
|
|
108674
|
-
"layout": "{\"multiplier\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Healing Points Amount\" } }"
|
|
108675
|
-
},
|
|
108676
|
-
{
|
|
108677
|
-
"name": "Interval Healing",
|
|
108678
|
-
"type": "asset-packs::Actions",
|
|
108679
|
-
"basicViewId": "action-healing-interval",
|
|
108680
|
-
"layout": "{\"interval\": { \"field\": \"RangeField\", \"label\": \"Healing Interval\", \"step\": \"0.1\" } }"
|
|
108681
|
-
}
|
|
108682
|
-
],
|
|
108683
|
-
"helpTooltip": {
|
|
108684
|
-
"text": "A healing pad that heals damage when the player stands on it. It works together with the health bar smart item."
|
|
108685
|
-
},
|
|
108686
|
-
"version": 1
|
|
108687
|
-
}
|
|
108688
|
-
}
|
|
108689
|
-
}
|
|
108690
108490
|
}
|
|
108691
108491
|
]
|
|
108692
108492
|
},
|
|
108693
108493
|
"contents": {
|
|
108694
|
-
"
|
|
108494
|
+
"HealingPad.ts": "bafkreiex75gpogz4sajqs5jyzylqwmpxlir3ukp7q6e4sxjhyg3lnriwpi",
|
|
108495
|
+
"composite.json": "bafkreiddqddcbj5kfzmjuqapbd3su4je4sjenbsbh5lh3exmaws727w4fa",
|
|
108695
108496
|
"heal.mp3": "bafkreicbpz6d5mjdzebwgp7dq33f5ezjphth23v4ova5xp4d436hjus4ai",
|
|
108696
108497
|
"healing_pad.glb": "bafybeifaloxes7yyarwometvuhmrlrxw4idumx7kuogxebjygcxaivvudy",
|
|
108697
108498
|
"thumbnail.png": "bafkreih6wr5f3kfeehh7562buce5bpbfrppfmymrmafihz55nw4pkuzbym"
|
|
@@ -108734,6 +108535,22 @@
|
|
|
108734
108535
|
}
|
|
108735
108536
|
}
|
|
108736
108537
|
},
|
|
108538
|
+
{
|
|
108539
|
+
"name": "asset-packs::Script",
|
|
108540
|
+
"data": {
|
|
108541
|
+
"0": {
|
|
108542
|
+
"json": {
|
|
108543
|
+
"value": [
|
|
108544
|
+
{
|
|
108545
|
+
"path": "{assetPath}/HealthBar.ts",
|
|
108546
|
+
"priority": 0,
|
|
108547
|
+
"layout": "{\"params\":{\"maxHealth\":{\"type\":\"number\",\"value\":100,\"optional\":true,\"tooltip\":\"The full health value the bar represents.\"},\"startHealth\":{\"type\":\"number\",\"value\":100,\"optional\":true,\"tooltip\":\"The health value the bar starts at.\"},\"primaryColor\":{\"type\":\"string\",\"value\":\"#00FF00\",\"optional\":true,\"tooltip\":\"Hex colour of the filled part of the bar (e.g. #00FF00).\"},\"secondaryColor\":{\"type\":\"string\",\"value\":\"#FF0000\",\"optional\":true,\"tooltip\":\"Hex colour of the empty part of the bar (e.g. #FF0000).\"},\"showBar\":{\"type\":\"boolean\",\"value\":true,\"optional\":true,\"tooltip\":\"Show the floating bar. Turn off to track health without a visual.\"}},\"actions\":[{\"methodName\":\"heal\",\"description\":\"Increases health by an amount (default 1), up to the maximum.\",\"params\":{\"amount\":{\"type\":\"number\",\"value\":1,\"optional\":true}}},{\"methodName\":\"damage\",\"description\":\"Decreases health by an amount (default 1), down to zero; fires \\\"death\\\" when it reaches zero.\",\"params\":{\"amount\":{\"type\":\"number\",\"value\":1,\"optional\":true}}},{\"methodName\":\"reset\",\"description\":\"Resets health back to the maximum.\",\"params\":{}},{\"methodName\":\"remove\",\"description\":\"Removes this health bar from the scene.\",\"params\":{}}],\"events\":[\"damaged\",\"healed\",\"death\"]}"
|
|
108548
|
+
}
|
|
108549
|
+
]
|
|
108550
|
+
}
|
|
108551
|
+
}
|
|
108552
|
+
}
|
|
108553
|
+
},
|
|
108737
108554
|
{
|
|
108738
108555
|
"name": "asset-packs::Actions",
|
|
108739
108556
|
"data": {
|
|
@@ -108742,28 +108559,24 @@
|
|
|
108742
108559
|
"id": "{self}",
|
|
108743
108560
|
"value": [
|
|
108744
108561
|
{
|
|
108745
|
-
"name": "
|
|
108746
|
-
"type": "
|
|
108747
|
-
"jsonPayload": "{
|
|
108748
|
-
"allowedInBasicView": true
|
|
108562
|
+
"name": "Damage",
|
|
108563
|
+
"type": "call_script_method",
|
|
108564
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/HealthBar.ts\",\"methodName\":\"damage\",\"params\":{}}"
|
|
108749
108565
|
},
|
|
108750
108566
|
{
|
|
108751
|
-
"name": "
|
|
108752
|
-
"type": "
|
|
108753
|
-
"jsonPayload": "{
|
|
108754
|
-
"allowedInBasicView": true
|
|
108567
|
+
"name": "Heal",
|
|
108568
|
+
"type": "call_script_method",
|
|
108569
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/HealthBar.ts\",\"methodName\":\"heal\",\"params\":{}}"
|
|
108755
108570
|
},
|
|
108756
108571
|
{
|
|
108757
108572
|
"name": "Reset",
|
|
108758
|
-
"type": "
|
|
108759
|
-
"jsonPayload": "{
|
|
108760
|
-
"allowedInBasicView": true
|
|
108573
|
+
"type": "call_script_method",
|
|
108574
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/HealthBar.ts\",\"methodName\":\"reset\",\"params\":{}}"
|
|
108761
108575
|
},
|
|
108762
108576
|
{
|
|
108763
108577
|
"name": "Remove",
|
|
108764
|
-
"type": "
|
|
108765
|
-
"jsonPayload": "{}"
|
|
108766
|
-
"allowedInBasicView": true
|
|
108578
|
+
"type": "call_script_method",
|
|
108579
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/HealthBar.ts\",\"methodName\":\"remove\",\"params\":{}}"
|
|
108767
108580
|
}
|
|
108768
108581
|
]
|
|
108769
108582
|
}
|
|
@@ -108783,8 +108596,7 @@
|
|
|
108783
108596
|
"id": "{self:asset-packs::Actions}",
|
|
108784
108597
|
"name": "Damage"
|
|
108785
108598
|
}
|
|
108786
|
-
]
|
|
108787
|
-
"basicViewId": "trigger-when-damaged"
|
|
108599
|
+
]
|
|
108788
108600
|
},
|
|
108789
108601
|
{
|
|
108790
108602
|
"type": "on_heal_player",
|
|
@@ -108793,79 +108605,18 @@
|
|
|
108793
108605
|
"id": "{self:asset-packs::Actions}",
|
|
108794
108606
|
"name": "Heal"
|
|
108795
108607
|
}
|
|
108796
|
-
]
|
|
108797
|
-
"basicViewId": "trigger-when-healed"
|
|
108798
|
-
},
|
|
108799
|
-
{
|
|
108800
|
-
"type": "on_counter_change",
|
|
108801
|
-
"conditions": [
|
|
108802
|
-
{
|
|
108803
|
-
"id": "{self:asset-packs::Counter}",
|
|
108804
|
-
"type": "when_counter_is_less_than",
|
|
108805
|
-
"value": "1"
|
|
108806
|
-
}
|
|
108807
|
-
],
|
|
108808
|
-
"actions": [],
|
|
108809
|
-
"basicViewId": "trigger-when-health-reaches-zero"
|
|
108608
|
+
]
|
|
108810
108609
|
}
|
|
108811
108610
|
]
|
|
108812
108611
|
}
|
|
108813
108612
|
}
|
|
108814
108613
|
}
|
|
108815
|
-
},
|
|
108816
|
-
{
|
|
108817
|
-
"name": "asset-packs::Counter",
|
|
108818
|
-
"data": {
|
|
108819
|
-
"0": {
|
|
108820
|
-
"json": {
|
|
108821
|
-
"id": "{self}",
|
|
108822
|
-
"value": 100
|
|
108823
|
-
}
|
|
108824
|
-
}
|
|
108825
|
-
}
|
|
108826
|
-
},
|
|
108827
|
-
{
|
|
108828
|
-
"name": "asset-packs::CounterBar",
|
|
108829
|
-
"data": {
|
|
108830
|
-
"0": {
|
|
108831
|
-
"json": {
|
|
108832
|
-
"maxValue": 100,
|
|
108833
|
-
"primaryColor": "#00FF00",
|
|
108834
|
-
"secondaryColor:": "#FF0000"
|
|
108835
|
-
}
|
|
108836
|
-
}
|
|
108837
|
-
}
|
|
108838
|
-
},
|
|
108839
|
-
{
|
|
108840
|
-
"name": "inspector::Config",
|
|
108841
|
-
"data": {
|
|
108842
|
-
"0": {
|
|
108843
|
-
"json": {
|
|
108844
|
-
"isBasicViewEnabled": true,
|
|
108845
|
-
"componentName": "Health Bar",
|
|
108846
|
-
"fields": [
|
|
108847
|
-
{
|
|
108848
|
-
"name": "Health Points",
|
|
108849
|
-
"type": "asset-packs::Counter"
|
|
108850
|
-
},
|
|
108851
|
-
{
|
|
108852
|
-
"name": "When Health Reaches Zero",
|
|
108853
|
-
"type": "asset-packs::Triggers",
|
|
108854
|
-
"basicViewId": "trigger-when-health-reaches-zero"
|
|
108855
|
-
}
|
|
108856
|
-
],
|
|
108857
|
-
"helpTooltip": {
|
|
108858
|
-
"text": "A health bar that can be used to keep track of and display the player's health. It works together with other items like the spikes, the first aid and healing pad smart items."
|
|
108859
|
-
},
|
|
108860
|
-
"version": 1
|
|
108861
|
-
}
|
|
108862
|
-
}
|
|
108863
|
-
}
|
|
108864
108614
|
}
|
|
108865
108615
|
]
|
|
108866
108616
|
},
|
|
108867
108617
|
"contents": {
|
|
108868
|
-
"
|
|
108618
|
+
"HealthBar.ts": "bafkreibvosqiixbaddoedysnodlwalmquozwstzoebdnf6zb4whit6js4i",
|
|
108619
|
+
"composite.json": "bafkreifwqkecnnqtpjp7pupqiuysxseyfvkuvegodlcukldlkdvmxxua3e",
|
|
108869
108620
|
"health-bar.glb": "bafkreigmyfjri6ul224rvo64kqlzlpasznbs7bbkh2mnm4xz7q3f56yeb4",
|
|
108870
108621
|
"thumbnail.png": "bafkreih5nssf3uw3x7crlwo4dj52of7xlo5ds5257muwde5ftjswvw4ah4"
|
|
108871
108622
|
}
|
|
@@ -109949,7 +109700,7 @@
|
|
|
109949
109700
|
"contents": {
|
|
109950
109701
|
"composite.json": "bafkreihkrnkp47dhue5m7lcmd724w6tiun2r5n54xw45ksk7gfuljjnbdm",
|
|
109951
109702
|
"impulse-area.glb": "bafkreihobvjbh7r4u5qwzcyagtcbinvz25impvznbotszo2kmpypl5u42e",
|
|
109952
|
-
"impulseArea.tsx": "
|
|
109703
|
+
"impulseArea.tsx": "bafkreihoycjwrrbdjgadxlnepwg5dg5bynm6ikc3wndg5cdnhmbjik2ghq",
|
|
109953
109704
|
"thumbnail.png": "bafybeihpal6cs77sg27orgtcopmcsdhojohbnxbsrqctpbszo3uks5utzy"
|
|
109954
109705
|
}
|
|
109955
109706
|
},
|
|
@@ -113774,73 +113525,15 @@
|
|
|
113774
113525
|
}
|
|
113775
113526
|
},
|
|
113776
113527
|
{
|
|
113777
|
-
"name": "asset-packs::
|
|
113528
|
+
"name": "asset-packs::Script",
|
|
113778
113529
|
"data": {
|
|
113779
113530
|
"0": {
|
|
113780
113531
|
"json": {
|
|
113781
|
-
"id": "{self}",
|
|
113782
113532
|
"value": [
|
|
113783
113533
|
{
|
|
113784
|
-
"
|
|
113785
|
-
"
|
|
113786
|
-
"
|
|
113787
|
-
"allowedInBasicView": true
|
|
113788
|
-
},
|
|
113789
|
-
{
|
|
113790
|
-
"name": "Follow",
|
|
113791
|
-
"type": "follow_player",
|
|
113792
|
-
"jsonPayload": "{ \"speed\": 1, \"minDistance\": 2, \"x\": true, \"y\": false, \"z\": true }",
|
|
113793
|
-
"basicViewId": "action-follow-player",
|
|
113794
|
-
"allowedInBasicView": true
|
|
113795
|
-
},
|
|
113796
|
-
{
|
|
113797
|
-
"name": "Stop Following Player",
|
|
113798
|
-
"type": "stop_following_player",
|
|
113799
|
-
"jsonPayload": "{ }",
|
|
113800
|
-
"allowedInBasicView": true
|
|
113801
|
-
},
|
|
113802
|
-
{
|
|
113803
|
-
"name": "Play Attack Animation",
|
|
113804
|
-
"type": "play_animation",
|
|
113805
|
-
"jsonPayload": "{ \"animation\": \"Attack\" }"
|
|
113806
|
-
},
|
|
113807
|
-
{
|
|
113808
|
-
"name": "Attack",
|
|
113809
|
-
"type": "damage",
|
|
113810
|
-
"jsonPayload": "{ \"radius\": 3, \"hits\": 10, \"layer\": \"player\" }",
|
|
113811
|
-
"basicViewId": "action-attack",
|
|
113812
|
-
"allowedInBasicView": true
|
|
113813
|
-
},
|
|
113814
|
-
{
|
|
113815
|
-
"name": "Attack Loop",
|
|
113816
|
-
"type": "start_loop",
|
|
113817
|
-
"jsonPayload": "{ \"actions\": [\"Attack\"], \"interval\": 1 }"
|
|
113818
|
-
},
|
|
113819
|
-
{
|
|
113820
|
-
"name": "Damage",
|
|
113821
|
-
"type": "decrease_counter",
|
|
113822
|
-
"jsonPayload": "{ \"amount\": 1 }",
|
|
113823
|
-
"allowedInBasicView": true
|
|
113824
|
-
},
|
|
113825
|
-
{
|
|
113826
|
-
"name": "Remove",
|
|
113827
|
-
"type": "remove_entity",
|
|
113828
|
-
"jsonPayload": "{ }"
|
|
113829
|
-
},
|
|
113830
|
-
{
|
|
113831
|
-
"name": "Delay Remove",
|
|
113832
|
-
"type": "start_delay",
|
|
113833
|
-
"jsonPayload": "{ \"actions\": [\"Remove\"], \"timeout\": 0.5 }"
|
|
113834
|
-
},
|
|
113835
|
-
{
|
|
113836
|
-
"name": "Play Explosion Animation",
|
|
113837
|
-
"type": "play_animation",
|
|
113838
|
-
"jsonPayload": "{ \"animation\": \"explode\" }"
|
|
113839
|
-
},
|
|
113840
|
-
{
|
|
113841
|
-
"name": "Stop Attack Loop",
|
|
113842
|
-
"type": "stop_loop",
|
|
113843
|
-
"jsonPayload": "{ \"action\": \"Damage\" }"
|
|
113534
|
+
"path": "{assetPath}/Robot.ts",
|
|
113535
|
+
"priority": 0,
|
|
113536
|
+
"layout": "{\"params\":{\"health\":{\"type\":\"number\",\"value\":30,\"optional\":true,\"tooltip\":\"How many hits the robot takes before it's destroyed.\"},\"speed\":{\"type\":\"number\",\"value\":1,\"optional\":true,\"tooltip\":\"How fast it moves toward the player (units per second).\"},\"followDistance\":{\"type\":\"number\",\"value\":2,\"optional\":true,\"tooltip\":\"How close it gets before it stops moving in.\"},\"attackRadius\":{\"type\":\"number\",\"value\":3,\"optional\":true,\"tooltip\":\"How close the player must be to take damage.\"},\"attackDamage\":{\"type\":\"number\",\"value\":10,\"optional\":true,\"tooltip\":\"How much damage each attack deals.\"},\"attackInterval\":{\"type\":\"number\",\"value\":1,\"optional\":true,\"tooltip\":\"Seconds between attacks.\"},\"attackAnimation\":{\"type\":\"string\",\"value\":\"Attack\",\"optional\":true,\"tooltip\":\"Animation clip played when it attacks.\"},\"deathAnimation\":{\"type\":\"string\",\"value\":\"explode\",\"optional\":true,\"tooltip\":\"Animation clip played when it's destroyed.\"},\"removeAfter\":{\"type\":\"number\",\"value\":0.5,\"optional\":true,\"tooltip\":\"Seconds after dying before the robot is removed.\"}},\"actions\":[{\"methodName\":\"die\",\"description\":\"Destroys the robot: plays the death animation and removes it.\",\"params\":{}}],\"events\":[\"death\"]}"
|
|
113844
113537
|
}
|
|
113845
113538
|
]
|
|
113846
113539
|
}
|
|
@@ -113848,125 +113541,27 @@
|
|
|
113848
113541
|
}
|
|
113849
113542
|
},
|
|
113850
113543
|
{
|
|
113851
|
-
"name": "asset-packs::
|
|
113544
|
+
"name": "asset-packs::Actions",
|
|
113852
113545
|
"data": {
|
|
113853
113546
|
"0": {
|
|
113854
113547
|
"json": {
|
|
113548
|
+
"id": "{self}",
|
|
113855
113549
|
"value": [
|
|
113856
113550
|
{
|
|
113857
|
-
"
|
|
113858
|
-
"
|
|
113859
|
-
|
|
113860
|
-
"id": "{self:asset-packs::Actions}",
|
|
113861
|
-
"name": "Follow"
|
|
113862
|
-
},
|
|
113863
|
-
{
|
|
113864
|
-
"id": "{self:asset-packs::Actions}",
|
|
113865
|
-
"name": "Attack Loop"
|
|
113866
|
-
}
|
|
113867
|
-
]
|
|
113868
|
-
},
|
|
113869
|
-
{
|
|
113870
|
-
"type": "on_loop",
|
|
113871
|
-
"conditions": [
|
|
113872
|
-
{
|
|
113873
|
-
"id": "{self:asset-packs::Actions}",
|
|
113874
|
-
"type": "when_distance_to_player_less_than",
|
|
113875
|
-
"value": "3"
|
|
113876
|
-
}
|
|
113877
|
-
],
|
|
113878
|
-
"actions": [
|
|
113879
|
-
{
|
|
113880
|
-
"id": "{self:asset-packs::Actions}",
|
|
113881
|
-
"name": "Play Attack Animation"
|
|
113882
|
-
}
|
|
113883
|
-
]
|
|
113884
|
-
},
|
|
113885
|
-
{
|
|
113886
|
-
"type": "on_damage",
|
|
113887
|
-
"conditions": [
|
|
113888
|
-
{
|
|
113889
|
-
"id": "{self:asset-packs::Counter}",
|
|
113890
|
-
"type": "when_counter_is_greater_than",
|
|
113891
|
-
"value": "0"
|
|
113892
|
-
}
|
|
113893
|
-
],
|
|
113894
|
-
"actions": [
|
|
113895
|
-
{
|
|
113896
|
-
"id": "{self:asset-packs::Actions}",
|
|
113897
|
-
"name": "Damage"
|
|
113898
|
-
}
|
|
113899
|
-
]
|
|
113900
|
-
},
|
|
113901
|
-
{
|
|
113902
|
-
"type": "on_counter_change",
|
|
113903
|
-
"conditions": [
|
|
113904
|
-
{
|
|
113905
|
-
"id": "{self:asset-packs::Counter}",
|
|
113906
|
-
"type": "when_counter_is_less_than",
|
|
113907
|
-
"value": "1"
|
|
113908
|
-
}
|
|
113909
|
-
],
|
|
113910
|
-
"actions": [
|
|
113911
|
-
{
|
|
113912
|
-
"id": "{self:asset-packs::Actions}",
|
|
113913
|
-
"name": "Die"
|
|
113914
|
-
}
|
|
113915
|
-
]
|
|
113551
|
+
"name": "Die",
|
|
113552
|
+
"type": "call_script_method",
|
|
113553
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/Robot.ts\",\"methodName\":\"die\",\"params\":{}}"
|
|
113916
113554
|
}
|
|
113917
113555
|
]
|
|
113918
113556
|
}
|
|
113919
113557
|
}
|
|
113920
113558
|
}
|
|
113921
|
-
},
|
|
113922
|
-
{
|
|
113923
|
-
"name": "asset-packs::Counter",
|
|
113924
|
-
"data": {
|
|
113925
|
-
"0": {
|
|
113926
|
-
"json": {
|
|
113927
|
-
"id": "{self}",
|
|
113928
|
-
"value": 30
|
|
113929
|
-
}
|
|
113930
|
-
}
|
|
113931
|
-
}
|
|
113932
|
-
},
|
|
113933
|
-
{
|
|
113934
|
-
"name": "inspector::Config",
|
|
113935
|
-
"data": {
|
|
113936
|
-
"0": {
|
|
113937
|
-
"json": {
|
|
113938
|
-
"isBasicViewEnabled": true,
|
|
113939
|
-
"componentName": "Robot Enemy",
|
|
113940
|
-
"fields": [
|
|
113941
|
-
{
|
|
113942
|
-
"name": "Item Health Points",
|
|
113943
|
-
"type": "asset-packs::Counter"
|
|
113944
|
-
},
|
|
113945
|
-
{
|
|
113946
|
-
"name": "Attack Damage",
|
|
113947
|
-
"type": "asset-packs::Actions",
|
|
113948
|
-
"basicViewId": "action-attack",
|
|
113949
|
-
"layout": "{\"radius\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Attack Radius\" }, \"hits\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Attack Damage Points\" }, \"layer\": { \"field\": \"Dropdown\", \"label\": \"Damage Target\" } }"
|
|
113950
|
-
},
|
|
113951
|
-
{
|
|
113952
|
-
"name": "Speed",
|
|
113953
|
-
"type": "asset-packs::Actions",
|
|
113954
|
-
"basicViewId": "action-follow-player",
|
|
113955
|
-
"layout": "{\"speed\": { \"field\": \"TextField\", \"type\": \"number\" } }"
|
|
113956
|
-
}
|
|
113957
|
-
],
|
|
113958
|
-
"helpTooltip": {
|
|
113959
|
-
"text": "A robot that can chase the player and cause damage. It can also be destroyed by the player. Use it together with the health bar smart item."
|
|
113960
|
-
},
|
|
113961
|
-
"version": 1
|
|
113962
|
-
}
|
|
113963
|
-
}
|
|
113964
|
-
}
|
|
113965
113559
|
}
|
|
113966
113560
|
]
|
|
113967
113561
|
},
|
|
113968
113562
|
"contents": {
|
|
113969
|
-
"
|
|
113563
|
+
"Robot.ts": "bafkreia42a2jziq4g27hvhi22thwjo4wkdnsaxks4ifgaemcwvpnmgemma",
|
|
113564
|
+
"composite.json": "bafkreieshtjargmpdgsfrvwjbu6nv6vwp73nswvovfcljboru3ex6iapjm",
|
|
113970
113565
|
"robot.glb": "bafybeiahl3jzdh7izw23zv5hawspxnt7ymrpmjczdvdjhzlv2paw2ac5e4",
|
|
113971
113566
|
"thumbnail.png": "bafkreibg2emc5upv4lq7mqjtwjgcwzmou4wvtacdotjjrjbqyjl5ebvxo4"
|
|
113972
113567
|
}
|
|
@@ -120338,40 +119933,15 @@
|
|
|
120338
119933
|
}
|
|
120339
119934
|
},
|
|
120340
119935
|
{
|
|
120341
|
-
"name": "asset-packs::
|
|
119936
|
+
"name": "asset-packs::Script",
|
|
120342
119937
|
"data": {
|
|
120343
119938
|
"0": {
|
|
120344
119939
|
"json": {
|
|
120345
|
-
"id": "{self}",
|
|
120346
119940
|
"value": [
|
|
120347
119941
|
{
|
|
120348
|
-
"
|
|
120349
|
-
"
|
|
120350
|
-
"
|
|
120351
|
-
},
|
|
120352
|
-
{
|
|
120353
|
-
"name": "Damage",
|
|
120354
|
-
"type": "damage",
|
|
120355
|
-
"jsonPayload": "{ \"radius\": 5, \"hits\": 15, \"layer\": \"player\" }",
|
|
120356
|
-
"basicViewId": "action-damage"
|
|
120357
|
-
},
|
|
120358
|
-
{
|
|
120359
|
-
"name": "Start Damage",
|
|
120360
|
-
"type": "start_loop",
|
|
120361
|
-
"jsonPayload": "{ \"actions\": [\"Damage Batch\"], \"interval\": 2 }",
|
|
120362
|
-
"basicViewId": "action-damage-interval",
|
|
120363
|
-
"allowedInBasicView": true
|
|
120364
|
-
},
|
|
120365
|
-
{
|
|
120366
|
-
"name": "Stop Damage",
|
|
120367
|
-
"type": "stop_loop",
|
|
120368
|
-
"jsonPayload": "{ \"action\": \"Damage Batch\" }",
|
|
120369
|
-
"allowedInBasicView": true
|
|
120370
|
-
},
|
|
120371
|
-
{
|
|
120372
|
-
"name": "Damage Batch",
|
|
120373
|
-
"type": "batch",
|
|
120374
|
-
"jsonPayload": "{ \"actions\": [\"Damage\", \"Play Damage Sound\"]}"
|
|
119942
|
+
"path": "{assetPath}/Spikes.ts",
|
|
119943
|
+
"priority": 0,
|
|
119944
|
+
"layout": "{\"params\":{\"damagePoints\":{\"type\":\"number\",\"value\":15,\"optional\":true,\"tooltip\":\"How much damage each tick deals.\"},\"radius\":{\"type\":\"number\",\"value\":5,\"optional\":true,\"tooltip\":\"How far from the tile the damage reaches.\"},\"interval\":{\"type\":\"number\",\"value\":2,\"optional\":true,\"tooltip\":\"Seconds between damage ticks.\"},\"damageTarget\":{\"type\":\"enum\",\"value\":\"player\",\"options\":[\"all\",\"player\",\"non_player\"],\"optional\":true,\"tooltip\":\"Who takes the damage.\"},\"sound\":{\"type\":\"string\",\"value\":\"spikes.mp3\",\"optional\":true,\"tooltip\":\"Audio file in this item's folder played on each tick (e.g. spikes.mp3). Empty for none.\"}},\"actions\":[{\"methodName\":\"damage\",\"description\":\"Deals one tick of damage in the area right now.\",\"params\":{}}],\"events\":[]}"
|
|
120375
119945
|
}
|
|
120376
119946
|
]
|
|
120377
119947
|
}
|
|
@@ -120379,59 +119949,18 @@
|
|
|
120379
119949
|
}
|
|
120380
119950
|
},
|
|
120381
119951
|
{
|
|
120382
|
-
"name": "asset-packs::
|
|
119952
|
+
"name": "asset-packs::Actions",
|
|
120383
119953
|
"data": {
|
|
120384
119954
|
"0": {
|
|
120385
119955
|
"json": {
|
|
119956
|
+
"id": "{self}",
|
|
120386
119957
|
"value": [
|
|
120387
|
-
{
|
|
120388
|
-
"type": "on_player_enters_area",
|
|
120389
|
-
"actions": [
|
|
120390
|
-
{
|
|
120391
|
-
"id": "{self:asset-packs::Actions}",
|
|
120392
|
-
"name": "Start Damage"
|
|
120393
|
-
}
|
|
120394
|
-
]
|
|
120395
|
-
},
|
|
120396
|
-
{
|
|
120397
|
-
"type": "on_player_leaves_area",
|
|
120398
|
-
"actions": [
|
|
120399
|
-
{
|
|
120400
|
-
"id": "{self:asset-packs::Actions}",
|
|
120401
|
-
"name": "Stop Damage"
|
|
120402
|
-
}
|
|
120403
|
-
]
|
|
120404
|
-
}
|
|
120405
|
-
]
|
|
120406
|
-
}
|
|
120407
|
-
}
|
|
120408
|
-
}
|
|
120409
|
-
},
|
|
120410
|
-
{
|
|
120411
|
-
"name": "inspector::Config",
|
|
120412
|
-
"data": {
|
|
120413
|
-
"0": {
|
|
120414
|
-
"json": {
|
|
120415
|
-
"isBasicViewEnabled": true,
|
|
120416
|
-
"componentName": "Spikes",
|
|
120417
|
-
"fields": [
|
|
120418
119958
|
{
|
|
120419
119959
|
"name": "Damage",
|
|
120420
|
-
"type": "
|
|
120421
|
-
"
|
|
120422
|
-
"layout": "{ \"layer\": { \"field\": \"Dropdown\", \"label\": \"Damage Target\" }, \"hits\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Damage Points\" } }"
|
|
120423
|
-
},
|
|
120424
|
-
{
|
|
120425
|
-
"name": "Interval Damage",
|
|
120426
|
-
"type": "asset-packs::Actions",
|
|
120427
|
-
"basicViewId": "action-damage-interval",
|
|
120428
|
-
"layout": "{\"interval\": { \"field\": \"RangeField\", \"label\": \"Damage Interval\", \"step\": \"0.1\" } }"
|
|
119960
|
+
"type": "call_script_method",
|
|
119961
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/Spikes.ts\",\"methodName\":\"damage\",\"params\":{}}"
|
|
120429
119962
|
}
|
|
120430
|
-
]
|
|
120431
|
-
"helpTooltip": {
|
|
120432
|
-
"text": "A tile of spikes that can be used to damage players. It can be used together with the Health Bar smart item."
|
|
120433
|
-
},
|
|
120434
|
-
"version": 1
|
|
119963
|
+
]
|
|
120435
119964
|
}
|
|
120436
119965
|
}
|
|
120437
119966
|
}
|
|
@@ -120439,7 +119968,8 @@
|
|
|
120439
119968
|
]
|
|
120440
119969
|
},
|
|
120441
119970
|
"contents": {
|
|
120442
|
-
"
|
|
119971
|
+
"Spikes.ts": "bafkreibltcd53gklvb3lp2ow6mzyyzndjt6uqgcbfl5r7ka4wqq7q2roem",
|
|
119972
|
+
"composite.json": "bafkreicqzoedud4d72wiftsi66dzigpwwpfdnxod7vmip6wm2jfcwtcxza",
|
|
120443
119973
|
"spikes.glb": "bafybeibpniioc3g2pgohxccuzicpifp5vfaal4umef5xwpzxue5v6fjduy",
|
|
120444
119974
|
"spikes.mp3": "bafkreicyb3fdwmyjmmgvgg4cisttzeu4codckr2qakfjxwwvfnqd7zizfi",
|
|
120445
119975
|
"thumbnail.png": "bafkreibkwcjumyn4ca7bjnra76ij6wqn4oahgmll4m5b2m3yiipegzevhe"
|
|
@@ -121342,118 +120872,22 @@
|
|
|
121342
120872
|
"data": {
|
|
121343
120873
|
"0": {
|
|
121344
120874
|
"json": {
|
|
121345
|
-
"src": "{assetPath}/sword.glb"
|
|
121346
|
-
|
|
121347
|
-
}
|
|
121348
|
-
}
|
|
121349
|
-
},
|
|
121350
|
-
{
|
|
121351
|
-
"name": "asset-packs::Actions",
|
|
121352
|
-
"data": {
|
|
121353
|
-
"0": {
|
|
121354
|
-
"json": {
|
|
121355
|
-
"id": "{self}",
|
|
121356
|
-
"value": [
|
|
121357
|
-
{
|
|
121358
|
-
"name": "Pick Up",
|
|
121359
|
-
"type": "start_delay",
|
|
121360
|
-
"jsonPayload": "{ \"actions\": [\"Set Ready\"], \"timeout\": 0.1 }",
|
|
121361
|
-
"allowedInBasicView": true
|
|
121362
|
-
},
|
|
121363
|
-
{
|
|
121364
|
-
"name": "Set Ready",
|
|
121365
|
-
"type": "set_state",
|
|
121366
|
-
"jsonPayload": "{ \"state\": \"Ready\" }"
|
|
121367
|
-
},
|
|
121368
|
-
{
|
|
121369
|
-
"name": "Attach To Player",
|
|
121370
|
-
"type": "attach_to_player",
|
|
121371
|
-
"jsonPayload": "{ \"anchorPointId\": 3 }"
|
|
121372
|
-
},
|
|
121373
|
-
{
|
|
121374
|
-
"name": "Play Attack Emote",
|
|
121375
|
-
"type": "play_custom_emote",
|
|
121376
|
-
"jsonPayload": "{ \"src\": \"{assetPath}/sword_attack_emote.glb\", \"loop\": false }"
|
|
121377
|
-
},
|
|
121378
|
-
{
|
|
121379
|
-
"name": "Damage",
|
|
121380
|
-
"type": "damage",
|
|
121381
|
-
"jsonPayload": "{ \"radius\": 3, \"hits\": 10, \"layer\": \"non_player\" }",
|
|
121382
|
-
"basicViewId": "action-damage"
|
|
121383
|
-
},
|
|
121384
|
-
{
|
|
121385
|
-
"name": "Set Cooling Down",
|
|
121386
|
-
"type": "set_state",
|
|
121387
|
-
"jsonPayload": "{ \"state\": \"Cooling Down\" }"
|
|
121388
|
-
},
|
|
121389
|
-
{
|
|
121390
|
-
"name": "Start Cool Down Delay",
|
|
121391
|
-
"type": "start_delay",
|
|
121392
|
-
"jsonPayload": "{ \"actions\": [\"Set Ready\"], \"timeout\": 0.5 }",
|
|
121393
|
-
"basicViewId": "action-cool-down-delay",
|
|
121394
|
-
"allowedInBasicView": true
|
|
121395
|
-
},
|
|
121396
|
-
{
|
|
121397
|
-
"name": "Cool Down",
|
|
121398
|
-
"type": "batch",
|
|
121399
|
-
"jsonPayload": "{ \"actions\": [\"Set Cooling Down\", \"Start Cool Down Delay\"] }"
|
|
121400
|
-
},
|
|
121401
|
-
{
|
|
121402
|
-
"name": "Attack",
|
|
121403
|
-
"type": "batch",
|
|
121404
|
-
"jsonPayload": "{ \"actions\": [\"Play Attack Emote\", \"Damage\", \"Cool Down\"] }"
|
|
121405
|
-
}
|
|
121406
|
-
]
|
|
120875
|
+
"src": "{assetPath}/sword.glb",
|
|
120876
|
+
"visibleMeshesCollisionMask": 1
|
|
121407
120877
|
}
|
|
121408
120878
|
}
|
|
121409
120879
|
}
|
|
121410
120880
|
},
|
|
121411
120881
|
{
|
|
121412
|
-
"name": "asset-packs::
|
|
120882
|
+
"name": "asset-packs::Script",
|
|
121413
120883
|
"data": {
|
|
121414
120884
|
"0": {
|
|
121415
120885
|
"json": {
|
|
121416
120886
|
"value": [
|
|
121417
120887
|
{
|
|
121418
|
-
"
|
|
121419
|
-
"
|
|
121420
|
-
|
|
121421
|
-
"id": "{self:asset-packs::Actions}",
|
|
121422
|
-
"name": "Pick Up"
|
|
121423
|
-
}
|
|
121424
|
-
]
|
|
121425
|
-
},
|
|
121426
|
-
{
|
|
121427
|
-
"type": "on_state_change",
|
|
121428
|
-
"conditions": [
|
|
121429
|
-
{
|
|
121430
|
-
"id": "{self:asset-packs::States}",
|
|
121431
|
-
"type": "when_state_is",
|
|
121432
|
-
"value": "Ready"
|
|
121433
|
-
}
|
|
121434
|
-
],
|
|
121435
|
-
"actions": [
|
|
121436
|
-
{
|
|
121437
|
-
"id": "{self:asset-packs::Actions}",
|
|
121438
|
-
"name": "Attach To Player"
|
|
121439
|
-
}
|
|
121440
|
-
]
|
|
121441
|
-
},
|
|
121442
|
-
{
|
|
121443
|
-
"type": "on_global_primary",
|
|
121444
|
-
"conditions": [
|
|
121445
|
-
{
|
|
121446
|
-
"id": "{self:asset-packs::States}",
|
|
121447
|
-
"type": "when_state_is",
|
|
121448
|
-
"value": "Ready"
|
|
121449
|
-
}
|
|
121450
|
-
],
|
|
121451
|
-
"actions": [
|
|
121452
|
-
{
|
|
121453
|
-
"id": "{self:asset-packs::Actions}",
|
|
121454
|
-
"name": "Attack"
|
|
121455
|
-
}
|
|
121456
|
-
]
|
|
120888
|
+
"path": "{assetPath}/Sword.ts",
|
|
120889
|
+
"priority": 0,
|
|
120890
|
+
"layout": "{\"params\":{\"hoverText\":{\"type\":\"string\",\"value\":\"Pick up\",\"optional\":true,\"tooltip\":\"Text shown when pointing at the sword.\"},\"radius\":{\"type\":\"number\",\"value\":3,\"optional\":true,\"tooltip\":\"How far the swing's damage reaches from the player.\"},\"damagePoints\":{\"type\":\"number\",\"value\":10,\"optional\":true,\"tooltip\":\"How much damage each swing deals.\"},\"damageTarget\":{\"type\":\"enum\",\"value\":\"non_player\",\"options\":[\"all\",\"player\",\"non_player\"],\"optional\":true,\"tooltip\":\"Who the swing damages.\"},\"cooldown\":{\"type\":\"number\",\"value\":0.5,\"optional\":true,\"tooltip\":\"Seconds between swings.\"},\"attackEmote\":{\"type\":\"string\",\"value\":\"sword_attack_emote.glb\",\"optional\":true,\"tooltip\":\"Emote file (.glb) played when swinging (e.g. sword_attack_emote.glb). Empty for none.\"}},\"actions\":[{\"methodName\":\"pickUp\",\"description\":\"Picks up the sword and attaches it to the player's hand.\",\"params\":{}},{\"methodName\":\"attack\",\"description\":\"Swings the sword, damaging targets in range of the player, then starts the cooldown.\",\"params\":{}}],\"events\":[]}"
|
|
121457
120891
|
}
|
|
121458
120892
|
]
|
|
121459
120893
|
}
|
|
@@ -121461,66 +120895,23 @@
|
|
|
121461
120895
|
}
|
|
121462
120896
|
},
|
|
121463
120897
|
{
|
|
121464
|
-
"name": "asset-packs::
|
|
120898
|
+
"name": "asset-packs::Actions",
|
|
121465
120899
|
"data": {
|
|
121466
120900
|
"0": {
|
|
121467
120901
|
"json": {
|
|
121468
120902
|
"id": "{self}",
|
|
121469
120903
|
"value": [
|
|
121470
|
-
"Idle",
|
|
121471
|
-
"Ready",
|
|
121472
|
-
"Cooling Down"
|
|
121473
|
-
],
|
|
121474
|
-
"defaultValue": "Idle"
|
|
121475
|
-
}
|
|
121476
|
-
}
|
|
121477
|
-
}
|
|
121478
|
-
},
|
|
121479
|
-
{
|
|
121480
|
-
"name": "core::PointerEvents",
|
|
121481
|
-
"data": {
|
|
121482
|
-
"0": {
|
|
121483
|
-
"json": {
|
|
121484
|
-
"pointerEvents": [
|
|
121485
|
-
{
|
|
121486
|
-
"eventType": 1,
|
|
121487
|
-
"eventInfo": {
|
|
121488
|
-
"button": 1,
|
|
121489
|
-
"hoverText": "Pick Up",
|
|
121490
|
-
"maxDistance": 10,
|
|
121491
|
-
"showFeedback": true
|
|
121492
|
-
}
|
|
121493
|
-
}
|
|
121494
|
-
]
|
|
121495
|
-
}
|
|
121496
|
-
}
|
|
121497
|
-
}
|
|
121498
|
-
},
|
|
121499
|
-
{
|
|
121500
|
-
"name": "inspector::Config",
|
|
121501
|
-
"data": {
|
|
121502
|
-
"0": {
|
|
121503
|
-
"json": {
|
|
121504
|
-
"isBasicViewEnabled": true,
|
|
121505
|
-
"componentName": "Sword",
|
|
121506
|
-
"helpTooltip": {
|
|
121507
|
-
"text": "Configure the sword's damage and attack cooldown. Players can pick up the sword and use it to attack. Set the damage radius, damage points, and cooldown time between attacks."
|
|
121508
|
-
},
|
|
121509
|
-
"fields": [
|
|
121510
120904
|
{
|
|
121511
|
-
"name": "
|
|
121512
|
-
"type": "
|
|
121513
|
-
"
|
|
121514
|
-
"layout": "{\"radius\": { \"field\": \"TextField\", \"type\": \"number\" }, \"hits\": { \"field\": \"TextField\", \"type\": \"number\", \"label\": \"Damage Points\" }, \"layer\": { \"field\": \"Dropdown\", \"label\": \"Damage Target\" }}"
|
|
120905
|
+
"name": "Pick Up",
|
|
120906
|
+
"type": "call_script_method",
|
|
120907
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/Sword.ts\",\"methodName\":\"pickUp\",\"params\":{}}"
|
|
121515
120908
|
},
|
|
121516
120909
|
{
|
|
121517
|
-
"name": "Attack
|
|
121518
|
-
"type": "
|
|
121519
|
-
"
|
|
121520
|
-
"layout": "{\"timeout\": { \"field\": \"RangeField\", \"label\": \"Attack Cooldown\", \"step\": \"0.1\" } }"
|
|
120910
|
+
"name": "Attack",
|
|
120911
|
+
"type": "call_script_method",
|
|
120912
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/Sword.ts\",\"methodName\":\"attack\",\"params\":{}}"
|
|
121521
120913
|
}
|
|
121522
|
-
]
|
|
121523
|
-
"version": 1
|
|
120914
|
+
]
|
|
121524
120915
|
}
|
|
121525
120916
|
}
|
|
121526
120917
|
}
|
|
@@ -121528,7 +120919,8 @@
|
|
|
121528
120919
|
]
|
|
121529
120920
|
},
|
|
121530
120921
|
"contents": {
|
|
121531
|
-
"
|
|
120922
|
+
"Sword.ts": "bafkreidpmcrz6crjvcztzu34xjxr4wuqxy7ehdiu5bpnyq3pipuwfktvuy",
|
|
120923
|
+
"composite.json": "bafkreidvrpfcd2fziylwp6hbqgqrusolat5okjhjclvierjcvukutnh23y",
|
|
121532
120924
|
"sword.glb": "bafybeieu7fidr6crjouhynpf3sn533mm6zph4t7tbxpdcsuysvqebmgqcm",
|
|
121533
120925
|
"sword_attack_emote.glb": "bafkreibdix2i7tgmdpdzjzmdxp53dkjxeujbqgy76wk46smaijvuh4e3fq",
|
|
121534
120926
|
"thumbnail.png": "bafkreiamqol6st2jsl2p26o3bjraohhdgizaakv4ke27dq3mk37nwjr77a"
|
|
@@ -122601,7 +121993,7 @@
|
|
|
122601
121993
|
]
|
|
122602
121994
|
},
|
|
122603
121995
|
"contents": {
|
|
122604
|
-
"TriggerArea.tsx": "
|
|
121996
|
+
"TriggerArea.tsx": "bafkreigdx3zf5d5kmaswsqymp3rc5uf4rddo5fq6uf36dzmidhd3hhltvq",
|
|
122605
121997
|
"composite.json": "bafkreih77tycq5fkiq5ksu7kqjjv4fl6g2c2x2kyqpit5v5uktourblgmy",
|
|
122606
121998
|
"thumbnail.png": "bafkreieo7ibi3xtuyynj2n74sdlyskhyhhjqfzjpn6gl72voplg23woc2u",
|
|
122607
121999
|
"trigger-area-sphere.glb": "bafkreielo4xhwwtqctoiwnhibd6mcojkrnnayr27d4effxukmnl52kn57q",
|
|
@@ -126142,7 +125534,7 @@
|
|
|
126142
125534
|
},
|
|
126143
125535
|
"contents": {
|
|
126144
125536
|
"Button.glb": "bafybeiaxv2yhapyryxcrqcs244kzvmiwcbgaf5flnfzne766sayeskyeb4",
|
|
126145
|
-
"ClaimRewardButton.tsx": "
|
|
125537
|
+
"ClaimRewardButton.tsx": "bafkreiatnz3gdcny7pe5uskg73pfr26mq3qowmc6zxobw6zlkdhtrm7uvy",
|
|
126146
125538
|
"Dispenser.glb": "bafybeielg2rbzaqe2pxmax3ec522xfldou4l2tknghctpo574ubebw4ike",
|
|
126147
125539
|
"button-sound.mp3": "bafkreifzmhe2n6lslneawyejfdurlk43oiuqygt523fva7k46irgahlwza",
|
|
126148
125540
|
"composite.json": "bafkreigjigmkl4eyjrd3k3ns4qgjxw4tcwan4d2i7cqq3dqf3fry2g7sj4",
|
|
@@ -126228,7 +125620,7 @@
|
|
|
126228
125620
|
"BoothLegDecor_mat_arm.png": "bafybeifxxwyrbfkai5nlokgknhkst7yepiqwq4s2fiyki3ll6sz5nppghu",
|
|
126229
125621
|
"BoothLegDecor_mat_baseColor.png": "bafybeicksszsigrrkg7yjarz4ukk7a7vj2b3q4bko5dmq5jdr6mx2kkm3i",
|
|
126230
125622
|
"BoothLegDecor_mat_normal.png": "bafkreigqwbf72kcxfn56aw3r67mgjzmhfmedyprmttkzsdbec6xp4e5aoq",
|
|
126231
|
-
"ClaimReward.tsx": "
|
|
125623
|
+
"ClaimReward.tsx": "bafkreif4b6pgbbmo42ynajsrhtyzunoqifilkwxv4zszwcgvlaxfneu7hu",
|
|
126232
125624
|
"HoloMat_alpha.png": "bafkreidzfrnrga4fdbggdg7vuud7vzilm7u6igmmiazvtmlvyrzqwnyha4",
|
|
126233
125625
|
"StripesMask.png": "bafkreigdllkaaag7mjlgccokfubaxp7pqcvbwbdnppobrmzgk27zg7d2m4",
|
|
126234
125626
|
"StylizedScifiFloor_v01_arm.png": "bafybeigmsvqx56bdvxae7mfabxvxzpn5wvxvit2ybpfm2vthnjdzj7lx4e",
|
|
@@ -126616,7 +126008,7 @@
|
|
|
126616
126008
|
]
|
|
126617
126009
|
},
|
|
126618
126010
|
"contents": {
|
|
126619
|
-
"Wind tunnel.tsx": "
|
|
126011
|
+
"Wind tunnel.tsx": "bafkreiflirsi4izt3ypgb7epxancjrhyjxbjyokjo2bwekw7mnq3egsjzi",
|
|
126620
126012
|
"composite.json": "bafkreifj35smsisms4xzmp7jv2k3pxmjz6aoytitfbfmi763li2aygcidq",
|
|
126621
126013
|
"thumbnail.png": "bafybeibpufnfayyoowrotlqs525qf75b4qxb55s563y56rjvootmmo5ubq",
|
|
126622
126014
|
"wind-tunnel-area.glb": "bafkreidmbuk6usie5ldo2424ilcznbmywdiwfaujy4alwpugxsfck353ay"
|
|
@@ -127107,43 +126499,15 @@
|
|
|
127107
126499
|
}
|
|
127108
126500
|
},
|
|
127109
126501
|
{
|
|
127110
|
-
"name": "asset-packs::
|
|
126502
|
+
"name": "asset-packs::Script",
|
|
127111
126503
|
"data": {
|
|
127112
126504
|
"0": {
|
|
127113
126505
|
"json": {
|
|
127114
|
-
"id": "{self}",
|
|
127115
126506
|
"value": [
|
|
127116
126507
|
{
|
|
127117
|
-
"
|
|
127118
|
-
"
|
|
127119
|
-
"
|
|
127120
|
-
},
|
|
127121
|
-
{
|
|
127122
|
-
"name": "Play Fall Animation",
|
|
127123
|
-
"type": "play_animation",
|
|
127124
|
-
"jsonPayload": "{ \"animation\": \"Fall\" }"
|
|
127125
|
-
},
|
|
127126
|
-
{
|
|
127127
|
-
"name": "Play Fall Sound",
|
|
127128
|
-
"type": "play_sound",
|
|
127129
|
-
"jsonPayload": "{ \"src\": \"{assetPath}/fall.mp3\" }"
|
|
127130
|
-
},
|
|
127131
|
-
{
|
|
127132
|
-
"name": "Damage",
|
|
127133
|
-
"type": "decrease_counter",
|
|
127134
|
-
"jsonPayload": "{ \"amount\": 1 }",
|
|
127135
|
-
"allowedInBasicView": true
|
|
127136
|
-
},
|
|
127137
|
-
{
|
|
127138
|
-
"name": "Destroy",
|
|
127139
|
-
"type": "set_counter",
|
|
127140
|
-
"jsonPayload": "{ \"counter\": 0 }",
|
|
127141
|
-
"allowedInBasicView": true
|
|
127142
|
-
},
|
|
127143
|
-
{
|
|
127144
|
-
"name": "Destroy Batch",
|
|
127145
|
-
"type": "batch",
|
|
127146
|
-
"jsonPayload": "{ \"actions\": [\"Play Fall Animation\", \"Play Fall Sound\"] }"
|
|
126508
|
+
"path": "{assetPath}/WoodenWall.ts",
|
|
126509
|
+
"priority": 0,
|
|
126510
|
+
"layout": "{\"params\":{\"health\":{\"type\":\"number\",\"value\":30,\"optional\":true,\"tooltip\":\"How many hits the fence takes before it falls.\"},\"hitAnimation\":{\"type\":\"string\",\"value\":\"Hit\",\"optional\":true,\"tooltip\":\"Animation clip played on each hit it survives.\"},\"fallAnimation\":{\"type\":\"string\",\"value\":\"Fall\",\"optional\":true,\"tooltip\":\"Animation clip played when it's destroyed.\"},\"fallSound\":{\"type\":\"string\",\"value\":\"fall.mp3\",\"optional\":true,\"tooltip\":\"Audio file played when it falls (e.g. fall.mp3). Empty for none.\"}},\"actions\":[{\"methodName\":\"destroy\",\"description\":\"Knocks the fence down: plays the fall animation and sound.\",\"params\":{}}],\"events\":[\"destroyed\"]}"
|
|
127147
126511
|
}
|
|
127148
126512
|
]
|
|
127149
126513
|
}
|
|
@@ -127151,101 +126515,27 @@
|
|
|
127151
126515
|
}
|
|
127152
126516
|
},
|
|
127153
126517
|
{
|
|
127154
|
-
"name": "asset-packs::
|
|
126518
|
+
"name": "asset-packs::Actions",
|
|
127155
126519
|
"data": {
|
|
127156
126520
|
"0": {
|
|
127157
126521
|
"json": {
|
|
126522
|
+
"id": "{self}",
|
|
127158
126523
|
"value": [
|
|
127159
126524
|
{
|
|
127160
|
-
"
|
|
127161
|
-
"
|
|
127162
|
-
|
|
127163
|
-
"id": "{self:asset-packs::Counter}",
|
|
127164
|
-
"type": "when_counter_is_greater_than",
|
|
127165
|
-
"value": "0"
|
|
127166
|
-
}
|
|
127167
|
-
],
|
|
127168
|
-
"actions": [
|
|
127169
|
-
{
|
|
127170
|
-
"id": "{self:asset-packs::Actions}",
|
|
127171
|
-
"name": "Damage"
|
|
127172
|
-
}
|
|
127173
|
-
],
|
|
127174
|
-
"basicViewId": "trigger-when-damaged"
|
|
127175
|
-
},
|
|
127176
|
-
{
|
|
127177
|
-
"type": "on_counter_change",
|
|
127178
|
-
"conditions": [
|
|
127179
|
-
{
|
|
127180
|
-
"id": "{self:asset-packs::Counter}",
|
|
127181
|
-
"type": "when_counter_is_greater_than",
|
|
127182
|
-
"value": "0"
|
|
127183
|
-
}
|
|
127184
|
-
],
|
|
127185
|
-
"actions": [
|
|
127186
|
-
{
|
|
127187
|
-
"id": "{self:asset-packs::Actions}",
|
|
127188
|
-
"name": "Play Hit Animation"
|
|
127189
|
-
}
|
|
127190
|
-
]
|
|
127191
|
-
},
|
|
127192
|
-
{
|
|
127193
|
-
"type": "on_counter_change",
|
|
127194
|
-
"conditions": [
|
|
127195
|
-
{
|
|
127196
|
-
"id": "{self:asset-packs::Counter}",
|
|
127197
|
-
"type": "when_counter_is_less_than",
|
|
127198
|
-
"value": "1"
|
|
127199
|
-
}
|
|
127200
|
-
],
|
|
127201
|
-
"actions": [
|
|
127202
|
-
{
|
|
127203
|
-
"id": "{self:asset-packs::Actions}",
|
|
127204
|
-
"name": "Destroy Batch"
|
|
127205
|
-
}
|
|
127206
|
-
]
|
|
126525
|
+
"name": "Destroy",
|
|
126526
|
+
"type": "call_script_method",
|
|
126527
|
+
"jsonPayload": "{\"scriptPath\":\"{assetPath}/WoodenWall.ts\",\"methodName\":\"destroy\",\"params\":{}}"
|
|
127207
126528
|
}
|
|
127208
126529
|
]
|
|
127209
126530
|
}
|
|
127210
126531
|
}
|
|
127211
126532
|
}
|
|
127212
|
-
},
|
|
127213
|
-
{
|
|
127214
|
-
"name": "asset-packs::Counter",
|
|
127215
|
-
"data": {
|
|
127216
|
-
"0": {
|
|
127217
|
-
"json": {
|
|
127218
|
-
"id": "{self}",
|
|
127219
|
-
"value": 30
|
|
127220
|
-
}
|
|
127221
|
-
}
|
|
127222
|
-
}
|
|
127223
|
-
},
|
|
127224
|
-
{
|
|
127225
|
-
"name": "inspector::Config",
|
|
127226
|
-
"data": {
|
|
127227
|
-
"0": {
|
|
127228
|
-
"json": {
|
|
127229
|
-
"isBasicViewEnabled": true,
|
|
127230
|
-
"componentName": "Wooden Wall",
|
|
127231
|
-
"fields": [
|
|
127232
|
-
{
|
|
127233
|
-
"name": "Item Health Points",
|
|
127234
|
-
"type": "asset-packs::Counter"
|
|
127235
|
-
}
|
|
127236
|
-
],
|
|
127237
|
-
"helpTooltip": {
|
|
127238
|
-
"text": "A pallet-like structure that can be used to reveal a passageway when broken with another smart item, such as the Sword. It can also be used as a wall to block players."
|
|
127239
|
-
},
|
|
127240
|
-
"version": 1
|
|
127241
|
-
}
|
|
127242
|
-
}
|
|
127243
|
-
}
|
|
127244
126533
|
}
|
|
127245
126534
|
]
|
|
127246
126535
|
},
|
|
127247
126536
|
"contents": {
|
|
127248
|
-
"
|
|
126537
|
+
"WoodenWall.ts": "bafkreigdrfei7mmuzjpjkijtnphmd645wtxz4ckam3rpmalo3d533oexye",
|
|
126538
|
+
"composite.json": "bafkreibjqjvmpz74mf46mzivmqa7xruvrnzkv25rg5gj3zxzsydci54jeu",
|
|
127249
126539
|
"fall.mp3": "bafkreidpbmyl6obtzmbfp4loa7qybv5uug3ljxq634edijqgethue543vi",
|
|
127250
126540
|
"thumbnail.png": "bafkreidxdc73bmfy6oucu5jmksacmcojre6hhvkkoozzfnslfpdn7uw644",
|
|
127251
126541
|
"wooden_wall.glb": "bafybeihyovb6y5yy4z2o57ctovjdhomk5ucqr5rd4nu7fud4niivvg5sam"
|