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
David Vierra
f7c8fb699d
began to add support for creating "Wildcard" blocktypes that match any blockdata
2011-03-11 21:38:10 -10:00
David Vierra
eb261efee3
fixed repair() after changing writeChunk into saveChunk
2011-03-11 20:52:01 -10:00
David Vierra
d6a66b2ba8
create Materials tag if it isn't present (old schematics)
2011-03-11 20:51:25 -10:00
David Vierra
1517d39f86
fix containsChunk for region-style levels ( thought this was already fixed... )
2011-03-11 20:36:41 -10:00
David Vierra
81da724f4f
need to call __del__ on superclass
2011-03-11 05:13:12 -10:00
David Vierra
11695c48fd
these strings need to be unicode because displayName is a filename
2011-03-11 05:12:55 -10:00
David Vierra
1fca059151
added AKAs for netherrack and soulsand
2011-03-11 01:45:03 -10:00
David Vierra
51fb5c635c
blockWithID will synthesize a Block without "registering" it with the MCMaterials object.
...
i'm starting to think the Block object is becoming very silly.
2011-03-11 00:19:21 -10:00
David Vierra
aa8057072e
added aliases for several blocks
2011-03-11 00:17:16 -10:00
David Vierra
2c36cf811e
blocksMatching now searches the blocks' aliases too
2011-03-11 00:17:03 -10:00
David Vierra
04507f599d
the blocksToReplace parameter to fillBlocks defaults to an empty list now
2011-03-09 21:04:43 -10:00
David Vierra
c653af80fd
this method of unpacking data is slightly faster
2011-03-09 20:55:49 -10:00
David Vierra
18896f267f
turns out this code was only used by MCSchematic, so put it here...
2011-03-09 17:27:23 -10:00
David Vierra
cb4fa95b24
added 'repair' command that scans region files for inconsistent chunk storage
2011-03-09 16:21:55 -10:00
David Vierra
8268d4b0da
added redstone repeater blocks and rotation tables
2011-03-09 16:08:36 -10:00
David Vierra
841994be9b
added different slab types
2011-03-09 15:34:14 -10:00
David Vierra
938a7ee21b
zipfile.read returns the compressed data, so have ZipSchematic._loadChunk decompress it
2011-03-09 13:52:14 -10:00
David Vierra
1bf1cfa8b6
expanded block definitions to support blockData for colored wool and varied trees
...
textures are given as a pair of 0-255 pixel coordinates instead of combining them into one byte. the first coordinate of the pair is left-to-right on the terrain.png
added flat color definitions for low-detail rendering. color codes borrowed from c10t
block defs are now attrs of the MCMaterials objects.
fillBlocks now takes Block objects instead of block ID numbers
2011-03-09 13:05:23 -10:00
David Vierra
00c3514e36
replace materialNamed calls with refs to the Block object's ID
2011-03-08 21:03:57 -10:00
David Vierra
a12dfdf29a
print the name of the regression before starting
2011-03-07 22:34:01 -10:00
David Vierra
3320be689f
set hasEntities for more level types. suspect this was why zipschematics were getting exported without entities.
2011-03-07 19:37:32 -10:00
David Vierra
2c0257e6a4
removed cruft
2011-03-07 18:59:41 -10:00
David Vierra
396925bc1e
restored support for the older chunked format, including zipped schematics exported from older MCEdits
...
changed world._loadChunk to set chunk.root_tag and chunk.compressedTag instead of just returning the uncompressed, flat NBT data. RegionFile.loadChunk also changed to set chunk.root_tag and chunk.compressedTag instead of returning data. These methods now take a chunk object as input instead of coordinates and data
2011-03-07 18:24:40 -10:00
David Vierra
7170e003d7
compressedSize is only used by chunks
2011-03-06 16:29:14 -10:00
David Vierra
a10ef86ae9
this code was completely unused!
2011-03-06 15:30:12 -10:00