David Vierra
7b92998368
use numpy.clip to ensure a minimum light absorption of 1. remove any extra +1 and -1 terms that previously adjusted for that minimum.
2011-11-02 11:39:31 -10:00
David Vierra
7e299b3c8c
leaves' Decaying and Permanent bits were swapped
2011-11-01 00:05:10 -10:00
David Vierra
b39cb3e7e6
need to return -1 from __cmp__ to return "less than"
2011-11-01 00:04:35 -10:00
David Vierra
464ecd818b
add unnamed data variants for Crops, to set the textures
2011-10-30 20:46:23 -10:00
David Vierra
777ec18ce2
fix graphics for slab and double slab variants
2011-10-30 20:06:12 -10:00
David Vierra
41fe391c2a
can only compare Block against another Block (for now)
2011-10-30 20:05:50 -10:00
David Vierra
214c5a547c
Pocket Edition: Red Rose is now Cyan Flower
2011-10-29 19:06:04 -10:00
David Vierra
58514cca27
fix stone step graphics, change "Grey" spelling to "Gray" as it is in in game, and add "aka: Aqua Wool" to Light Blue Wool to create the connection
2011-10-29 18:56:18 -10:00
David Vierra
e3f90770f2
static block defs for indevMaterials
2011-10-29 18:19:28 -10:00
David Vierra
9a65c28829
MCMaterials' "type" array is 2D, so when Block.type is fetched, index again with blockData
2011-10-29 18:16:36 -10:00
David Vierra
fd6e0f8309
add indev materials and correct classic cloth colors
2011-10-29 18:15:37 -10:00
David Vierra
731390e40a
make MCMaterials an iterable over its own blocks
2011-10-29 18:15:06 -10:00
David Vierra
b82b617f8b
correctly set materials for extracted schematics (.materials= doesn't do it)
2011-10-29 18:14:34 -10:00
David Vierra
ba96a653af
store the yaml data on the MCMaterials object in addition to creating blocks from it, so we can check how much yaml data was loaded into one.
2011-10-29 15:10:52 -10:00
David Vierra
729008c2d3
show debug info when looking for .yaml files
2011-10-29 14:43:51 -10:00
David Vierra
bfc65ad41b
Ender Stone -> End Stone, Wool -> White Wool
2011-10-29 14:35:32 -10:00
David Vierra
5d99ead1b1
make AllStairs into a property
2011-10-29 14:35:19 -10:00
David Vierra
7aece200ea
create self.aka correctly as a 2D array
2011-10-28 16:55:16 -10:00
David Vierra
0e23672390
pocket.yaml: add leaf flavors and conversion hint for white wool -> light grey wool
2011-10-28 16:54:52 -10:00
David Vierra
8b8898c6df
Merge pull request #55 from hetmankp/master
...
More finegrained loggers (issue #53 )
2011-10-26 04:18:30 -07:00
David Vierra
882e1b36f7
tests now clean up after themselves
2011-10-25 15:35:54 -10:00
David Vierra
c5479867af
entity.py is imported by mclevelbase
2011-10-25 03:01:45 -10:00
David Vierra
916673db19
return a dummy item instead of raising an exception, like MCMaterials.blockWithID
2011-10-25 02:58:33 -10:00
David Vierra
4e1bcaeb5d
use SHGetSpecialFolderLocation in a second attempt to get a unicode string for the APPDATA folder (os.environ is broken on win32)
2011-10-25 02:56:56 -10:00
David Vierra
2ca14695f3
'blocks' command lists blocks nicely when given a single block ID
2011-10-25 02:55:21 -10:00
David Vierra
1b3cb5bbed
optimization: assume the server will generate at least 11x11 chunks for us.
2011-10-25 02:15:04 -10:00
David Vierra
babcd7a5f9
fix initial materials for schematics lacking a Materials tag; allows editing and saving these files
2011-10-25 02:14:05 -10:00
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