David Vierra
4032053d53
copyBlocksFromInfinite now has an iterator form, so copyBlocksFromIter callers can show progress
2011-11-17 20:40:45 -10:00
David Vierra
e739afa53b
rearrange so __init__ is at the top of the class
2011-11-16 12:59:45 -10:00
David Vierra
6945b0185c
Merge pull request #60 from chungy/master
...
Rewrite gametype command in mce.py
2011-11-16 09:18:13 -08:00
David Vierra
c313d25ecd
add default name for dimensions
2011-11-14 10:18:09 -10:00
Mike Swanson
11aaca46a4
Change the help message to include gametype's new invokation.
2011-11-13 20:52:49 -08:00
Mike Swanson
59431458db
Fix typo in a comment in my previous commit.
2011-11-13 15:30:46 -08:00
David Vierra
27ee33dd33
handle items with stack size in parens - has normal stack size but INVEdit only gives you one instead of a full stack
2011-11-12 17:45:17 -10:00
Mike Swanson
4d5a8ebe7f
Refine gametype command to be more robust.
...
Now supports both single- and multi-player worlds, and it also
sets the player abilities added in Beta 1.9-pre5 to proper values
based on the gametype changed to. No longer will allow flying and
invulnerable players when switching to survival mode!
2011-11-12 17:43:35 -08:00
David Vierra
9a907d34e1
added off-color leaves
2011-11-11 13:04:50 -10:00
David Vierra
2cebca596f
add slot names for item-containing tile entities
2011-11-11 08:06:31 -10:00
David Vierra
c19e5a7e69
change default (absent) texture to a new pink block
2011-11-11 03:56:41 -10:00
David Vierra
76bb92324f
update the internal items_txt
2011-11-11 03:56:24 -10:00
David Vierra
608af8a8e3
add known entityIDs and add Piston and Cauldron structures
2011-11-11 03:56:09 -10:00
David Vierra
04b85ee62e
fix jarfile path encoding for windows, because Popen only accepts encoded strings
2011-11-10 15:01:10 -10:00
David Vierra
e1e0ae6152
use view('int8').clip(0, 15) to constrain light values more cheaply, and change the maximum() calls to use the out param to avoid extra allocations
2011-11-10 12:30:22 -10:00
David Vierra
22541f5bd4
generateLightsIter now yields more accurate progress estimates, plus progress info strings
2011-11-10 12:28:13 -10:00
David Vierra
e1c7020207
filenames may be unicode, so use unicode format strings
2011-11-10 03:28:50 -10:00
David Vierra
cf5b162d1d
tempWorldCache must be keyed on both the server version and the level's seed
2011-11-10 03:28:16 -10:00
David Vierra
1a6e9c1c66
unicode-format the path to the server jar, because python won't promote the format string to unicode for us :(
2011-11-08 09:04:44 -10:00
David Vierra
ce9414ec4d
fixed the name of indev diamond blocks
2011-11-08 09:04:19 -10:00
David Vierra
446a55156d
fix up entities in indev levels to have TAG_Double for motion and pos, to be compatible with modern levels. (xxx do this in copyBlocksFrom?)
2011-11-06 00:34:10 -10:00
David Vierra
856c9d7bf7
update to items.txt for 1.9pre5. (Thanks, copyboy!)
2011-11-06 00:33:30 -10:00
David Vierra
ab865675c4
Don't compute skylight in The End.
2011-11-02 11:39:54 -10:00
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