0
Commit Graph

318 Commits

Author SHA1 Message Date
Marijn van Wezel
f6ee2cf2fd Add compatibility for 21w39a and 21w43a snapshots 2021-11-10 20:37:19 +01:00
Bernd Buschinski
fc8a87fe2a Add pointed dripstone 2021-07-11 18:05:54 +02:00
Nicolas F
352102552a Merge PR #1957 of buscher
Fix fence connection
2021-07-10 11:18:56 +02:00
Nicolas F
e254e6a192 world: fix the unknown regions warning in 1.17
Fixes #1948.
2021-07-10 11:05:40 +02:00
Bernd Buschinski
327b4711db Fix fence connection
- use ingame data
2021-07-08 18:29:03 +02:00
Bernd Buschinski
2fde7a961a Added deepslate stairs, walls and slabs
- Reordered (new) IDs for better grouping
- Fixed rotation of purpur pillar, basalt and smooth basalt
2021-06-19 16:28:14 +02:00
Bernd Buschinski
6643af756e Added more 1.17 blocks
- only non-rotational full blocks
2021-06-16 20:49:29 +02:00
Nicolas F
4b2035e1f9 textures: add cut copper slabs
Also fix copper stairs stuff not being in alt_height.
2021-06-14 21:58:47 +02:00
Nicolas F
c1f1c31119 textures: add cut copper stairs 2021-06-13 11:43:10 +02:00
Nicolas F
eddb0f2375 textures: add copper ore and raw copper block 2021-06-12 11:37:18 +02:00
Nicolas F
cb375e6788 textures: add cut copper 2021-06-11 21:33:49 +02:00
Nicolas F
f2afeda287 world: fix rendering grass paths on maps < 1.17 2021-06-11 09:47:59 +02:00
Nicolas F
ea4b543e74 Merge PR #1943 from buscher 2021-06-10 19:34:11 +02:00
Nicolas F
6097461494 Merge PR #1941 from buscher 2021-06-10 19:26:11 +02:00
Nicolas F
e729addd23 textures: add some of the new copper blocks 2021-06-10 19:24:01 +02:00
Nicolas F
257975383d textures: add budding amethyst 2021-06-10 17:53:14 +02:00
Nicolas F
66195f6fc7 textures: add amethyst block, raw iron, raw gold 2021-06-10 17:42:30 +02:00
Nicolas F
c717b7170f world: fix dirt path rendering for 1.17 2021-06-10 17:34:46 +02:00
Nicolas F
81bfbc0a15 world: fix warnings regarding unknown region types 2021-06-10 17:23:23 +02:00
Bernd Buschinski
b37f8b4a53 Added Respawn Anchor Charges
- also removed block_lodestone and block_lodestone from block_class_ancil
  as they are not used in generate_pseudo_data
