667 Commits

Author SHA1 Message Date
David Vierra
a6c0da238a add pretty_string method to tags for indented output 2011-07-22 20:34:36 -10:00
David Vierra
694a5b8df7 refactoring compress methods in InfdevChunk, decompress methods in MCRegionFile, added extractAllChunks to MCRegionFile, refactored preloading code in MCInfdevOldLevel 2011-07-22 20:08:07 -10:00
David Vierra
db69f5bd98 set materials for fake chunks 2011-07-11 11:54:10 -10:00
David Vierra
0e6b3cfac9 sanitize both grass and snow layer. maybe more blocks in the future. 2011-07-06 10:03:25 -10:00
David Vierra
3087fa50d8 automatically change underground grass to dirt to avoid massive lag in minecraft. 2011-07-05 12:16:04 -10:00
David Vierra
346b0aab99 add chunkIsCompressed/Dirty, clean up chunkIsLoaded 2011-06-30 14:11:49 -10:00
David Vierra
91490dfd10 add fake chunkIsCompressed/Dirty for finite levels 2011-06-30 14:11:09 -10:00
David Vierra
c496c5f0ad add fake chunkCount for fixed size levels 2011-06-30 14:10:36 -10:00
David Vierra
2cc8db124b add blocks and rotations for the new Piston blocks 2011-06-30 13:30:13 -10:00
David Vierra
dd9fab9bac playerSpawnPosition gets the world spawn by default 2011-06-16 13:47:58 -10:00
David Vierra
a5ff751de5 don't scan for sub-dimensions of an AlphaDimension in case of a messed up world folder 2011-06-15 17:07:45 -10:00
David Vierra
0fd54a2a00 need iteritems to loop through keys and values of a dict :\ 2011-06-14 15:39:49 -10:00
David Vierra
875b0d0346 oooooopsie, this wouldn't have happened with a stronger type system 2011-06-14 15:36:23 -10:00
David Vierra
7adb20f4ed add a getPlayerTag function, call it from getPlayer/SpawnPosition, and cache player tags to avoid rereading them too often 2011-06-14 06:11:52 -10:00
David Vierra
0e8752fcd4 added block rotations for trapdoors 2011-06-13 15:09:09 -10:00
David Vierra
7faf366e7c satisfy the warning about "first parameter must be self" 2011-06-08 17:56:49 -10:00
David Vierra
d91ca462e1 avoid having uninitialized data in nbt.loadFile 2011-05-26 14:08:51 -10:00
David Vierra
6325035359 spruce and birch saplings were swapped 2011-05-26 14:08:29 -10:00
David Vierra
29b498d91b added web, tall grass, shrub, april fools chest, and trapdoor 2011-05-26 14:03:06 -10:00
David Vierra
07245b867a try even harder to find a matching item, by searching for damagevalue 0 2011-05-26 02:51:24 -10:00
David Vierra
20223cae8e skip position-less entities in removeEntities too 2011-05-01 10:43:15 -10:00
David Vierra
9ca56ea596 dumpchests now observes items with differing damage values 2011-04-30 18:46:11 -10:00
David Vierra
216bd58ccf avoid calculating skylight in the Nether, where it isn't needed 2011-04-30 17:18:36 -10:00
David Vierra
c27ad24f7f this log is spammy, move it to debug level 2011-04-30 17:18:17 -10:00
David Vierra
19190964ba update checksum for analyze output 2011-04-30 10:18:32 -10:00
David Vierra
02c2f117fd dumpsigns writes to a file with explicit encoding 2011-04-30 10:18:21 -10:00
David Vierra
bf1002bf42 pass the compression format byte around through all of the region routines, since a chunk remembers its compress mode 2011-04-29 14:43:13 -10:00
David Vierra
19a632b878 show the compressMode in the fake filename for regionized chunks 2011-04-29 13:29:52 -10:00
David Vierra
3c76fcd29b bugfix 2011-04-29 12:26:35 -10:00
David Vierra
23594f0634 clarify these error messages 2011-04-29 11:31:10 -10:00
David Vierra
9ec4ca3578 change x,z to cx,cz here 2011-04-29 11:30:58 -10:00
David Vierra
53be8e48bf workarounds for a bug in python's gzip module - it will raise an error when trying to decompress any extra bytes that follow the first gzip packet
changed (de)compressTag to (de)compressChunk - the chunk is now in charge of setting chunk.root_tag and chunk.compressedTag

the region file sets chunk.compressMode on new chunks, which is VERSION_GZIP by default
2011-04-29 11:30:35 -10:00
David Vierra
6d4f29726b addEntity should mark the chunk dirty 2011-04-25 07:20:42 -10:00
David Vierra
cd82beae42 add chunkPosition to FakeChunks 2011-04-25 06:33:45 -10:00
David Vierra
dc13ca8302 randomseed command makes sure to save the level 2011-04-24 13:48:26 -10:00
David Vierra
09a55877d4 add rotation for straight rails :x 2011-04-24 09:42:40 -10:00
David Vierra
c647513576 actually add rotation for powered/detector rails 2011-04-24 09:40:25 -10:00
David Vierra
d58d0531eb add other textures for powered rails 2011-04-23 12:02:39 -10:00
David Vierra
f93cab826d add flips and rotation for powered and detector rails 2011-04-23 12:02:13 -10:00
David Vierra
e2edef3ed5 getAllChunks needs to yield the relative position within the requested box instead of the absolute position 2011-04-21 15:54:14 -10:00
David Vierra
6d09499433 box == None means do the entire area - but now the TileEntity check needs the box so get the level's bounds 2011-04-21 10:27:18 -10:00
David Vierra
cfb06fdf43 fix and clarify the type of the initial value for newly created TAG_Strings 2011-04-20 20:20:49 -10:00
David Vierra
c3dbad1917 added birch and spruce saplings 2011-04-20 01:44:01 -10:00
David Vierra
5bf56ba4a5 changed redstone texture for 1.5 2011-04-19 22:19:51 -10:00
David Vierra
469b83e837 added beta 1.5 items and bed texture 2011-04-19 21:42:38 -10:00
David Vierra
f95f6c6795 added Entity class with position methods 2011-04-16 00:28:55 -10:00
David Vierra
73653c3130 addTileEntity now correctly removes entities in the same location 2011-04-15 23:50:20 -10:00
David Vierra
ae8864583b fake chunks also have fake entities 2011-04-15 23:48:49 -10:00
David Vierra
0b960690cb don't load items.txt, use the embedded default and leave it up to the program to load another 2011-04-15 18:37:58 -10:00
David Vierra
cdb67e2fc6 add import to __init__ 2011-04-15 00:06:16 -10:00