Commit Graph

135 Commits

Author SHA1 Message Date
1b101740fe Use a proper registry for biomes 2019-02-16 17:27:00 +10:00
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
511c279153 Fixed issues regarding block transformations and using the BaseBlock to apply a function. 2019-02-07 09:04:14 -05:00
0e5847e1ce Various fixes 2019-02-03 09:22:10 -05:00
590b7e23a9 Remove all raw usages of BSH, improve API generics 2019-02-03 05:01:39 -05:00
d5e4c76bfe Allow a pattern for the leave-id of //move 2019-02-03 02:47:32 -05:00
d80ac24c63 Pass the exception converter through more. 2019-02-02 11:36:55 -05:00
e88b8c961d Added "fast mode corrections" 2019-02-02 09:21:16 -05:00
e53535319d Plenty of changes to core block behavior to become more compatible with upstream WorldEdit (still more to be done!) 2019-01-31 10:08:58 -05:00
f74381b93f Merge remote-tracking branch 'refs/remotes/isfawe/new-vector-system' into new-vector-system 2019-01-13 02:00:14 -05:00
628c9cc0b7 Make BaseBlock more memory efficient, and make it clear in the API that it's not intended to be used for every single block. 2019-01-10 09:54:21 -05:00
4d6045813c Move vectors to static creators, for caching 2019-01-10 07:17:04 -05:00
ab6aed703d Merge current FAWE master (227d6d91) into new-vector-system
Signed-off-by: Byron Marohn <combustible@live.com>
2019-01-09 22:35:26 -08:00
842b1307c7 Current Progress #3 2019-01-09 02:13:44 -05:00
3fefcbf971 Remove all raw usages of BSH, improve API generics 2018-12-26 16:39:10 -08:00
d4157b7e0e Current progress with update 2018-12-23 11:19:33 -05:00
d6977aeae4 Allow a pattern for the leave-id of //move 2018-12-22 17:26:02 +10:00
c0fa1602ad Restore the formatting of many things to upstream WorldEdit - no code changes
This patch touches many files but changes absolutely no functionality.
The goal here is to make future merges with worldedit produce fewer
conflicts that have to be resolved.

This patch was made by painstakingly diff'ing files and copying changes
over from the last upstream merge commit (02c6f11b) into this codebase.

Signed-off-by: Byron Marohn <combustible@live.com>
2018-12-20 11:33:56 -08:00
6f3016c7f0 Fixed up the commitRequired checks. 2018-12-09 16:28:01 +10:00
5f2c77b719 Further work on this. Currently fast mode breaks doors, gotta work out why applying physics to doors breaks them. 2018-12-09 16:28:01 +10:00
618cbd2250 Few small fixes 2018-12-09 16:28:01 +10:00
59f9864ba3 Set fast to the default 2018-12-09 16:28:01 +10:00
7f11b2800d Added an option to switch reorder modes 2018-12-09 16:28:01 +10:00
b3f5bc030e Few fixes for FastModeExtent. 2018-12-09 16:28:01 +10:00
7d468357e3 Added "fast mode corrections" 2018-12-09 16:27:02 +10:00
4e4ed6c893 Fixed missing BaseBlock import 2018-11-04 17:27:36 +10:00
53bc730909 Merge pull request #435 from sk89q/feature/trace-unflushed-sessions
Add tracing for unflushed EditSessions
2018-11-04 17:21:25 +10:00
2c8b2fe089 Move vectors to static creators, for caching 2018-11-03 23:00:24 -07:00
399e0ad5fa Refactor vector system to be cleaner
- Move Vector, etc. into `.math` package
- Drop many methods that will be auto-promoted anyways, eg. with
`divide(int)` and `divide(double)` the first is now gone.
- Take Block vectors into their own class hierarchy
- Make it clear throughout the API what takes blockvectors
- many more improvements
2018-11-03 23:00:23 -07:00
e202348dac Simplify commit-required detection 2018-11-03 22:22:43 -07:00
e1fbaaff59 Add tracing for unflushed EditSessions 2018-10-30 18:39:51 -07:00
d1312c66e1 Ensure we flush iff it is needed 2018-10-20 19:54:13 -07:00
a3f1c71d97 Make EditSession closeable for easy flushing 2018-10-20 19:50:35 -07:00
1fa1ff895b Flush or disable buffers in tools 2018-10-20 19:47:17 -07:00
dd2fcbac23 Merge pull request #430 from sk89q/feature/chunk-batching-mode
Chunk Batching
2018-10-15 13:50:10 +10:00
7cf7c0712f fix fixwater/lava + tile paste 2018-10-13 19:50:13 +11:00
1a12c065a1 Various minor fixes
Fix drain
Fix some messages lacking prefix
Fix non persistent brushes
2018-10-13 15:15:38 +11:00
0a149a796f Make distr operation based 2018-10-12 15:28:40 +10:00
2824a92c19 Fix some minor ordering bugs 2018-10-10 12:23:00 -07:00
7d4906cfe9 Add chunk batching flag, enable by default 2018-10-10 11:38:23 -07:00
cfbf7dbec0 Update from sk89q/master 2018-09-25 15:35:21 +10:00
8ed67f66ad Merge boy0001/FastAsyncWorldEdit 2018-09-14 02:42:55 +10:00
82ede1d42b freebuild region restrictions 2018-09-05 05:10:15 +10:00
b24d322d29 Update from sk89q/master 2018-09-03 00:10:38 +10:00
8bfbc55c71 Enable experimental //walls for non-cuboid regions. 2018-08-30 16:42:50 +10:00
c55353e5b1 Various command (use es6 if java9 + nashorn) 2018-08-22 03:22:37 +10:00
69ab1781c6 Replace FuzzyBlockMask with BlockMask, and added BlockTypeMask as a more performant mask for just block types. 2018-08-20 15:57:42 +10:00
43d5459595 Fix __reserved__ being solid 2018-08-17 19:21:45 +10:00
177bfaa930 Rename setCopyEntities to setCopyingEntities 2018-08-17 18:33:37 +10:00
36ede1b27d Fixes boy0001/FastAsyncWorldedit#1078 2018-08-17 18:27:48 +10:00