Commit Graph

67 Commits

Author SHA1 Message Date
e42107557e [Forge] Make DefaultBlockParser behave more like vanilla. 2016-06-17 16:59:41 -07:00
5a42a8ddb4 Update internal block and item definitions. 2016-06-11 13:07:53 -04:00
fabd7045e7 Fix NPE when rotating hanging entities (#356) 2016-05-20 20:00:30 -04:00
85d4b9f4ec Fix MathUtils.dSin 2016-05-20 17:14:04 -04:00
4a7683d5bf Apply transformations to NBT data of tile entities (fixes rotation of skulls) 2016-05-20 17:13:52 -04:00
8f50f5adfb Fix secondary-ordinal direction vectors 2016-05-20 17:13:46 -04:00
1a3ae37b73 Fix rotation of item frames 2016-05-20 17:13:39 -04:00
7dc9a9aece Merge remote-tracking branch 'origin/master' into feature/sponge-new 2016-05-18 19:49:16 -04:00
03d7cd394a Fix another NPE in schematics. 2016-05-18 12:44:22 -04:00
2734dc377c Add 1.9 doors to getBlockBagItem HashMap 2016-05-17 03:00:09 -05:00
c3342bb7b4 Add support for 1.9 doors on MultiStageReorder 2016-05-17 01:15:50 -05:00
b3fbe8b7a5 Update blocks.json.
This fixes a lot of issues with block rotations for various blocks.
Additionally, the //info tool will now report states (only works for
states that use data values) for easier lookups.

Note that some doors still have update issues, and //fast is needed
to paste them if they drop as items.
2016-05-15 04:02:35 -04:00
574ed9aa41 Fix some formatting concerns. 2016-05-05 20:09:53 -07:00
301d02c9c5 Warn when not using Java 8 or greater.
Note: this warning is not in the shared WorldEdit class because it
doesn't get loaded as early as the individual plugin/mod
implementations for some reason.
2016-05-05 17:55:22 -07:00
c9f54ecb01 Only negative radius allowed for //butcher is -1. 2016-04-26 19:40:25 -04:00
867e59ba3d Parse empty sign lines as empty JSON strings.
Since the server doesn't bother validating sign text, and
the client validates it by crashing. Note that this attempts
to wrap strings as JSON, but hasn't been fully tested.
2016-04-14 19:24:09 -04:00
d3bbb40274 Merge remote-tracking branch 'origin/master' into feature/sponge-new 2016-03-19 14:44:56 -04:00
94ae1be2d1 Fix NPE when using //schem list with not schematics present. 2016-03-08 12:42:23 -05:00
124308c4ce Fixed an issue where an entity could fail to spawn, and this would end the edit 2016-02-05 19:33:48 -05:00
982420369d Rewrite Closer to compile on Java 6 wrt Jar/ZipFile. 2016-01-31 22:26:30 -08:00
rlf
03f8843c20 More efficient chunk calculation of CuboidRegion 2016-01-13 19:02:46 -05:00
62befe7594 Fix schematics in directories. 2016-01-13 18:55:49 -05:00
629b7d56dc Merge branch 'feature/paged-schematic' of https://github.com/kenzierocks/WorldEdit 2016-01-13 17:46:10 -05:00
2cd4412b5d Make mask parser create world-aware expression masks.
This allows things like //gmask =queryRel(...) to work.
Also the query* functions now allow -1 as a wildcard for either id or data.
2016-01-13 17:34:58 -05:00
8cd46977f3 Add paging to //schematics.
-p <int> can be used to select a page. Defaults to page 1.

First implementation by @BangL.
2015-12-28 12:52:39 -08:00
23d6fa7579 Add worldedit.calc permission node to //calc command. 2015-12-21 16:14:44 -05:00
bed8a80894 Revert to Guava 17's firstNonNull.
Deprecated but Spigot doesn't include guava18 yet.
2015-11-13 20:17:56 -05:00
0e200df5be Replace //set with new command version. 2015-10-29 18:20:27 -07:00
86c6de7105 Add shortcut forest brush. 2015-10-29 13:16:22 -07:00
fdfc3cdb33 Reorganize and further unify the new commands. 2015-10-29 13:05:04 -07:00
25ad916611 Make ApplyCommand use SimpleCommand rather than ParameterCommand. 2015-10-28 14:08:47 -07:00
6cfc60b2d6 Don't call next suggestion provider if there are no args left. 2015-10-28 14:08:29 -07:00
cba32732a3 Add /br raise and /br lower as shortcuts for /br deform. 2015-10-28 13:50:07 -07:00
98b61d0fbd Add a default suggested Deform expression. 2015-10-28 13:38:04 -07:00
874408ad10 Make flags command executor-specific. 2015-10-28 13:37:58 -07:00
f4bb5272e1 Update new commands with suggestion and help support. 2015-10-27 13:51:45 -07:00
935de4c93d Add some experimental brush commands.
/br set <shape> <radius> <pattern>
/br deform <shape> <expression>
/br scatter <shape> <density> <generator>
/br apply <shape> <generator>

<shape> can be: cuboid, cyl[inder], sphere

<density> is 0-100

<generator> can be:
forest|tree <type>
item <item>[:<data>] (ONLY WORKS ON FORGE)

Examples:

/br deform cuboid 5 y-=0.2
/br scatter sphere 5 100 minecraft:dye:15
2015-10-26 23:14:30 -07:00
9a65bdb72d Fix cycler tool trying to set negative data values.
Fixes WORLDEDIT-3325.
2015-07-31 12:46:51 -04:00
1dd6faf786 Actually for real fix unit tests.
I promise this time.
Seriously though, who makes unit tests depend on some old,
hardcoded file that isn't even updated anymore.
2015-07-17 07:51:41 -04:00
2aad68f80d Fix BlockData causing unit test to fail
Yes, even though north/south and south/north anvils LOOK the same, they are in fact different data values.
2015-07-17 04:48:09 -04:00
49fde59716 Fix unfortunate typo in AffineTransform 2015-07-15 08:03:13 -04:00
025591e6d9 Don't double-check for symlinks while loading schematics.
Fixes WORLDEDIT-3310.
2015-06-19 18:28:25 -04:00
b4d574273d Add more random tree types. 2015-06-05 00:30:14 -07:00
e6662d7519 Make some minor corrections in TreeGenerator. 2015-06-04 23:54:25 -07:00
270e988b60 2015 called: they are called "oak" and "spruce" now. 2015-06-04 23:26:23 -07:00
ec5de0f22f Cleanup unused imports 2015-05-31 15:59:40 -07:00
642f2a1f58 Fix entities copying to original location.
Fixes WORLDEDIT-3275.
2015-05-29 16:18:58 -04:00
d5914e52e1 Fix ExceptionHandler compareTo method.
The previous implementation violated the contract that compareTo must be behave the same way when operands are reversed and that it is transitive. Any classes that were not equal, or a superclass of another were returned as being "less than".

The new implementation tests if classes are superclasses of each other, otherwise falls back to alphabetical sorting on canonical name.

While this did not manifest in 1.6, the replacement sort algorithm in 1.8 (TimSort) caused the sorting to appear random due to apparently contiguous sections being consumed, then sorted in bulk.
2015-03-13 16:04:55 +00:00
2db5d8b11a Merge pull request #322 from flaminscotsman/tools_fix
Fix for WORLDEDIT-3270
2015-03-11 00:36:35 -04:00
f71d037a35 Change cycler tool to use EditSession rather than changing the world directly 2015-03-10 21:55:51 +00:00