630 Commits

Author SHA1 Message Date
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
David Vierra
19d498fd23 fillBlocks now removes tile entities from any blocks that were changed
if we wanted to, we could get the indexes out of mask and create them as needed, but eh
2011-04-15 00:02:54 -10:00
David Vierra
6731c3f19c added TileEntity class with position methods 2011-04-14 23:57:53 -10:00
David Vierra
c53cde960c replaced tileEntitiesAt with tileEntityAt, assuming that there can be only one per tile 2011-04-14 21:01:46 -10:00
David Vierra
1057dc636a set opacity for beds 2011-04-14 02:10:10 -10:00
David Vierra
5979858931 actually display the gzip error 2011-04-13 22:07:03 -10:00
David Vierra
e6d767d0e4 fix the length of TAG_Strings now that they are unicode 2011-04-11 12:01:23 -10:00
David Vierra
dc6b5cffa2 hahaha TAG_String is a unicode string, not just a generic byte stream 2011-04-11 11:28:15 -10:00
David Vierra
5f359e77aa debug level.dat loading errors 2011-04-11 11:26:12 -10:00
David Vierra
1ba8d0fc8f TAG_String is a unicode string, encoded with modified utf-8. 2011-04-10 20:40:25 -10:00
David Vierra
9931429758 updated to latest items.txt 2011-04-08 19:46:30 -10:00
David Vierra
34a8e1bd21 fix any offsets pointing outside of the file 2011-04-08 12:36:05 -10:00
David Vierra
03c1a4ed37 copy constructor for BoundingBox (and it really should be immutable...) 2011-04-08 11:01:41 -10:00
David Vierra
f4724cfe8b Added dumpchests command, contributed by user JYF
Merge remote branch 'JYF/master'

Conflicts:
	mce.py
2011-04-07 18:11:07 -10:00
David Vierra
111be952d4 create an NBTFormatError and raise it where appropriate instead of IOError 2011-04-07 13:00:28 -10:00
David Vierra
0136424d67 add ignored player param for indev levels 2011-04-07 13:00:09 -10:00
David Vierra
bf7c383977 blockAt actually returns 0 as described instead of raising ChunkNotPresent 2011-04-06 23:14:58 -10:00
David Vierra
138063a97f addTileEntity now correctly marks the chunk dirty 2011-04-06 22:05:56 -10:00
David Vierra
abb66b3d98 clean up imports and references to the 'materials' module and restrict imports from nbt.py 2011-04-06 12:25:08 -10:00
David Vierra
de931bae25 fix typo in decompressTag 2011-04-05 20:23:39 -10:00
David Vierra
2b060fe4eb add functions to extract chunks into a separate folder 2011-04-05 19:59:56 -10:00
David Vierra
6578ac2aeb refactored compressTag and decompressTag so we can use the compressors individually 2011-04-05 19:59:37 -10:00
David Vierra
80f1fd4944 some (modded?) tile entities don't have x/y/z position attributes, so skip them... needs investigation 2011-04-05 19:18:29 -10:00
David Vierra
3bcc93657b enforce minimum box size of zero 2011-04-05 14:10:11 -10:00
David Vierra
d3cd25fb07 added flat colors for different leaf types 2011-03-25 01:05:13 -10:00
David Vierra
01a176d143 added 'LevelName' property which inexplicably returns self.displayName for older levels... 2011-03-22 22:27:55 -10:00
David Vierra
44afb44040 set opacity to 0 for cake and repeaters 2011-03-20 18:44:21 -10:00
David Vierra
5eb076b0a1 Dimension is a TAG_Int 2011-03-20 16:53:53 -10:00
David Vierra
dcfdb63846 added birch leaves, decaying leaves, and beds. need to recolor birch leaves or maybe work out biome coloring? 2011-03-18 15:44:25 -10:00
David Vierra
a07c656c69 in containsChunk, just initiate a region scan instead of failing to load the region file 2011-03-16 22:33:03 -10:00
David Vierra
f52bacdc29 don't need to print this header for 'blocks' command 2011-03-13 16:46:24 -10:00
David Vierra
49b9392dd9 updated analyze to count blocks with alternate blockData 2011-03-13 16:46:09 -10:00
David Vierra
b0882314f6 blocks can now reference each others' flat colors during initialization, and do so for slabs 2011-03-13 16:32:40 -10:00
David Vierra
9f02076ae0 changed blocksByName to allBlocks to keep the blocks ordered (right now, ordered by initialization order...) 2011-03-13 16:31:51 -10:00
David Vierra
cf4f6d7ece 0x255 isn't a number! 2011-03-13 16:29:42 -10:00
David Vierra
4b36564e43 added name comments to flat colors (eventually move these around to the blocktypes?) 2011-03-13 16:29:27 -10:00
David Vierra
ba69c3eaf4 moved classic materials into a separate file 2011-03-12 14:55:22 -10:00
David Vierra
de1bd9ae18 fixed leaf texture for classic levels (fixed? at least for my terrain-classic.png) 2011-03-11 21:47:14 -10:00