Skip to content

Commit 74f9dbd

Browse files
committed
Cave & Cliffs Update: Part 1 support (#77)
* Include updated block textures from pack * Add in missing textures * Re-use tripwire hook render correct method for lightning rod * Fix lightning rod placement & added more Transparent blocks * Do not use TripWire render method * Render dripstone Only render tip texture. Centered. Orientation fixed. * Fix render glow lichen Will only render top and bottom facing texture. TODO transform base texture and place for side facing lichen. * Fix lightning rod render top/bottom orientation * Fix render glow item frame Will only render top and bottom facing texture. TODO transform base texture and place for side facing lichen. * Fix wrong texture for some azalea blocks * Fix amethyst cluster render orientation * Fix amethyst buds orientation and translation * Variable for clarity * Fix small dripleaf orientation * Fix lightning rod orientation when placed sideways * Added missing "double-cut" variants texture map * Add missing rendering rules for cave vines and variants Fix for #78
1 parent 8032db8 commit 74f9dbd

File tree

95 files changed

+624
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+624
-21
lines changed

Maploader/Renderer/ChunkRenderer.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ public void RenderChunk(TImage dest, Chunk c, int xOffset, int zOffset)
259259
textureFinder.FindTexturePath(block.Block.Id, block.Block.Data, block.X, block.Z, block.Y);
260260
if (textures == null)
261261
{
262-
Console.WriteLine($"\nMissing Texture(2): {block.ToString().PadRight(30)}");
262+
Console.WriteLine($"Missing Texture(2): {block.ToString().PadRight(30)}");
263263
MissingTextures.Add($"ID: {block.Block.Id}");
264264
continue;
265265
}

Maploader/Renderer/Texture/TextureFinder.cs

+364-10
Large diffs are not rendered by default.

Maploader/World/World.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ private static (string, Dictionary<string, Object>) GetNbtVal(MemoryStream ms)
430430
IEnumerable<fNbt.Tags.NbtTag> enumTag = (IEnumerable<fNbt.Tags.NbtTag>)tag;
431431
foreach(var subtag in enumTag)
432432
{
433-
if((subtag.Name == "direction") || (subtag.Name == "facing_direction") || (subtag.Name == "open_bit"))
433+
if((subtag.Name == "direction") || (subtag.Name == "facing_direction") || (subtag.Name == "open_bit") || (subtag.Name == "multi_face_direction_bits"))
434434
{
435435
int subtagvalue = GetTagValue(subtag);
436436
dictParams.Add(subtag.Name, subtagvalue);
@@ -442,6 +442,15 @@ private static (string, Dictionary<string, Object>) GetNbtVal(MemoryStream ms)
442442
dictParams.Add(subtag.Name, subtag.StringValue);
443443
}
444444
}
445+
if(subtag.Name == "dripstone_thickness")
446+
{
447+
dictParams.Add(subtag.Name, subtag.StringValue);
448+
}
449+
if(subtag.Name == "hanging")
450+
{
451+
int subtagvalue = GetTagValue(subtag);
452+
dictParams.Add(subtag.Name, subtagvalue);
453+
}
445454
}
446455
break;
447456
case "val":
284 Bytes
249 Bytes
265 Bytes
297 Bytes
277 Bytes
287 Bytes
235 Bytes
251 Bytes
84 Bytes
133 Bytes
195 Bytes
245 Bytes
-194 Bytes
325 Bytes

PapyrusCs/textures/blocks/calcite.png

257 Bytes
540 Bytes
563 Bytes
12 Bytes
268 Bytes
321 Bytes
269 Bytes
240 Bytes
-2 Bytes
307 Bytes
258 Bytes
18 Bytes
281 Bytes
296 Bytes
268 Bytes
286 Bytes
-315 Bytes
299 Bytes
241 Bytes
5 Bytes
307 Bytes
213 Bytes
-16 Bytes
-1 Bytes
204 Bytes
146 Bytes
146 Bytes
268 Bytes
281 Bytes
290 Bytes
205 Bytes
797 Bytes
570 Bytes
558 Bytes
1 Byte
125 Bytes
81 Bytes
146 Bytes
-238 Bytes
256 Bytes
234 Bytes
232 Bytes
190 Bytes

PapyrusCs/textures/blocks/tuff.png

253 Bytes
281 Bytes
284 Bytes

0 commit comments

Comments
 (0)