188 Commits

Author SHA1 Message Date
David Vierra
bcad04094e fixed comments 2010-09-25 19:04:38 -10:00
David Vierra
519ff19908 MCIndevLevel: unpacked BlockLight array from Data array.
xxx move to unpackChunkData and get full indev editing working, but nobody can play indev right now
2010-09-25 19:04:21 -10:00
David Vierra
9f8a1ab35a clarified comments, removed incorrect ones 2010-09-25 18:32:27 -10:00
David Vierra
33df0ed0dc box compare 2010-09-25 18:31:55 -10:00
David Vierra
6e6ba93855 added licensing terms 2010-09-25 00:14:18 -10:00
David Vierra
95b65a8cf9 None argument to fillBlocks means operate on every chunk in the world.
previously, getChunks over a huge box would waste a lot of time skipping absent chunks in large, sparse levels.
2010-09-24 11:42:29 -10:00
David Vierra
2d20849271 pass None to fillBlocks for the area, instead of a giant box 2010-09-24 11:41:24 -10:00
David Vierra
cb0cddf704 updated sample usage in readme 2010-09-24 00:04:26 -10:00
David Vierra
3bb62426e5 work around a bug in older versions of Numpy that can't create boolean arrays from iterators 2010-09-23 19:24:31 -10:00
David Vierra
7caddf7784 created PlayerNotFound exception and used it in getPlayerPosition 2010-09-23 01:04:08 -10:00
David Vierra
b2b87a0114 make sure newly made chunks get saved 2010-09-22 21:59:18 -10:00
David Vierra
540a416558 added MCLevel.setBlockAt and MCInfdevOldLevel.setBlockAt 2010-09-22 21:32:28 -10:00
David Vierra
5df9280735 why does git randomly include a reverse commit in the next commit?? 2010-09-22 12:11:27 -10:00
David Vierra
823e13fb75 raise IOError when this weird condition happens - created a chunk without checking for its file 2010-09-22 12:10:09 -10:00
David Vierra
bcb8dde14b copy INVEdit's inventory tag 2010-09-22 12:09:50 -10:00
David Vierra
38534f3aa0 entity rotation works! 2010-09-22 12:09:35 -10:00
David Vierra
2c9ce3ff5a return a copy of this box 2010-09-22 12:09:12 -10:00
David Vierra
f9a66d0e74 handle uncompressed etc correctly 2010-09-21 01:54:55 -10:00
David Vierra
a3c1cc83a9 these schematics are terrible 2010-09-21 00:12:34 -10:00
David Vierra
13c3e0d862 honor dirty flag during chunk compress, to avoid extra work 2010-09-21 00:12:21 -10:00
David Vierra
05a92c686a make sure to mark chunks dirty after removing entities.... 2010-09-20 19:30:51 -10:00
David Vierra
fce0df5a7d use a flag to avoid unnecessary saves 2010-09-20 19:18:18 -10:00
David Vierra
4a711abab0 inherit from object for property() 2010-09-20 19:00:38 -10:00
David Vierra
3c18966e9b fill operation progress output is better 2010-09-20 19:00:28 -10:00
David Vierra
889cf7f476 Added degrief command - removes lava, obsidian, adminium, fire above a specified level 2010-09-20 18:59:20 -10:00
David Vierra
835e4ceb02 single-command non interactive mode works 2010-09-20 17:58:34 -10:00
David Vierra
2e233fd25a added removeEntities command 2010-09-20 17:40:29 -10:00
David Vierra
2e06d63bce removed unneeded except blocks after making readPoint and readBlocks throw UsageError 2010-09-19 19:34:58 -10:00
David Vierra
ba8cfc465c added player not found exception 2010-09-19 19:34:20 -10:00
David Vierra
583e4a58eb block search works now xxx duplication from readBlockType 2010-09-19 19:10:06 -10:00
David Vierra
35bdd17e76 echo the chosen block types when filling/replacing 2010-09-19 18:49:16 -10:00
David Vierra
07642a1aba ooops, use the new match instead of the old one when eating more words 2010-09-19 18:48:57 -10:00
David Vierra
d9395e847c argh lighting bug, need to light all changed chunks during replace, according to change in transparency
xxx still need to adjust for luminance
2010-09-19 15:38:01 -10:00
David Vierra
91c4ef36cb just print the block match message when a bad block is given 2010-09-19 15:32:49 -10:00
David Vierra
c7a0d3c8fe Merge branch 'master' of git@github.com:codewarrior0/pymclevel.git 2010-09-19 15:18:48 -10:00
David Vierra
8d6cc52f06 allow exact matches for block search 2010-09-19 15:18:01 -10:00
David Vierra
aae47fe2d9 added sample usage to readme 2010-09-19 15:11:37 -10:00
Nelson Minar
5cd2869717 very simple top level package so apps can import the whole directory 2010-09-20 09:09:50 +08:00
David Vierra
6d41466ae9 better block search for 'blocks' command 2010-09-19 15:04:38 -10:00
David Vierra
1bdd5ecffa print partial matches better, without future block spam 2010-09-19 15:04:23 -10:00
David Vierra
e2c27b7b63 added chest and spawner schematics 2010-09-19 14:53:30 -10:00
David Vierra
18435c3b7a empty line before command output 2010-09-19 13:43:47 -10:00
David Vierra
69c29a08a8 better handle bad block names 2010-09-19 13:43:40 -10:00
David Vierra
3993f041ea new readme 2010-09-19 04:51:59 -10:00
David Vierra
ecaedf8450 only display replace summary after replacing 2010-09-19 04:40:11 -10:00
David Vierra
f0deb29d53 stop after one word matches, too 2010-09-19 04:39:58 -10:00
David Vierra
75a29aeaea enforce data types in __init__ 2010-09-19 04:34:21 -10:00
David Vierra
0e43264748 more efficient block replace, doesn't trigger relights unnecessarily 2010-09-19 04:34:08 -10:00
David Vierra
df197446a8 scanning 2010-09-19 04:33:40 -10:00
David Vierra
fdb14f0517 don't override previous needsLighting flag 2010-09-19 04:33:33 -10:00