Commit Graph
100 Commits
Author SHA1 Message Date
wizjany c3ee926a2e Correctness improvement for legacy data in expression generation. 2019-03-02 11:55:03 -05:00
wizjany e53962dadd Apply source function after source mask in ForwardExtentCopy.
The source function should only get applied to actually copied blocks.
2019-03-01 21:15:21 -05:00
wizjany f46c70093c Fix the long-range build tool's ability to build mid-air. 2019-03-01 20:10:46 -05:00
wizjany 0656ef1920 Fix LayerVisitor stopping early instead of skipping covered columns. 2019-03-01 19:25:10 -05:00
wizjany 4bd6d73085 Fix some bad copy-pasta in expression environment queries. 2019-02-28 01:03:02 -05:00
wizjany 243d6476ac Re-add smooth filtering via a mask.
Instead of trying to maintain a list of "natural terrain blocks", just
let the user specify a mask of blocks to use for the height map filter.

https://gfycat.com/severaljauntycondor
2019-02-26 23:54:53 -05:00
wizjany 9eeb0acffe Add radius checks to a few more utility commands. 2019-02-25 18:41:20 -05:00
wizjany 90797d12f4 Skip legacy materials when setting up registries.
Doesn't make a difference normally, but avoids errors in special envs.
2019-02-25 18:41:20 -05:00
wizjany 2f734d4570 Check radius instead of diameter for clipboard brush.
This brings it more in line with other brushes in terms of allowable size.
2019-02-25 18:41:19 -05:00
wizjanyandGitHub de9d202681 Clear shaped brush material on command.
The initial material is held in the factory, but if a brush was previously bound, that pattern is used.
Now, using `//br set` will clear the previous material, allowing the OperationFactory's material to work.
This can be changed later with `/mat`, which will once again set the fill on the tool, overriding the factory's context.
2019-02-15 14:51:26 -05:00
wizjany 319f2efe43 Ignore synthetic classes when loading BukkitImplAdapter. 2019-02-14 18:07:07 -05:00
wizjany 39131eb1e5 Revert "Remove synthetic classes from adapters."
This reverts commit 1ae0e88b
2019-02-14 17:56:48 -05:00
wizjany 313cd20b14 Make legacy compat layer return straight stairs. 2019-02-14 17:53:30 -05:00
wizjany 88014b18a3 Added a few new things using block states.
* `//set ##*tag` sets all states in the tag (not just default state per type)
* `//set ^type` is a pattern changing block type but copying all valid existing states
* `//set ^[prop=val,...]` sets the property `prop` to `val` wherever the existing block has that property
* `//set ^type[prop=val,...]` does both of the above
Those work anywhere a pattern is taken, of course.

* The mask syntax `^[prop=val]` matches blocks with the property `prop` set to `val`, or blocks that don't have the property at all.
* The mask syntax `^=[prop=val]` only matches blocks that have the property.
Those work anywhere a mask is taken, of course. (`//mask`, `//gmask`, `//replace`, etc)

