VS plugin mod for Basic Armour
Révision | 640931f2babbb590c4fe49d9fc295c2a98ab94ad (tree) |
---|---|
l'heure | 2019-04-19 09:03:12 |
Auteur | ![]() |
Commiter | melchior |
* clothes-head-potmetal.json: added example helmet clothes item
* helmpot.json: new pot helm
* helmpot.png: new pot helm texture
* ArmourMod.csproj:
* helmpot.psd:
@@ -115,6 +115,16 @@ | ||
115 | 115 | <None Include="assets\game\patches\armour_attachment_points.json"> |
116 | 116 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
117 | 117 | </None> |
118 | + <None Include="assets\bunnyviking\shapes\item\armament\armour\helmpot.json"> | |
119 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
120 | + </None> | |
121 | + <None Include="assets\bunnyviking\textures\item\armament\armour\helmpot.png"> | |
122 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
123 | + </None> | |
124 | + <None Include="assets\bunnyviking\textures\item\armament\armour\helmpot.psd" /> | |
125 | + <None Include="assets\armourmod\itemtypes\wearable\clothes-head-potmetal.json"> | |
126 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
127 | + </None> | |
118 | 128 | </ItemGroup> |
119 | 129 | <ItemGroup> |
120 | 130 | <Folder Include="assets\armourmod\" /> |
@@ -0,0 +1,72 @@ | ||
1 | +{ | |
2 | + code: "clothes", | |
3 | + class: "ItemDress", | |
4 | + variantgroups: [ | |
5 | + { code: "category", states: ["head"] }, | |
6 | + { code: "head", combine: "SelectiveMultiply", onVariant: "category", | |
7 | + states: [ | |
8 | + "potmetal" | |
9 | + ] }, | |
10 | + ], | |
11 | + storageFlags: 128, | |
12 | + shape: { base: "entity/humanoid/seraph" }, | |
13 | + shapeByType:{ | |
14 | + "*-potmetal": { base: "bunnyviking:item/armament/armour/helmpot" }, | |
15 | + }, | |
16 | + texturesByType: { | |
17 | + "*-potmetal":{ | |
18 | + dummy:{ base: "bunnyviking:item/armament/armour/transparent"}, | |
19 | + helmpot: { base: "bunnyviking:item/armament/armour/helmpot"} | |
20 | + }, | |
21 | + "*": { | |
22 | + dummy:{ base: "bunnyviking:item/armament/armour/transparent"}, | |
23 | + } | |
24 | + }, | |
25 | + attributesByType: { | |
26 | + "*-potmetal": { | |
27 | + clothescategory: "head", | |
28 | + inCharacterCreationDialog: false, | |
29 | + BluntProtection:0.2, | |
30 | + PiercingProtection:0.3, | |
31 | + SlashingProtection:0.3, | |
32 | + CrushingProtection:0.1 | |
33 | + }, | |
34 | + "*":{ | |
35 | + clothescategory: "head", | |
36 | + BluntProtection:0.1, | |
37 | + PiercingProtection:0.1, | |
38 | + SlashingProtection:0.1, | |
39 | + CrushingProtection:0.1, | |
40 | + FireProtection:0.1 | |
41 | + } | |
42 | + }, | |
43 | + creativeinventory: { "general": ["*"], "items": ["*"], "clothing": ["*"] }, | |
44 | + renderAlphaTest: 0.25, | |
45 | + fpHandTransform: { | |
46 | + translation: { x: 0.05, y: -0.6, z: 0.3 }, | |
47 | + rotation: { x: 180, y: 150, z: 180 }, | |
48 | + scale: 2 | |
49 | + }, | |
50 | + tpHandTransform: { | |
51 | + translation: { x: -0.6, y: -1.2, z: -0.7 }, | |
52 | + rotation: { x: -14, y: 180, z: 53 }, | |
53 | + scale: 0.55 | |
54 | + }, | |
55 | + guiTransform:{ | |
56 | + translation: { x: -14, y: -65, z: 0 }, | |
57 | + rotation: { x: -180, y: 11, z: 0 }, | |
58 | + origin: { x: 0.2, y: 1.36, z: 0.4 }, | |
59 | + scale: 2.43 | |
60 | + }, | |
61 | + groundTransform: { | |
62 | + translation: { x: 0.05, y: 0.7, z: 0 }, | |
63 | + rotation: { x: 0, y: 0, z: 0 }, | |
64 | + origin: { x: 0.05, y: 0.05, z: 0.5299 }, | |
65 | + scale: 3.75 | |
66 | + }, | |
67 | + thirdPersonTransform: { | |
68 | + translation: { x: -0.020, y: 0.09, z: -0.05 }, | |
69 | + rotation: { x: 0, y: 0, z: 0 }, | |
70 | + scale: 1.1 | |
71 | + } | |
72 | +} |
@@ -0,0 +1,103 @@ | ||
1 | +{ | |
2 | + "editor": { | |
3 | + "allAngles": false, | |
4 | + "singleTexture": false | |
5 | + }, | |
6 | + "textureWidth": 16, | |
7 | + "textureHeight": 16, | |
8 | + "textures": { | |
9 | + "helmpot": "item/armament/armour/helmpot" | |
10 | + }, | |
11 | + "elements": [ | |
12 | + { | |
13 | + "name": "helmet-root", | |
14 | + "from": [ 8.0, 7.6, 8.0 ], | |
15 | + "to": [ 9.0, 8.6, 9.0 ], | |
16 | + "rotationOrigin": [ 8.0, 7.6, 8.0 ], | |
17 | + "faces": { | |
18 | + "north": { "texture": "#null", "uv": [ 0.0, 0.0, 1.0, 1.0 ], "enabled": false }, | |
19 | + "east": { "texture": "#null", "uv": [ 0.0, 0.0, 1.0, 1.0 ], "enabled": false }, | |
20 | + "south": { "texture": "#null", "uv": [ 0.0, 0.0, 1.0, 1.0 ], "enabled": false }, | |
21 | + "west": { "texture": "#null", "uv": [ 0.0, 0.0, 1.0, 1.0 ], "enabled": false }, | |
22 | + "up": { "texture": "#null", "uv": [ 0.0, 0.0, 1.0, 1.0 ], "enabled": false }, | |
23 | + "down": { "texture": "#null", "uv": [ 0.0, 0.0, 1.0, 1.0 ], "enabled": false } | |
24 | + }, | |
25 | + "children": [ | |
26 | + { | |
27 | + "name": "rim", | |
28 | + "from": [ -3.5, -1.0, -3.5 ], | |
29 | + "to": [ 4.5, 0.0, 3.5 ], | |
30 | + "rotationOrigin": [ 0.5, -1.0, 0.0 ], | |
31 | + "faces": { | |
32 | + "north": { "texture": "#helmpot", "uv": [ 7.0, 0.0, 8.0, 8.0 ], "rotation": 90 }, | |
33 | + "east": { "texture": "#helmpot", "uv": [ 0.0, 8.0, 7.0, 9.0 ] }, | |
34 | + "south": { "texture": "#helmpot", "uv": [ 7.0, 0.0, 8.0, 8.0 ], "rotation": 90 }, | |
35 | + "west": { "texture": "#helmpot", "uv": [ 0.0, 8.0, 7.0, 9.0 ] }, | |
36 | + "up": { "texture": "#helmpot", "uv": [ 0.0, 0.0, 7.0, 8.0 ], "rotation": 90 }, | |
37 | + "down": { "texture": "#helmpot", "uv": [ 0.0, 0.0, 7.0, 8.0 ], "rotation": 90 } | |
38 | + }, | |
39 | + "children": [ | |
40 | + { | |
41 | + "name": "hatA", | |
42 | + "from": [ 0.5, 1.0, 0.5 ], | |
43 | + "to": [ 7.5, 3.0, 6.5 ], | |
44 | + "rotationOrigin": [ 0.5, 1.0, 0.5 ], | |
45 | + "faces": { | |
46 | + "north": { "texture": "#helmpot", "uv": [ 14.0, 0.0, 16.0, 7.0 ], "rotation": 90 }, | |
47 | + "east": { "texture": "#helmpot", "uv": [ 8.0, 7.0, 14.0, 9.0 ] }, | |
48 | + "south": { "texture": "#helmpot", "uv": [ 14.0, 0.0, 16.0, 7.0 ], "rotation": 90 }, | |
49 | + "west": { "texture": "#helmpot", "uv": [ 8.0, 7.0, 14.0, 9.0 ] }, | |
50 | + "up": { "texture": "#helmpot", "uv": [ 8.0, 0.0, 14.0, 7.0 ], "rotation": 90 }, | |
51 | + "down": { "texture": "#helmpot", "uv": [ 8.0, 0.0, 14.0, 7.0 ], "rotation": 90 } | |
52 | + }, | |
53 | + "children": [ | |
54 | + { | |
55 | + "name": "hatB", | |
56 | + "from": [ 1.0, 2.0, 1.0 ], | |
57 | + "to": [ 6.0, 3.0, 5.0 ], | |
58 | + "rotationOrigin": [ 1.0, 2.0, 1.0 ], | |
59 | + "faces": { | |
60 | + "north": { "texture": "#helmpot", "uv": [ 4.0, 9.0, 5.0, 14.0 ], "rotation": 90 }, | |
61 | + "east": { "texture": "#helmpot", "uv": [ 0.0, 14.0, 4.0, 15.0 ] }, | |
62 | + "south": { "texture": "#helmpot", "uv": [ 4.0, 9.0, 5.0, 14.0 ], "rotation": 90 }, | |
63 | + "west": { "texture": "#helmpot", "uv": [ 0.0, 14.0, 4.0, 15.0 ] }, | |
64 | + "up": { "texture": "#helmpot", "uv": [ 0.0, 9.0, 4.0, 14.0 ], "rotation": 90 }, | |
65 | + "down": { "texture": "#helmpot", "uv": [ 0.0, 9.0, 4.0, 14.0 ], "rotation": 90 } | |
66 | + } | |
67 | + } | |
68 | + ] | |
69 | + }, | |
70 | + { | |
71 | + "name": "Cube1", | |
72 | + "from": [ 2.0, -5.0, 0.2 ], | |
73 | + "to": [ 5.0, 0.0, 0.7 ], | |
74 | + "rotationOrigin": [ 2.0, -5.0, 0.2 ], | |
75 | + "faces": { | |
76 | + "north": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 8.0, 14.0 ] }, | |
77 | + "east": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 5.5, 14.0 ] }, | |
78 | + "south": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 8.0, 14.0 ] }, | |
79 | + "west": { "texture": "#helmpot", "uv": [ 8.0, 9.0, 8.5, 14.0 ] }, | |
80 | + "up": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 8.0, 9.5 ] }, | |
81 | + "down": { "texture": "#helmpot", "uv": [ 5.0, 14.0, 8.0, 14.5 ] } | |
82 | + } | |
83 | + }, | |
84 | + { | |
85 | + "name": "Cube7", | |
86 | + "from": [ 5.0, -5.0, 6.8 ], | |
87 | + "to": [ 8.0, 0.0, 7.3 ], | |
88 | + "rotationOrigin": [ 5.0, -5.0, 6.8 ], | |
89 | + "rotationY": 180.0, | |
90 | + "faces": { | |
91 | + "north": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 8.0, 14.0 ] }, | |
92 | + "east": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 5.5, 14.0 ] }, | |
93 | + "south": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 8.0, 14.0 ] }, | |
94 | + "west": { "texture": "#helmpot", "uv": [ 8.0, 9.0, 8.5, 14.0 ] }, | |
95 | + "up": { "texture": "#helmpot", "uv": [ 5.0, 9.0, 8.0, 9.5 ] }, | |
96 | + "down": { "texture": "#helmpot", "uv": [ 5.0, 14.0, 8.0, 14.5 ] } | |
97 | + } | |
98 | + } | |
99 | + ] | |
100 | + } | |
101 | + ] | |
102 | + } | |
103 | + ]} | |
\ No newline at end of file |