Commit Graph

183 Commits

Author SHA1 Message Date
dd38cbe750 . 2019-07-18 04:30:02 +10:00
905fbf5a0b 8108d0a9 2019-07-18 02:31:13 +10:00
8108d0a936 Major command changes that don't work yet. 2019-07-16 23:44:34 -04:00
cf0c735cf3 Merge branch 'breaking' into breaking-114 2019-07-11 08:08:55 +10:00
cafd4bfece use Locale.ROOT for uppercase as well 2019-07-10 22:26:31 +10:00
f99d6e7478 wip on 1.14 2019-07-09 17:18:51 +10:00
96e2b6c5af First attempt at fixing quoted string oddities. 2019-07-04 22:01:55 -04:00
a2b3aabbbf Typo fixes and command clarifications/cleanup.
Also re-disable the gradle daemon. It doesn't always play nice with
ForgeGradle and hogs ram.
2019-07-04 19:28:42 -04:00
9cbf8178ea Fix setting player heads with owner name. 2019-06-29 11:11:22 -04:00
a2efdbc488 a1c15e1c39 2019-06-29 03:10:47 +10:00
3a4354268c Attempt to fix null command issues. 2019-06-26 20:18:21 -04:00
d0a31691e1 Small changes 2019-06-26 20:14:00 -04:00
a69b239848 Upstream 2019-06-25 13:07:47 -04:00
a1c15e1c39 Many upstream changes. Should be non-breaking 2019-06-25 09:00:44 -04:00
79910c57d7 Add 1.14 blocks, items, entities, and tags. (#490)
Should remain backwards compatible with 1.13. Removed blocks/items will
be forwarded to the "replacement" block/item. (e.g. BlockTypes.SIGN will
find OAK_SIGN on 1.14.)
2019-06-24 23:15:07 -04:00
ec001b8d3b Revert "Upstream, generics, formatting"
This reverts commit cd88e513a8.
2019-06-12 15:45:41 +02:00
cd88e513a8 Upstream, generics, formatting 2019-06-11 20:31:56 -04:00
f2f9c26602 Expanded the scope of item brushes (/br apply item, /br paint item).
They now additionally take a direction in which the simulated item usage
should be facing.
Also allow the item parser to parse "hand" and "offhand" as items, to
allow platforms with NBT item support return items with NBT (since
parsing is a slightly more complex task).
2019-06-09 20:44:30 -04:00
6c94cca15e Selective upstream merge
Signed-off-by: MattBDev <4009945+MattBDev@users.noreply.github.com>
2019-06-04 12:40:11 -04:00
a3afd9d5b3 Make suggestions more robust.
And fix potential errors in the ^[] pattern parser.
2019-06-01 12:39:24 -04:00
27b58f4e85 Add suggestions for items. 2019-05-28 22:55:20 -04:00
5e857b3547 Improve parsing from registries.
If multiple namespaces are present, suggestions will first suggest a
namespace, then once a namespace is selected, keys within that namespace.

Starting an argument with ":" will instead search across all namespaces
for matching keys.
2019-05-28 22:55:20 -04:00
ab1e09fdaf Give factories a default parser.
Later registered parsers will always come before the default, ensuring
that the default parser is used when no other parser can match the input,
and that errors may be thrown by it to signify the end of the line.
2019-05-28 22:55:20 -04:00
6962b2e7b6 Add comprehensive suggestions to many commands.
All patterns now have suggestions, including recursive patterns.
Suggestions will suggest blocks and block states.
All masks now have suggestions, though mask intersections are not
yet supported due to issues with quotes strings.
EntityRemover and ItemFactory now also have completions, as well
as all RegistryConverters (though I am unsure how many are actually
used).

Also use paper's AsyncTabComplete event, if available.
2019-05-28 22:55:20 -04:00
4804fe64e3 Don't use a no-op suggester 2019-05-24 21:31:29 +10:00
a3ffb91917 Added suggestions to a lot of factory-related commands 2019-05-24 21:31:29 +10:00
8ee484fca8 Removed unused classes 2019-05-19 13:34:43 +10:00
334d5cfaab The "spawner|mobType" syntax once again makes functional mob spawners.
Also fix block parser context not being restricted.
2019-05-18 10:16:08 -04:00
113aeb1689 Use fuzzy blocks in default block parser 2019-05-07 16:40:37 +10:00
2be8d87d5a Fix mask parsing not using factory 2019-05-05 03:59:25 +10:00
13a8c480e3 Insert Locale.ROOT into all case change methods 2019-05-01 15:24:32 -07:00
f70557e3da Provide a warning when an invalid property is entered rather than failing. Fixes WorldEdit entirely failing on new MC versions. 2019-04-25 22:48:15 +10:00
c45d4b58cc Fixes #117 2019-04-23 22:56:01 +10:00
dcfa436c64 Minors
- Make disallowed-blocks translatable
- Add more trnslatable messages
- Update WorldEdit messages missing a prefix
2019-04-11 19:49:09 +02:00
d49be8047c Fix missing prefixes 2019-04-11 15:13:15 +02:00
24590199c8 Fix disallowedBlocks 2019-04-11 14:05:29 +10:00
c8529b0609 . 2019-04-07 10:52:30 +10:00
144215c813 Don't construct new BaseBlock 2019-04-06 01:12:57 +11:00
be5541b61b revert some changes 2019-04-05 15:48:41 +11:00
33f5322fda WIP merge (i'll finish this later) 2019-04-05 01:24:47 +11:00
1beea3cd22 Some more upstream merge 2019-04-04 21:28:41 +11:00
8897109dc4 wip upstream merge 2019-04-04 00:25:16 +11:00
4cd8d08134 merge with upstream (broken) 2019-04-03 16:53:58 +11:00
f361619037 Merge remote-tracking branch 'upstream/master' into breaking 2019-04-03 16:53:34 +11:00
d7d2d03ee8 Clipboard offset pattern is now #copy@[x,y,z].
Since the parsers were changed around, unescaped commas are parsed as
separate blocks now.
2019-03-27 23:36:59 -04:00
2a194b0434 Add pattern that randomly chooses states.
Also works with fuzzy states.

Syntax is `*type`, e.g. `//set *stone_slab` or with states,
`//set *oak_fence[waterlogged=false]`
2019-03-26 18:11:32 -04:00
0d88a6bce2 Merging upstream changes 2019-03-26 13:27:09 -04:00
3236bdd78e Changes to NBT-handling in operations and extents, changes to match the widely supported setBlock functionality, minor code cleanup 2019-03-25 13:42:11 -04:00
25631af31c Add RequestExtent to be used when a delayed EditSession is needed.
For example, if you set a mask that takes an extent (many of them),
and then move to another world, the mask will test blocks in the old
world and return bad results.
2019-03-20 19:13:54 -04:00
de08c8b8c7 Add better control over expression timeouts. (#451)
Add better control over expression timeouts.
* //timeout command can be used to change player's current timeout.
* Config now also has a max timeout, can be bypassed with permission
* Timeout of < 0 will let expressions run indefinitely.
* Said expressions won't run on a separate thread, slightly reducing the
  overhead from context switching. For large //gen commands, for example,
  this can actually increase speed.
2019-03-06 19:58:32 -05:00