From 7714363384403ae8aedd55c8d31287d9ea239a6b Mon Sep 17 00:00:00 2001 From: jin <32600939+madjin@users.noreply.github.com> Date: Thu, 2 Sep 2021 01:40:19 -0400 Subject: [PATCH 1/7] rename to .metaversefile --- manifest.json => .metaversefile | 1 - 1 file changed, 1 deletion(-) rename manifest.json => .metaversefile (83%) diff --git a/manifest.json b/.metaversefile similarity index 83% rename from manifest.json rename to .metaversefile index bfd79fe..afddecd 100644 --- a/manifest.json +++ b/.metaversefile @@ -1,7 +1,6 @@ { "name": "sword", "description": "Sword XRPackage", - "xr_type": "webxr-site@0.0.1", "start_url": "sword.glb", "components": [ { From 3583300c8adcd84758c4c378fc004aeb9330878b Mon Sep 17 00:00:00 2001 From: jin <32600939+madjin@users.noreply.github.com> Date: Wed, 1 Sep 2021 22:43:31 -0700 Subject: [PATCH 2/7] Create README.md --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..01e1b90 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# sword + +Swords are items that you can wield to do damage on objects and NPCs in the world. + +Wearing the sword on your back. + +![](https://i.imgur.com/f1cjF55.png) + +![](https://i.imgur.com/0sJXsd2.png) + +## `.metaversefile` + +The `.metaversefile` goes in the directory with the GLB file in order to create the XRpackage. + + +``` +{ + "name": "sword", + "description": "Sword XRPackage", + "start_url": "sword.glb", + "components": [ + { + "type": "wear", + "position": [0, 0, 0] + } + ] +} +``` From 2e6befbeb77aa92d4634e18458ffe3a69075f817 Mon Sep 17 00:00:00 2001 From: jin <32600939+madjin@users.noreply.github.com> Date: Wed, 1 Sep 2021 22:45:48 -0700 Subject: [PATCH 3/7] Update README.md --- README.md | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 01e1b90..aa7f356 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ Swords are items that you can wield to do damage on objects and NPCs in the world. -Wearing the sword on your back. + + +## `.metaversefile` Wearable ![](https://i.imgur.com/f1cjF55.png) ![](https://i.imgur.com/0sJXsd2.png) -## `.metaversefile` - The `.metaversefile` goes in the directory with the GLB file in order to create the XRpackage. @@ -26,3 +26,22 @@ The `.metaversefile` goes in the directory with the GLB file in order to create ] } ``` + +## `.metaversefile` Wield + +![](https://i.imgur.com/SaXNpC6.png) + +``` +{ + "name": "saber", + "description": "Saber XRPackage", + "start_url": "index.js", + "components": [ + { + "type": "use", + "subtype": "swing", + "useAnimation": "slash" + } + ] +} +``` From 77878813e9b70017caf9a738a94cf3afc96dc28d Mon Sep 17 00:00:00 2001 From: Avaer Kazmer Date: Wed, 29 Sep 2021 16:03:30 -0700 Subject: [PATCH 4/7] Add use spec --- .metaversefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.metaversefile b/.metaversefile index 66a6ea0..693d4f9 100644 --- a/.metaversefile +++ b/.metaversefile @@ -9,6 +9,16 @@ "position": [0.4, 0.7, -0.2], "quaternion": [0, 0, 0.9510565162951535, 0.30901699437494745] } + }, + { + "key": "use", + "value": { + "animation": "combo", + "boneAttachment": "leftHand", + "position": [-0.07, -0.03, 0], + "quaternion": [0.7071067811865475, 0, 0, 0.7071067811865476], + "scale": [1, 1, 1] + } } ] } From 9988bf8d6342422d818a1a00a1e844ea593d6965 Mon Sep 17 00:00:00 2001 From: Avaer Kazmer Date: Wed, 22 Dec 2021 08:59:18 -0500 Subject: [PATCH 5/7] Add sword behavior to .metaversefile --- .metaversefile | 1 + 1 file changed, 1 insertion(+) diff --git a/.metaversefile b/.metaversefile index 693d4f9..beab9bd 100644 --- a/.metaversefile +++ b/.metaversefile @@ -14,6 +14,7 @@ "key": "use", "value": { "animation": "combo", + "behavior": "sword", "boneAttachment": "leftHand", "position": [-0.07, -0.03, 0], "quaternion": [0.7071067811865475, 0, 0, 0.7071067811865476], From 1edb4d0d542361c0d8df82c56be76a6c70e25361 Mon Sep 17 00:00:00 2001 From: Ali Saad <35926530+alisaad673@users.noreply.github.com> Date: Thu, 5 May 2022 20:15:49 +0500 Subject: [PATCH 6/7] Update .metaversefile --- .metaversefile | 1 + 1 file changed, 1 insertion(+) diff --git a/.metaversefile b/.metaversefile index beab9bd..ff7405c 100644 --- a/.metaversefile +++ b/.metaversefile @@ -1,5 +1,6 @@ { "name": "sword", + "description": "sword: A melee weapon", "start_url": "sword.glb", "components": [ { From 0cf97fad4675cdef7ada967964c0e87bfac631f2 Mon Sep 17 00:00:00 2001 From: tcm390 Date: Wed, 31 Aug 2022 20:44:25 -0400 Subject: [PATCH 7/7] change animation to animationCombo --- .metaversefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.metaversefile b/.metaversefile index ff7405c..9850ef7 100644 --- a/.metaversefile +++ b/.metaversefile @@ -14,7 +14,12 @@ { "key": "use", "value": { - "animation": "combo", + "animationCombo": [ + "swordSideSlash", + "swordSideSlashStep", + "swordTopDownSlash", + "swordTopDownSlashStep" + ], "behavior": "sword", "boneAttachment": "leftHand", "position": [-0.07, -0.03, 0],