2021-06-06 19:36:40 +02:00
Bernd Buschinski
ef56dbcf3b Rworked glass pane connection
- use in game data instead of manually calculating the adjacency data
2021-06-06 13:50:41 +02:00
Nicolas F
218dc14e04 Merge PR #1878 from Phoenix616
Add name of world to some errors
2021-06-04 13:43:07 +02:00
Bernd Buschinski
bc24ea53ce Added Chains 2021-06-02 17:36:17 +02:00
Bernd Buschinski
ba85932352 Added chiseled and cracked nether bricks 2021-06-01 19:41:25 +02:00
Nicolas F
bd06e9eeb3 Merge PR #1935 from buscher
Fix dead Chorus Flower
2021-05-31 19:10:58 +02:00
Bernd Buschinski
5b2b8b4ef8 Fixed dead Chorus Flower 2021-05-31 17:43:37 +02:00
Bernd Buschinski
a998694dbf Added End Rod 2021-05-31 17:27:15 +02:00
Nicolas F
c43284a2cf Merge PR #1856 from IncredibleHolg
I finally got around to doing this.
2021-05-21 01:32:49 +02:00
Bernd Buschinski
49339af795 Fixes snow height rendering 2021-05-15 17:40:26 +02:00
InrcedibleHolg
6b2be1635d add quartz_bricks, remove duplicates 2020-11-29 23:33:03 +01:00
Phoenix616
16adb443e0 Add name of world to some errors 2020-11-28 14:40:02 +01:00
InrcedibleHolg
66ef67bb78 soul lightning 2020-08-23 09:55:29 +02:00
InrcedibleHolg
619ce0a219 add advanced blocks, nether roof update
crying_obsidian, lodestone, respawn_anchor
ancient_debris part of the nether roof
2020-08-15 10:10:29 +02:00
Lieuwe Westra
113a3a6f09 Added crimson and warped wood 2020-08-14 14:53:59 +02:00
InrcedibleHolg
629b43370e add stone nether blocks 2020-08-09 21:50:13 +02:00
Joseph Camp
b29c9e9ffc world: Fix melon/pumpkin/mushroom stem rendering
Previous check for warped & crimson stem blocks was too inclusive,
causing stems of melons, pumpkins, and mushrooms to be interpreted
as air blocks
2020-08-06 23:18:07 +00:00
Nicolas F
50b84e95b5 Merge pull request #1791 from overviewer/116-blocks 2020-08-05 19:05:57 +02:00
InrcedibleHolg
0a9d1961c5 add soul_soil, nether_gold_ore, removelist 2020-08-04 19:38:23 +02:00
Nicolas F
11aabbfd9f world: fix 1.16 block unpacking
Fixes #1797.
2020-07-28 13:08:43 +02:00
InrcedibleHolg
3ac090a7a0 nether biomes 2020-07-17 00:21:29 +02:00
Nicolas F
fcb3f2644d Shuffle around wall IDs, change wall check
Previously, walls were all numbered at 21000+. This is bad because
our blockmap is an array, so this caused our blockmap to take up
80 MiB of RAM in each worker process.

This commit changes the wall numbering, and exploits some bitmasking
to have the wall check run in constant time no matter how many walls
there are. This is done with a simple mask and xor to check the prefix.

RAM usage for the blockmap thus drops to like 44 MiB.

This is in preparation for adding more walls for 1.16.
2020-07-13 19:15:47 +02:00
Nicolas F
8c0028495d world: work around minecraft palette bugs
Instead of trusting that Minecraft will only request up to index
num_palette_entries - 1, we'll assume Mojang occasionally produces
a weird file where it tries to request past that, up to the maximum
palette index it can based on the bits per value. To facilitate this,
this commit extends the translation palette array to this maximum size.

Such invalid palette picks will simply be replaced by ID 0 (aka air),
so it should cause minimal weirdness in the output.

Works around #1797.
2020-07-09 18:33:39 +02:00
Nicolas F
a3e4812ca9 world: skip zero-size region files
Minecraft 1.16.1 loves writing these in singleplayer, and they
cause a whole bunch of corruption warnings if we don't handle them
in a special way like this.
2020-07-03 13:10:23 +02:00
Nicolas F
fd2c0a057a Add blackstone and netherite blocks 2020-07-03 13:10:23 +02:00
Nicolas F
bc56346bad Initial 1.16 block work
- Add ancient debris
- Add basalt
- Add polished basalt
- Add soul campfire
2020-07-03 13:10:23 +02:00
Nicolas F
d3a5786642 world: work around Minecraft lighting nonsense
Minecraft occasionally generates chunks which are not yet lit.
In the past, I'd have said to just make them not render, but these
can sometimes be large areas of the world.

Instead, render them with full bright SkyLight. This looks less bad
than whatever is stored in the SkyLight property in these cases.

Closes #1787, probably. Only one person bothered providing a sample file.
2020-06-25 18:55:48 +02:00
Nicolas F
1355f8c49e world: retry chunk read on OSError too
Closes #1790.

If a chunk fails reading due to an underlying operating system
IO error, we can invoke the retry logic too. No clue what could
cause this to happen beyond hardware faults.

Also lower the sleep time to 0.25s down from 0.5s because half a
second of sleeping for each chunk this happens on seems incredibly
overkill.

Making the nbt code raise a CorruptChunkError in this case also means
that failing to read a chunk due to an IOError is not a fatal error
anymore, it'll simply skip it and move on.
2020-06-25 15:37:17 +02:00
Joseph Camp
297a940a4b Amend loom rendering
- Account for render direction & block facing data
2020-06-23 23:35:43 +00:00
Joseph Camp
efc345313d Add bell texture 2020-06-23 23:35:43 +00:00
Joseph Camp
99864d99a7 Add campfire texture 2020-06-23 23:35:43 +00:00