Commit Graph

183 Commits

Author SHA1 Message Date
dc465f7d3c Reformat, fix RichParser suggestions 2020-09-07 21:46:54 -04:00
6807ccd960 Reimplement Masks + Fixes
Masks Reimplemented:
    - Adjacent (~): Adjacent to a specific number of other blocks.
        - Example: ~[oak_log][1][4]
    - Extrema (#extrema): Restrict to near specific terrain extrema. The "-o" flag will only overlay existing terrain.
        - Example: #extrema[0d][45d][-o]
    - ROC Angle (#roc): Restrict to near specific terrain slope rate of change. The "-o" flag will only overlay existing terrain.
        - Example: #roc[0d][45d][-o]
    - Surface (#surface): Restrict to surfaces (any solid block touching air).
        - Example: #surface
    - Wall (#wall): Restrict to walls (any block n,e,s,w of air).
        - Example: #wall

Other Changes:
    - Minor logic change to angle mask's overlay.
    - Fixed negating air mask.
    - Added overlay flag to angle (/) mask.
2020-09-06 18:42:43 -04:00
a9d37fc6e5 Added BiomeMask.java and updated minor parts of miscellaneous files 2020-08-24 22:04:56 -04:00
02886b0387 Updated the WorldEdit license using find and replace 2020-08-24 21:31:47 -04:00
bb05bd24d9 Implement more noise patterns 2020-08-15 13:17:44 +02:00
3bc692ff11 Part 1 of upstream merge and format 2020-07-13 22:50:59 -04:00
11e762f07a Add basic angle mask suggestions
Mask suggestions are a bit broken in general so this doesn't change much
2020-07-13 11:15:01 +02:00
7198c03cd3 Reimplement angle mask parsing 2020-07-13 02:25:30 +02:00
8e33ff9549 Make mask parsing actually working 2020-07-13 02:18:05 +02:00
39439fb405 fix: require extent for mask parsing (#1373)
(cherry picked from commit 1ced57c301bc1c98667a260fd8b6aa128675f0d2)
2020-07-06 23:47:33 -04:00
ed6f3e7b4a Implement simplex mask (fixes #437) 2020-07-05 11:19:48 +02:00
0bb6bc3563 Start reimplementation of simplex pattern (#520)
* Start reimplementation of simplex pattern

* Fix suggestions

* Allow nested weighted patterns

* Add documentation and improve error handling

* Remove unnecessary code and obsolete TODOs
2020-07-01 13:01:39 +01:00
238c56a3c6 Revert "Revert matt's changes"
This reverts commit bfcc6184ad.
2020-06-13 14:41:36 -04:00
bfcc6184ad Revert matt's changes
Let's not break Fawe, thanks
2020-06-13 18:48:57 +02:00
35c2a74c52 Implement more masks 2020-06-12 21:45:49 -04:00
8c38ac0fbc Fix #460 2020-05-11 13:38:06 +01:00
0c539b4e84 Fix replace patterns
Fixes #445 #440 #372
2020-05-06 15:50:57 +01:00
d9829614f2 Fixes #408
The issue seems to be that a some upstream code was removed for likely "performance" reasons. Obviously, wrong since it broke stuff.
2020-04-28 22:26:16 -04:00
cba7c21ce5 Fix special masks issue
This fixes the issue where masks other than SimpleBlock masks (like Offset mask or negate mask) would not work.

The issue was caused by parseFromListInput() who would throw SuggestInputParseException if the input was not a valid block definition.
But as the parser was catching NoMatchException only, this was causing an error and the MaskFactory was broken.
2020-04-13 22:34:15 +02:00
1577ef61d4 Upstream merge 2020-03-23 20:59:56 -04:00
ecedc1ff12 New masks 2020-03-17 22:23:03 -04:00
1ee362a878 Re-added #false and #true masks 2020-02-05 17:44:33 -05:00
75653087b9 Remove FAWE-Piston
Disables a lot of previous functionality in FAWE until replacements can be made. This commit was untested and may cause major issues.
2020-02-05 00:37:42 -05:00
88359f0215 More Kotlin 2020-01-21 14:30:13 -05:00
0d2fff2cd2 Upstream Merge 2020-01-10 22:32:12 -05:00
3ee920f9e6 Update upstream 2020-01-08 19:36:12 +01:00
c2cc4f5aeb Fix craftbook 2019-12-20 05:54:03 +00:00
aac30742de Remove TranslatableComponent override
use Caption class
2019-12-16 09:01:41 +00:00
1844d4dba7 Various major
Add regen
Add //history [find|restore|rollback|summary|clear]
 - history commands are interactable
 - inspect brush info is interactable
Commands are now logged to a searchable database
Fix some cases of id/ordinal mismatch
2019-11-23 04:31:48 +00:00
0c85db920c save strings.json 2019-11-21 20:37:56 +00:00
1341e38a90 fix compile 2019-11-21 19:56:10 +00:00
60759934a3 Fix some merge issues 2019-11-20 00:11:54 +00:00
2c9f192baf Merge remote-tracking branch 'upstream/master' into merge 2019-11-19 21:23:47 +00:00
9d6f2df908 Fix parsing for injected command types 2019-11-11 08:55:53 +00:00
2080e9786b commanding-pipeline diff 2019-10-23 05:23:52 +01:00
24a147465d Fixed a bunch of extends and removed slottableblockbag 2019-09-21 21:00:45 -04:00
8b96cdc9a5 *
A tribute to Jesse
2019-09-20 21:52:35 -04:00
14ed3f1d9c Remove FawePlayer and API modifications 2019-09-13 23:05:16 -04:00
4e49d16505 fix dependencies 2019-08-26 05:45:03 +01:00
cbbe8b5dfa upstream changes 2019-08-15 15:24:18 -04:00
61bc012f6f Fix source masks using EditSession instead of clipboard. (#515) 2019-08-10 11:54:22 -04:00
ee59dec3d8 comments / minor compiling 2019-08-07 10:13:07 +10:00
4c2b753687 merge 2019-08-07 01:32:05 +10:00
a476ab1ea0 merge 2019-08-07 01:29:49 +10:00
ca54f8c371 Work on CLI and I forget what else 2019-07-29 10:57:28 -04:00
6631b6bdf0 Make BlockStateHolder extend Pattern.
Removes the need for wrapping them in BlockPattern.
2019-07-28 18:20:00 -04:00
ff5860113d It started on work with commands then I got carried away. 2019-07-25 14:44:10 -04:00
46f5b12b36 Convert tabs to whitespace. 2019-07-22 16:42:40 -04:00
9c3122a227 More work on getting commands to compile 2019-07-21 22:49:08 -04:00
6e13b44f84 resolve issues with 2e67425d8131a2b1eb7ff752335bccf371801b8b 2019-07-18 20:12:23 +10:00