1163 Commits

Author SHA1 Message Date
David Vierra
44b1857802 blocks are now defined in .yaml files. added a yaml library.
the .yaml format is an extended version of the one used by Minecraft X-Ray. fields are added for data variants, extra search terms, and lighting info. tables for converting blocks are now inferred from the block info: for each source block's name, it will search the destination's block info for names or aliases (aka) that match or contain the name.

the MCMaterials objects gained the [] operator, which can accept a block name, block id, or (id, data) pair.
2011-10-25 01:23:01 -10:00
David Vierra
1f7c0995b1 fix an incorrect auto-import 2011-10-16 17:53:08 -10:00
David Vierra
5ed1fc5bc3 fixed HeightMap and chunk header for pocket chunks 2011-10-16 14:17:40 -10:00
David Vierra
7d2ec07a1a skip sky lighting in The End 2011-10-14 20:46:17 -10:00
David Vierra
b892d9bc95 remove aether from dimension names 2011-10-14 19:43:23 -10:00
David Vierra
c3206b236e show server output using info() 2011-10-14 19:43:08 -10:00
David Vierra
119ec171de add dimension name for The End 2011-10-14 18:00:30 -10:00
David Vierra
61812ad549 be sure to yield once before stopping iteration 2011-10-14 18:00:21 -10:00
David Vierra
c058aa1fec Pocket Edition worlds now save and relight correctly. 2011-10-14 16:44:28 -10:00
David Vierra
a3f0b16c47 InfdevChunk now ensures that its entities' Motion and Position are lists of doubles. this fixes compatibility with indev worlds, mostly 2011-10-14 10:56:21 -10:00
David Vierra
e527de9d7f 1.9pre1-3 versions of the MC server are known to be unusable for this purpose, so don't choose them in latestVersion. 2011-10-13 16:30:00 -10:00
David Vierra
4cef50f44e first version of pocket level support. has problems with lighting. 2011-10-13 16:02:55 -10:00
David Vierra
eb7f94282b refactor getChunkSlices and MCInfdevOldLevel, creating the ChunkedLevelMixin class.
split up getChunkSlices. put getSlices in module scope and have level.getChunkSlices call getSlices and getChunk. remove its 'create' argument. move infinte.copyBlocksFrom... functions to a ChunkedLevelMixin class and change them to use the new getChunkSlices.  move the chunked getBlockAt and friends, the chunked fillBlocks, and the generateLights to ChunkedLevelMixin
2011-10-13 15:52:59 -10:00
David Vierra
f3a1b1f887 move notclosing to mclevelbase.py 2011-10-13 08:22:17 -10:00
hetmankp
0caae8d444 More finegrained per module logging rather than inheriting the mclevelbase logger 2011-10-12 22:11:02 +11:00
hetmankp
b293eed2a3 Use locally named loggers rather than writing all logs to the root logger
Fix some logging function calls
2011-10-12 22:04:03 +11:00
David Vierra
9f4d511eb6 don't recompute the heightmap immediately when changing a single block 2011-10-02 23:33:20 -10:00
David Vierra
d027bfb610 Merge branch 'master' of https://github.com/chungy/pymclevel 2011-10-01 18:16:32 -10:00
David Vierra
332df2c1d8 don't pass -Xmx1024 -Xms1024 when the machine has <1G RAM 2011-10-01 05:41:37 -10:00
Mike Swanson
68d51b6dc2 Add a command to display and change the game's mode (Survival or Creative). 2011-10-01 06:36:00 -07:00
David Vierra
0d8342f104 randomize the server port when generating 2011-09-29 21:31:44 -10:00
David Vierra
4db526c533 add faces.py 2011-09-29 02:48:01 -10:00
David Vierra
536cf7d864 added textures and names for different types of huge mushrooms 2011-09-28 22:13:37 -10:00
David Vierra
4a0cb9e4f2 added rotations for beds and mushrooms 2011-09-28 22:13:02 -10:00
David Vierra
1769349032 if canceled, extractZipSchematicIter removes its temp folder. also add a method extractAnySchematic that tries both formats, in case you don't care which one you get 2011-09-28 12:42:37 -10:00
David Vierra
287b4cb493 it's now possible to edit ZipSchematics, and they will clean up their temp directories on close. 2011-09-28 12:39:42 -10:00
David Vierra
336f78a65f add block defs for 1.9pre 2011-09-27 17:59:23 -10:00
David Vierra
ef23f562ab clamp heightmap to range of uint8 array. (xxx use numpy.clip) 2011-09-27 17:59:15 -10:00
David Vierra
04447f1b98 support for variable sized worlds - checks the height of the first chunk it finds to discover world height. probably not compatible with H=512 or higher because it overflows the height map. 2011-09-26 17:41:13 -10:00
David Vierra
f221b97d9b move FakeChunk into the module scope so we can inherit from it elsewhere 2011-09-25 15:21:50 -10:00
David Vierra
f0a9407479 added some commands for dumping a region file's headers and finding the unused sectors 2011-09-25 02:39:37 -10:00
David Vierra
73ae8bc3b4 add a containsChunk to regionFile and call it from MCInfdevOldLevel.containsChunk instead of doing a region scan. 2011-09-23 17:51:42 -10:00
David Vierra
b630d39875 add gametype constants and update copyBlocksFromInfiniteIter's docstring 2011-09-23 17:51:26 -10:00
David Vierra
fa88a3d83c rename generateHeightMap to extractLightMap and move it to level.py. call it from the new HeightMap property on FakeChunk (xxx flesh out FakeChunk) 2011-09-23 17:50:43 -10:00
David Vierra
d350d65f90 save and unload chunks during generation, to save memory 2011-09-23 16:46:02 -10:00
David Vierra
c3ec70bee1 added generateAtPositionIter and waitForServerIter, yielding the server's output line by line. 2011-09-23 16:22:36 -10:00
David Vierra
8cc7dcf6d1 added generateAtPositionIter, yielding the server's output line by line 2011-09-23 16:20:10 -10:00
David Vierra
29e713d377 add MapFeatures property 2011-09-22 03:03:06 -10:00
David Vierra
24d9f1390c When generating chunks, start server in headless mode so it doesn't pop up a GUI each run. 2011-09-21 03:30:54 -10:00
David Vierra
632f9ef19c remove psyco 2011-09-19 17:04:02 -10:00
David Vierra
fa081f4b5d schematics now update their shape when rotated, which allows them to be recompressed and saved after rotating 2011-09-18 00:53:30 -10:00
David Vierra
fec95a9bc6 fixed Hidden Silverfish (Stone) texture (was grass...) 2011-09-18 00:49:46 -10:00
David Vierra
dbf56904dd add dummy create flag to generic copyBlocksFrom 2011-09-18 00:49:28 -10:00
David Vierra
e218c2b01e remove debug code 2011-09-18 00:49:12 -10:00
David Vierra
af1c056b96 several tweaks to block names, colors, identifiers 2011-09-16 21:07:59 -10:00
David Vierra
22001f1487 added hidden silverfish blocks 2011-09-16 17:23:09 -10:00
David Vierra
21c756de78 added shouldRetainData check - checks BlockRotation to see if they have the same rotation type, implying their blockData has the same meaning. 2011-09-16 11:58:38 -10:00
David Vierra
dbd65c7e21 added rotation for chests and vines 2011-09-16 11:57:54 -10:00
David Vierra
523b7b992a dummy entity methods 2011-09-16 11:26:36 -10:00
David Vierra
fe793d48cb broken, unused comparison method 2011-09-16 11:26:06 -10:00