The `//drain` command now takes `-w` flag that removes the waterlogged state from blocks (in addition to removing water, as before).
2019-02-14 17:21:01 -05:00
wizjanyandWizjany 287be0209c Slight readability and usability improvements.
Also no longer allows trailing strings (e.g. //set #clipboardasdf).
2019-02-12 17:11:57 -05:00
wizjanyandWizjany 19796aa3be Added offset to ClipboardPattern.
Takes input like '//set #clipboard@-1,0,1' which shifts the pattern over.
It also now extends RepeatingExtentPattern, which was previously unused.
2019-02-12 17:11:57 -05:00
wizjany 6708e8292f Restore generation of hollow shapes.
Unfortunately this is a bit slower than before since we can't cache block
id & data values. However, applying patterns generally isn't too expensive,
and hollow regions were entirely broken before.
2019-02-09 20:30:57 -05:00
wizjany cdd71178f5 Ensure BlockCategories are initialized.
We should probably have a way to initialize all these catalog classes ahead of time.
2019-02-04 22:34:25 -05:00
wizjany dddf2b963a Fix long-range build tool.
Blocks were always placed around 0,0,0 since the trace direction was being used as a position.
Also the message was backwards.
2019-02-03 19:27:30 -05:00
wizjany e6c6a2cfea Set version to next snapshot, even though this is about to get clobbered by 7.0 snapshot. 2018-08-03 21:40:04 -04:00
wizjany 08fc855c0f Release 6.1.9 for Bukkit 1.12.x 2018-08-03 21:39:18 -04:00
wizjany 437ad00658 Move asm dep to buildscript section. 2017-10-19 20:06:01 -04:00
wizjany 21d89311c9 Update asm dep for ForgeGradle. 2017-10-16 18:08:41 -04:00
wizjany d1c2b8c3e5 Downgrade sponge target to fix compilation issues. 2017-08-05 12:55:35 -04:00
wizjany f34bc7aca5 Updated Bukkit to 6.1.7.3 for MC 1.12.1 and Forge to 6.1.8 for MC 1.12. 2017-08-05 12:18:52 -04:00
wizjany b557b2b71d Revert "Some command fixes" aka "Some command breaks"
This reverts commit 4a8bba7a54.
Fixes WORLDEDIT-3574.
2017-06-09 12:46:26 -04:00
wizjany 9cf8847e0e [Bukkit] Push 6.1.7 and bump.
Forge will take the next number when it gets released.
2017-06-08 10:41:27 -04:00
wizjany b2fb73582f Fixed //center not working in some cases.
Due to odd rounding and math issues, using //center on a region with an edge of even
length in quadrants with negative coordinates would only fill one of the two center blocks.

Thanks to Griffrez and up201406036 for the original PR.

Fixes WORDLEDIT-2986.
2017-06-08 10:01:23 -04:00
wizjany a4f1f57c9d Add Bukkit adapter for 1.12.
Fixes WORLDEDIT-3567.
2017-06-08 10:01:23 -04:00
wizjany a03b9cbe4c Add blocks and items for MC 1.12.
And some forgotten before...
2017-06-08 10:01:23 -04:00
wizjany 46dff16a97 Use our own firstNonNull to maintain back-compat.
Fixes WORLDEDIT-3567.
2017-06-08 10:01:23 -04:00
wizjany 41de204186 Allow copyEntities to be used in ForwardExtentCopy again.
The -e flag should now work for //copy and //cut as it used to.

Fixes WORLDEDIT-3557.
2017-03-19 11:56:04 -04:00
wizjany e511758d99 Add rotations to various blocks that were missing them.
Up/down levers still broken.

Fixes WORLDEDIT-3490.
2017-02-26 18:56:38 -05:00
wizjany 9f24f84c2b Issue tracker is back. 2017-01-08 00:53:36 -05:00
wizjany 66aa881b0c Copy Kernel class to WorldEdit to avoid loading AWT.
Java 8's Kernel statically loads the AWT library, which
can apparently cause some issues on some systems, for some reason.

Either way, there is no need to load AWT if it's not needed (Java pls).
2017-01-08 00:51:16 -05:00
wizjany a8d04c24be [Forge] Release 6.1.6 for Forge 1.11.
Using Forge recommended build 2189.
2016-12-13 21:16:37 -05:00
wizjany 82fdab35d1 Update 1.11 adapter with md_5's fix.
Fixes WORLDEDIT-3524.
2016-12-02 15:27:56 -05:00
wizjany 17aafe87d0 Add some old missing items to the db. 2016-11-30 16:22:48 -05:00
wizjany 81beff8277 Release 6.1.5 for Bukkit 1.11.
Bump version for dev.
2016-11-29 00:33:42 -05:00
wizjany 465161145b Add new blocks and items to lookups. 2016-11-23 18:14:17 -05:00
wizjany b0bfa4a562 Add new 1.11 blocks. 2016-11-20 03:07:28 -05:00
wizjany cd266ad96c Add adapter for CraftBukkit 1.11 2016-11-17 22:23:59 -05:00
wizjany 34c31dc020 Release WE 6.1.4 for Forge 1.10.2.
Bump version to 6.1.5-SNAPSHOT for development.
2016-09-05 00:53:50 -04:00
wizjany ddff8ecbb2 Re-add and update ForgeItemRegistry.
And fix code that depended on it.
Reverts parts of e91859130c
2016-08-28 02:48:29 -04:00
wizjany 98510992eb Fix artifact publishing.
I keep ammending this commit so it doesn't look like I've been working on
this for the past three hours.
2016-08-06 07:08:29 -04:00
wizjany c957ffb95a Fix NPE when //genbiome expression was false.
Fixes WORLDEDIT-3467.
2016-07-06 11:14:11 -04:00
wizjany 28d45870e2 Apply transforms to vectors in //paste -s. 2016-06-29 00:38:11 -04:00
wizjany e0c8776f0f Fix query function in expression masks.
Fixes WORLDEDIT-3344.
2016-06-28 23:59:34 -04:00
wizjany d0cf497939 Bump version for dev 2016-06-23 09:14:42 -04:00
wizjany b03445752e Release 6.1.3 for Forge 1.9.4 and Bukkit 1.10. 2016-06-23 09:12:32 -04:00
wizjany 5a42a8ddb4 Update internal block and item definitions. 2016-06-11 13:07:53 -04:00
wizjany ac1b4f7251 Add adapter for 1.10. Currently untested. 2016-06-09 10:17:52 -04:00
wizjany a5f5dc099b Disable left-click air task creation.
This should really not be necessary anymore.
Reverts 13f36757.
Fixes WORLDEDIT-3444.
2016-05-29 00:54:58 -04:00
Wizjany 07854f79fa Sync forge version to core. 2016-05-19 01:43:35 -04:00
Wizjany 03d7cd394a Fix another NPE in schematics. 2016-05-18 12:44:22 -04:00
wizjany fd3ca53d04 Release bukkit build 6.1.2, version bump snapshot. 2016-05-15 04:33:59 -04:00
wizjany 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
wizjany 32fb5b302d Ignore PlayerInteracts with off-hand item.
Fixes WORLDEDIT-3437
The API will need to be changed to accomodate off-hand tools etc
2016-05-15 03:29:58 -04:00
wizjany 7be1395ae2 Add 1.9.4 adapter.
Fixes WORLDEDIT-3438.
2016-05-15 03:17:29 -04:00
wizjany c85c9f7a6c Version bump forge build for release. 2016-05-08 17:08:31 -04:00
wizjany c9f54ecb01 Only negative radius allowed for //butcher is -1. 2016-04-26 19:40:25 -04:00
wizjany 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
wizjany 94ae1be2d1 Fix NPE when using //schem list with not schematics present. 2016-03-08 12:42:23 -05:00
wizjany 6c03eea9b1 Force compilation on newer bukkit api.
Since spigot like pulling the rug out from under us.
Fixes WORLDEDIT-3400.
2016-03-07 19:26:16 -05:00
wizjany de3578137b Add bukkit adapter for MC 1.9. 2016-03-02 18:14:18 -05:00
Wizjany 3bd87cfb2d Merge pull request #339 from sk89q/feature/improved-travis-builds
Improve Travis builds
2016-02-05 14:20:22 -05:00
wizjany 1fe197df98 Fix build script versioning, release a 1.8.9 build. 2016-01-16 23:42:21 -05:00
wizjany 62befe7594 Fix schematics in directories. 2016-01-13 18:55:49 -05:00
wizjany 629b7d56dc Merge branch 'feature/paged-schematic' of https://github.com/kenzierocks/WorldEdit 2016-01-13 17:46:10 -05:00
wizjany 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
wizjany 23d6fa7579 Add worldedit.calc permission node to //calc command. 2015-12-21 16:14:44 -05:00
wizjany bed8a80894 Revert to Guava 17's firstNonNull.
Deprecated but Spigot doesn't include guava18 yet.
2015-11-13 20:17:56 -05:00
wizjany 9a65bdb72d Fix cycler tool trying to set negative data values.
Fixes WORLDEDIT-3325.
2015-07-31 12:46:51 -04:00
wizjany 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
Wizjany 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
Wizjany a28acdd6a8 Merge pull request #334 from OvercastNetwork/master
Fix unfortunate typo in AffineTransform
2015-07-15 10:08:58 -04:00
Wizjany 7586c19bb3 Revert changes to skull rotation.
Because it's stored in nbt. This should fix unit tests.
Someone reported rotation to be broken though, so this potentially rebreaks it?
2015-07-15 10:08:43 -04:00
wizjany 1e6e54b85a Add/Fix rotation values for several blocks.
Torches, redstone torches, anvils, iron trapdoors, and skull should all rotate correctly now.
Doors are still missing data.
Fixes WORLDEDIT-3307, WORLDEDIT-3273.
2015-07-06 00:06:41 -04:00
wizjany 025591e6d9 Don't double-check for symlinks while loading schematics.
Fixes WORLDEDIT-3310.
2015-06-19 18:28:25 -04:00
wizjany 642f2a1f58 Fix entities copying to original location.
Fixes WORLDEDIT-3275.
2015-05-29 16:18:58 -04:00
wizjany a3a4039646 Added Bukkit adapter for 1.8 R3 (1.8.4-1.8.6 atm). 2015-05-28 15:38:02 -04:00
Wizjany 58aac973af Merge pull request #323 from flaminscotsman/CommandExceptions
Fix command exceptions.
2015-03-13 14:30:54 -04:00
Wizjany 2db5d8b11a Merge pull request #322 from flaminscotsman/tools_fix
Fix for WORLDEDIT-3270
2015-03-11 00:36:35 -04:00
Wizjany b551512f27 Merge pull request #321 from Dumbo52/master
Add stone + banners to usesData HashSet.
2015-03-11 00:32:41 -04:00
wizjany 604b1d8515 Added Bukkit adapter for 1.8.3. 2015-03-10 23:49:02 -04:00
Wizjany 2fedcf8019 Add rotation values to lit redstone torches.
Fixes WORLDEDIT-3273.
2015-03-06 15:22:55 -05:00
Wizjany 173f832352 Merge pull request #318 from kenzierocks/use-guava-18
Force Guava 18
2015-02-12 18:52:09 -05:00
wizjany ddc741147e Fix button rotation, add support for up/down flipping and restore unit test functionality. 2015-01-23 00:28:05 -05:00
wizjany ec9c77c31b Excluded armor stands from //butcher by default.
Someone got lazy and just made armor stands a living entity instead of extracting an ArmorEquippable interface.
2015-01-22 15:54:01 -05:00
wizjany d1631a9ca4 Restore entity counter to //remove and grammatified //butcher similarly. 2015-01-20 12:30:51 -05:00
Wizjany 0f865623ed Closed a set of quotes in JavaDocs. 2014-12-11 09:38:14 -05:00
Wizjany 0e00f0ac9d [Forge] Move worldedit.properties to defaults folder so it extracts properly 2014-06-26 17:26:30 -04:00
wizjany 75b9f3edaa [Forge] Add dependency shading via the gradle shadow plugin. 2014-05-15 14:41:26 -04:00
wizjany 38ac5c9ad1 Move a bukkit-specific file from #287 to bukkit folder as not to break API/other platform compilation. 2014-05-03 23:12:22 -04:00
wizjany b0a52a4cf7 Revert a breaking change to fuzzy item/block lookup. 2014-04-26 00:22:39 -04:00
wizjany 5ed9239e14 Fixed listing schematics with directories in the folder. 2014-04-25 23:45:49 -04:00
wizjany 30006325db Update CraftBukkit packaging for 1.7.9. 2014-04-19 13:14:14 -04:00
Wizjany 33d4285f1a Fix mask parser incorrectly parsing block lists.
i.e. not parsing the list at all
2014-04-13 17:12:10 -04:00
wizjany 5d13ed2356 Fixed a typo in CHANGELOG.txt 2014-03-01 12:33:44 -05:00
wizjany b558463f56 [maven-release-plugin] prepare for next development iteration 2014-02-28 19:46:00 -05:00