First Machine Age's Mods (Combined repo.)
Révision | b54d26b7515611c1b57e8303cb373c2b35e86a7d (tree) |
---|---|
l'heure | 2020-09-21 08:25:07 |
Auteur | melchior <melchior@user...> |
Commiter | melchior |
New bamboo scaffold, V1.13 updates
@@ -96,7 +96,7 @@ namespace ConstructionSupport | ||
96 | 96 | /// <param name="block">Block.</param> |
97 | 97 | /// <param name="pos">Position.</param> |
98 | 98 | /// <param name="blockFace">Block face.</param> |
99 | - public override bool CanAttachBlockAt(IBlockAccessor world, Block block, BlockPos pos, BlockFacing blockFace) | |
99 | + public override bool CanAttachBlockAt(IBlockAccessor world, Block block, BlockPos pos, BlockFacing blockFace, Cuboidi attachmentArea) | |
100 | 100 | { |
101 | 101 | |
102 | 102 | if (block.HasBehavior<BlockBehaviorLadder>()) return true; |
@@ -109,7 +109,7 @@ namespace ConstructionSupport | ||
109 | 109 | } |
110 | 110 | |
111 | 111 | //If above block is unsupported/interfereing material; BREAK OFF! |
112 | - public override void OnNeighourBlockChange(IWorldAccessor world, BlockPos pos, BlockPos neibpos) | |
112 | + public override void OnNeighbourBlockChange(IWorldAccessor world, BlockPos pos, BlockPos neibpos) | |
113 | 113 | { |
114 | 114 | //Above: Dropping blocks cause breakage! |
115 | 115 | if (pos.Above(neibpos)) { |
@@ -98,6 +98,12 @@ | ||
98 | 98 | <None Include="assets\fma\recipes\grid\frames\deckwork_horiz.json"> |
99 | 99 | <CopyToOutputDirectory>Always</CopyToOutputDirectory> |
100 | 100 | </None> |
101 | + <None Include="assets\fma\shapes\block\frames\bamboo_scaffold.json"> | |
102 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
103 | + </None> | |
104 | + <None Include="assets\fma\blocktypes\frames\bamboo_scaffold.json"> | |
105 | + <CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
106 | + </None> | |
101 | 107 | </ItemGroup> |
102 | 108 | <ItemGroup> |
103 | 109 | <Folder Include="assets\" /> |
@@ -0,0 +1,68 @@ | ||
1 | +{ | |
2 | + code: "bamboo_scaffold", | |
3 | + behaviors: [{name: "Ladder"}], | |
4 | + attributes: { | |
5 | + ignoreServerReplaceableTest: true, | |
6 | + handbook: { | |
7 | + groupBy: ["bamboo_scaffold-*"] | |
8 | + }, | |
9 | + }, | |
10 | + variantgroups: [ | |
11 | + { code:"side", loadFromProperties: "abstract/horizontalorientation" } | |
12 | + ], | |
13 | + textures: { | |
14 | + "linen": { base: "game:block/linen"}, | |
15 | + "stem": { base: "game:block/plant/bamboo/stem-brown"} | |
16 | + }, | |
17 | + creativeinventory: { "general": ["bamboo_scaffold-north"], "decorative": ["bamboo_scaffold-north"] }, | |
18 | + shapeinventory: { base: "block/frames/bamboo_scaffold" }, | |
19 | + shapebytype: { | |
20 | + "*-north": { base: "block/frames/bamboo_scaffold", rotateY: 0 }, | |
21 | + "*-east": { base: "block/frames/bamboo_scaffold", rotateY: 270 }, | |
22 | + "*-south": { base: "block/frames/bamboo_scaffold", rotateY: 180 }, | |
23 | + "*-west": { base: "block/frames/bamboo_scaffold", rotateY: 90 } | |
24 | + }, | |
25 | + blockmaterial: "Wood", | |
26 | + replaceable: 500, | |
27 | + lightAbsorption: 0, | |
28 | + climbable: true, | |
29 | + sidesolid: { | |
30 | + all: false | |
31 | + }, | |
32 | + sideopaque: { | |
33 | + all: false | |
34 | + }, | |
35 | + sideAO: { | |
36 | + all: false | |
37 | + }, | |
38 | + resistance: 1.25, | |
39 | + sounds: { | |
40 | + "place": "block/planks", | |
41 | + "hit": "block/planks", | |
42 | + "break": "block/planks", | |
43 | + "walk": "walk/wood" | |
44 | + }, | |
45 | + combustibleProps: { | |
46 | + burnTemperature: 600, | |
47 | + burnDuration: 12, | |
48 | + }, | |
49 | + collisionbox: { | |
50 | + x1: 0, y1: 0, z1: 0.1, x2: 1, y2: 1, z2: 0.38, | |
51 | + rotateYByType: { | |
52 | + "*-east": 270, | |
53 | + "*-south": 180, | |
54 | + "*-west": 90, | |
55 | + "*-north": 0 | |
56 | + } | |
57 | + }, | |
58 | + selectionbox: { | |
59 | + x1: 0, y1: 0, z1: 0.1, x2: 1, y2: 1, z2: 0.38, | |
60 | + rotateYByType: { | |
61 | + "*-east": 270, | |
62 | + "*-south": 180, | |
63 | + "*-west": 90, | |
64 | + "*-north": 0 | |
65 | + } | |
66 | + }, | |
67 | + materialDensity: 600 | |
68 | +} |
@@ -0,0 +1,207 @@ | ||
1 | +{ | |
2 | + "editor": { | |
3 | + "allAngles": false, | |
4 | + "entityTextureMode": false | |
5 | + }, | |
6 | + "textureWidth": 16, | |
7 | + "textureHeight": 16, | |
8 | + "textureSizes": { | |
9 | + }, | |
10 | + "textures": { | |
11 | + "linen": "block/linen", | |
12 | + "stem": "block/plant/bamboo/stem-brown" | |
13 | + }, | |
14 | + "elements": [ | |
15 | + { | |
16 | + "name": "BambooStalk1", | |
17 | + "from": [ 1.5, 0.0, 1.5 ], | |
18 | + "to": [ 3.5, 16.0, 3.5 ], | |
19 | + "faces": { | |
20 | + "north": { "texture": "#stem", "uv": [ 4.0, 0.0, 6.0, 16.0 ] }, | |
21 | + "east": { "texture": "#stem", "uv": [ 3.0, 0.0, 5.0, 16.0 ] }, | |
22 | + "south": { "texture": "#stem", "uv": [ 1.0, 0.0, 3.0, 16.0 ] }, | |
23 | + "west": { "texture": "#stem", "uv": [ 1.0, 0.0, 3.0, 16.0 ] }, | |
24 | + "up": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] }, | |
25 | + "down": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] } | |
26 | + }, | |
27 | + "children": [ | |
28 | + { | |
29 | + "name": "Twine1", | |
30 | + "from": [ -1.125, 2.0, -0.35 ], | |
31 | + "to": [ 2.625, 2.5, 4.4 ], | |
32 | + "rotationOrigin": [ 1.125, 2.0, 1.5 ], | |
33 | + "rotationZ": -45.0, | |
34 | + "faces": { | |
35 | + "north": { "texture": "#linen", "uv": [ 6.0, 6.0, 9.5, 6.5 ] }, | |
36 | + "east": { "texture": "#linen", "uv": [ 5.0, 6.0, 9.5, 6.5 ] }, | |
37 | + "south": { "texture": "#linen", "uv": [ 5.5, 7.0, 9.0, 7.5 ] }, | |
38 | + "west": { "texture": "#linen", "uv": [ 3.5, 6.5, 8.0, 7.0 ] }, | |
39 | + "up": { "texture": "#linen", "uv": [ 4.5, 5.0, 8.0, 9.5 ] }, | |
40 | + "down": { "texture": "#linen", "uv": [ 3.0, 2.0, 6.5, 6.5 ] } | |
41 | + }, | |
42 | + "children": [ | |
43 | + { | |
44 | + "name": "Twine2", | |
45 | + "from": [ -1.75, -2.25, 0.0 ], | |
46 | + "to": [ 2.0, -1.75, 4.751 ], | |
47 | + "rotationOrigin": [ 0.0, 0.0, 0.0 ], | |
48 | + "rotationZ": 90.0, | |
49 | + "faces": { | |
50 | + "north": { "texture": "#linen", "uv": [ 12.0, 11.5, 15.5, 12.0 ] }, | |
51 | + "east": { "texture": "#linen", "uv": [ 6.0, 9.0, 10.5, 9.5 ] }, | |
52 | + "south": { "texture": "#linen", "uv": [ 2.5, 7.5, 6.0, 8.0 ] }, | |
53 | + "west": { "texture": "#linen", "uv": [ 5.5, 11.5, 10.0, 12.0 ] }, | |
54 | + "up": { "texture": "#linen", "uv": [ 2.5, 8.5, 6.0, 13.0 ] }, | |
55 | + "down": { "texture": "#linen", "uv": [ 9.5, 7.0, 13.0, 11.5 ] } | |
56 | + } | |
57 | + } | |
58 | + ] | |
59 | + } | |
60 | + ] | |
61 | + }, | |
62 | + { | |
63 | + "name": "BambooStalk2", | |
64 | + "from": [ 12.5, 0.0, 1.5 ], | |
65 | + "to": [ 14.5, 16.0, 3.5 ], | |
66 | + "faces": { | |
67 | + "north": { "texture": "#stem", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 180 }, | |
68 | + "east": { "texture": "#stem", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 180 }, | |
69 | + "south": { "texture": "#stem", "uv": [ 6.0, 0.0, 8.0, 16.0 ], "rotation": 180 }, | |
70 | + "west": { "texture": "#stem", "uv": [ 5.5, 0.0, 7.5, 16.0 ], "rotation": 180 }, | |
71 | + "up": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] }, | |
72 | + "down": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] } | |
73 | + }, | |
74 | + "children": [ | |
75 | + { | |
76 | + "name": "Twine7", | |
77 | + "from": [ -1.12, 2.0, -0.35 ], | |
78 | + "to": [ 2.63, 2.5, 4.4 ], | |
79 | + "rotationOrigin": [ 1.12, 2.0, 1.5 ], | |
80 | + "rotationZ": -45.0, | |
81 | + "faces": { | |
82 | + "north": { "texture": "#linen", "uv": [ 9.0, 8.0, 12.5, 8.5 ] }, | |
83 | + "east": { "texture": "#linen", "uv": [ 1.0, 5.0, 5.5, 5.5 ] }, | |
84 | + "south": { "texture": "#linen", "uv": [ 3.5, 5.5, 7.0, 6.0 ] }, | |
85 | + "west": { "texture": "#linen", "uv": [ 4.0, 7.5, 8.5, 8.0 ] }, | |
86 | + "up": { "texture": "#linen", "uv": [ 1.5, 5.5, 5.0, 10.0 ] }, | |
87 | + "down": { "texture": "#linen", "uv": [ 2.0, 3.0, 5.5, 7.5 ] } | |
88 | + }, | |
89 | + "children": [ | |
90 | + { | |
91 | + "name": "Twine8", | |
92 | + "from": [ -1.75, -2.25, 0.0 ], | |
93 | + "to": [ 2.0, -1.75, 4.749 ], | |
94 | + "rotationOrigin": [ 0.0, 0.0, 0.0 ], | |
95 | + "rotationZ": 90.0, | |
96 | + "faces": { | |
97 | + "north": { "texture": "#linen", "uv": [ 5.0, 3.0, 8.5, 3.5 ] }, | |
98 | + "east": { "texture": "#linen", "uv": [ 4.5, 5.5, 9.0, 6.0 ] }, | |
99 | + "south": { "texture": "#linen", "uv": [ 5.5, 4.0, 9.0, 4.5 ] }, | |
100 | + "west": { "texture": "#linen", "uv": [ 3.0, 3.5, 7.5, 4.0 ] }, | |
101 | + "up": { "texture": "#linen", "uv": [ 4.5, 6.0, 8.0, 10.5 ] }, | |
102 | + "down": { "texture": "#linen", "uv": [ 3.0, 3.0, 6.5, 7.5 ] } | |
103 | + } | |
104 | + } | |
105 | + ] | |
106 | + } | |
107 | + ] | |
108 | + }, | |
109 | + { | |
110 | + "name": "BambooStalk3", | |
111 | + "from": [ 12.5, 0.0, 3.5 ], | |
112 | + "to": [ 14.5, 16.0, 5.5 ], | |
113 | + "rotationOrigin": [ 8.0, 8.0, 0.0 ], | |
114 | + "rotationZ": 90.0, | |
115 | + "faces": { | |
116 | + "north": { "texture": "#stem", "uv": [ 4.0, 0.0, 6.0, 16.0 ] }, | |
117 | + "east": { "texture": "#stem", "uv": [ 4.0, 0.0, 6.0, 16.0 ] }, | |
118 | + "south": { "texture": "#stem", "uv": [ 4.0, 0.0, 6.0, 16.0 ] }, | |
119 | + "west": { "texture": "#stem", "uv": [ 4.0, 0.0, 6.0, 16.0 ] }, | |
120 | + "up": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] }, | |
121 | + "down": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] } | |
122 | + }, | |
123 | + "children": [ | |
124 | + { | |
125 | + "name": "Twine9", | |
126 | + "from": [ -1.25, 13.9, -2.3 ], | |
127 | + "to": [ 2.5, 14.4, 2.45 ], | |
128 | + "rotationOrigin": [ 0.0, 13.5, 0.0 ], | |
129 | + "rotationZ": -45.0, | |
130 | + "faces": { | |
131 | + "north": { "texture": "#linen", "uv": [ 2.0, 5.5, 5.5, 6.0 ] }, | |
132 | + "east": { "texture": "#linen", "uv": [ 4.0, 7.0, 8.5, 7.5 ] }, | |
133 | + "south": { "texture": "#linen", "uv": [ 3.0, 7.0, 6.5, 7.5 ] }, | |
134 | + "west": { "texture": "#linen", "uv": [ 1.5, 4.5, 6.0, 5.0 ] }, | |
135 | + "up": { "texture": "#linen", "uv": [ 4.0, 5.0, 7.5, 9.5 ] }, | |
136 | + "down": { "texture": "#linen", "uv": [ 1.0, 2.0, 4.5, 6.5 ] } | |
137 | + }, | |
138 | + "children": [ | |
139 | + { | |
140 | + "name": "Twine10", | |
141 | + "from": [ -1.75, -2.25, 0.0 ], | |
142 | + "to": [ 2.0, -1.75, 4.751 ], | |
143 | + "rotationOrigin": [ 0.0, 0.0, 0.0 ], | |
144 | + "rotationZ": 90.0, | |
145 | + "faces": { | |
146 | + "north": { "texture": "#linen", "uv": [ 3.0, 4.5, 6.5, 5.0 ] }, | |
147 | + "east": { "texture": "#linen", "uv": [ 3.5, 11.5, 8.0, 12.0 ] }, | |
148 | + "south": { "texture": "#linen", "uv": [ 3.5, 6.0, 7.0, 6.5 ] }, | |
149 | + "west": { "texture": "#linen", "uv": [ 2.0, 4.5, 6.5, 5.0 ] }, | |
150 | + "up": { "texture": "#linen", "uv": [ 2.0, 1.5, 5.5, 6.0 ] }, | |
151 | + "down": { "texture": "#linen", "uv": [ 1.5, 7.5, 5.0, 12.0 ] } | |
152 | + } | |
153 | + } | |
154 | + ] | |
155 | + } | |
156 | + ] | |
157 | + }, | |
158 | + { | |
159 | + "name": "BambooStalk4", | |
160 | + "from": [ 12.5, 0.0, 3.5 ], | |
161 | + "to": [ 14.5, 16.0, 5.5 ], | |
162 | + "rotationOrigin": [ 8.0, 8.0, 0.0 ], | |
163 | + "rotationZ": -90.0, | |
164 | + "faces": { | |
165 | + "north": { "texture": "#stem", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, | |
166 | + "east": { "texture": "#stem", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, | |
167 | + "south": { "texture": "#stem", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, | |
168 | + "west": { "texture": "#stem", "uv": [ 2.0, 0.0, 4.0, 16.0 ] }, | |
169 | + "up": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] }, | |
170 | + "down": { "texture": "#stem", "uv": [ 8.0, 14.0, 10.0, 16.0 ] } | |
171 | + }, | |
172 | + "children": [ | |
173 | + { | |
174 | + "name": "Twine11", | |
175 | + "from": [ -12.0, 13.5, -2.25 ], | |
176 | + "to": [ -8.25, 14.0, 2.5 ], | |
177 | + "rotationOrigin": [ -10.0, 13.5, 0.0 ], | |
178 | + "rotationZ": -45.0, | |
179 | + "faces": { | |
180 | + "north": { "texture": "#linen", "uv": [ 5.0, 5.0, 8.5, 5.5 ] }, | |
181 | + "east": { "texture": "#linen", "uv": [ 3.0, 7.5, 7.5, 8.0 ] }, | |
182 | + "south": { "texture": "#linen", "uv": [ 3.0, 9.5, 6.5, 10.0 ] }, | |
183 | + "west": { "texture": "#linen", "uv": [ 3.0, 8.5, 7.5, 9.0 ] }, | |
184 | + "up": { "texture": "#linen", "uv": [ 3.0, 3.5, 6.5, 8.0 ] }, | |
185 | + "down": { "texture": "#linen", "uv": [ 5.5, 9.0, 9.0, 13.5 ] } | |
186 | + }, | |
187 | + "children": [ | |
188 | + { | |
189 | + "name": "Twine12", | |
190 | + "from": [ -1.75, -2.25, 0.0 ], | |
191 | + "to": [ 2.0, -1.75, 4.749 ], | |
192 | + "rotationOrigin": [ 0.0, 0.0, 0.0 ], | |
193 | + "rotationZ": 90.0, | |
194 | + "faces": { | |
195 | + "north": { "texture": "#linen", "uv": [ 6.5, 10.0, 10.0, 10.5 ] }, | |
196 | + "east": { "texture": "#linen", "uv": [ 1.0, 0.5, 5.5, 1.0 ] }, | |
197 | + "south": { "texture": "#linen", "uv": [ 1.5, 0.5, 5.0, 1.0 ] }, | |
198 | + "west": { "texture": "#linen", "uv": [ 0.0, 2.5, 4.5, 3.0 ] }, | |
199 | + "up": { "texture": "#linen", "uv": [ 3.5, 2.0, 7.0, 6.5 ] }, | |
200 | + "down": { "texture": "#linen", "uv": [ 2.0, 3.5, 5.5, 8.0 ] } | |
201 | + } | |
202 | + } | |
203 | + ] | |
204 | + } | |
205 | + ] | |
206 | + } | |
207 | + ]} | |
\ No newline at end of file |
@@ -4,9 +4,9 @@ | ||
4 | 4 | "description" : "Scaffolds and Construction equipment, for the builders.", |
5 | 5 | "authors": ["Melchior"], |
6 | 6 | "ModID":"constructionsupport", |
7 | - "version": "0.1.0", | |
7 | + "version": "0.1.1", | |
8 | 8 | "dependencies": { |
9 | - "game": "1.12.14", | |
9 | + "game": "1.13.4", | |
10 | 10 | "survival": "" |
11 | 11 | }, |
12 | 12 | "website": "http://nowebsite.nope" |