Commit Graph
700 Commits
Author SHA1 Message Date
altrisi 3493e2ce84 Set versión bound to >1.20.1
Prevents running it (and crashing) on 1.20/1.20.1
2023-08-11 10:10:05 +02:00
gnembon 08c5c3db31 fix player skins not showing properly 2023-08-07 20:04:40 +02:00
gnembon 55a88c6cdc 1.4.113 on 23w31a, many regressions including modded networking, fake players, scoreboard api and more. 2023-08-03 12:33:49 +02:00
Blodhgarm f564a9c491 Refactor PistionStructureResolver API for better Compatiblity (#1775)
* Implement better handling for custom block interactions within the `PistionStructureResolver`

- Switch to a opt in system for piston interaction methods by moving to a dedicated interface and removing mixin that injects such into every block
- Default to vanilla code for slime blocks and honey blocks behavior.
- Keep `BlockBehaviourInterface` and `BlockBehaviour_customStickyMixin` for compatibility reasons
2023-08-01 13:29:49 +02:00
altrisi a29b84ec0d Remove lightEngineMaxBatchSize rule (#1771) 2023-07-28 21:10:17 +02:00
AngelBottomless dd902fd77c Fix piglin brutes spawning in air (#1769) 2023-07-26 15:40:00 +02:00
altrisi 5516b41a76 Fix root command in ai_tracker 2023-07-26 13:27:53 +02:00
James McCulloch f60ea8f84c Fix golem spawning range box in ai-tracker (#1761) 2023-07-26 13:25:27 +02:00
Calvineries 4c134cc88a Create fr_fr.json (#1741) 2023-07-07 12:10:02 +02:00
altrisi 01bec472ea Fix syntax error in pt_br language file 2023-06-22 16:12:59 +02:00
James McCulloch aeb68e9ba0 Fake player portal fix (#1724)
* fake-player-portal-fix:
* Fix the teleport fix, so it doesn't crash when bots go through nether portals (Fixes #1712)

* fake-player-portal-fix:
* Re-implement fix for #1190
* Without causing #1712
* Just move the bot on the chunkmap directly.
2023-05-24 14:24:03 +02:00
gnembon c6f52b3293 retire static TickSpeed. Use Server and Client synchronization agents. 2023-05-17 21:20:00 +02:00
gnembon df786605c2 moar client-server tick speed separation 2023-05-16 10:35:40 +02:00
gnembon 755ec1daa8 relight cleanup - think it works now. Little higher level, but that's what's needed. 2023-05-12 22:04:19 +02:00
gnembon d68c252180 23w16a 2023-04-20 22:13:32 +02:00
Ghoulboy 598ec82d02 Replace deprecated world_time() with system_info('world_time') (#1702) 2023-04-15 21:33:54 +02:00
gnembon 4171f9b784 23w13a 2023-03-29 18:44:12 +02:00
altrisi 23b7aa0945 Require Loader 0.14.18 2023-03-23 18:09:55 +01:00
gnembon f1586b3809 23w12a 2023-03-22 18:27:44 +01:00
altrisi 4e94d1bc15 Enforce 1.19.4 in dependency resolution 2023-03-20 18:51:20 +01:00
James McCulloch 8c09946bef Fix fake players not teleporting to unloaded chunks (#1665)
* fake-players-teleporting-fix:
* Fix fake players not being moved on the chunkmap when teleporting
* Fixes #1190 (Player bots cannot be teleported to unloaded chunks)

* fake-players-teleporting-fix:
* add missing access widener

* Revert "fake-players-teleporting-fix:"

This reverts commit 617702fca14035913103140d2e04fa33065bf628.

* fake-players-teleporting-fix:
* access awaitingTeleport in a nicer way

* fake-players-teleporting-fix: * access awaitingTeleport in a nicer way
2023-03-14 17:02:41 +01:00
altrisi 4801534229 Sync fillLimit rule with the equivalent gamerule 2023-03-08 20:52:44 +01:00
gnembon 29afb8761e cleanup overlay.sc 2023-02-19 01:15:42 +01:00
gnembon 2bf6d638d7 modernize chunk_display.sc 2023-02-19 00:58:27 +01:00
gnembon 65de5492ac modernize camera.sc 2023-02-18 08:58:32 +01:00
gnembon 2b1bb9652b added ON_TICK support for display entities 2023-02-11 01:33:23 +01:00
gnembon 75d94b0570 cleanup of scarpet dependencies 2023-02-08 21:13:14 +01:00
senseiwells 009d971584 Add rule to make the World Border update with ticks instead of real time (#1550) 2023-01-25 17:40:18 +01:00
Crec0 f2c658bf03 Add compute_density_function to replace removed `sample_noise (#1591) 2023-01-25 17:08:36 +01:00
altrisi 1f38a2e89c Remove leadFix rule
It's been fixed for ages, and the only code we still add is already in vanilla
2023-01-20 18:27:40 +01:00
Ghoulboy bc5ece085c Added thickHugeFungusGrowthFix rule (#1458) 2023-01-20 18:07:44 +01:00
altrisi dd1dc3756a Remove a no longer necessary mixin
And tiny cleanup to another one
2023-01-19 00:30:23 +01:00
gnembon c7d506675e 23w03a 2023-01-18 22:11:19 +01:00
altrisi 2b95a878ad Remove now fixed flatWorldStructureSpawning rule and cleanup some unused mixins 2023-01-18 14:41:46 +01:00
altrisi 4496241524 Use constants for a few magic numbers in rules 2022-12-26 16:22:09 +01:00
Ghoulboy 43bb84437f Add event for commands and make __on_player_message not trigger for them (#1525)
* Restoring old behaviour of __on_player_message

Fixes #1511

* Changed to PLAYER_COMMAND

* Updated docs

* Updated event_test.sc

* Updated editor keywords

* Fixed issue
2022-12-26 15:30:50 +01:00
senseiwells b63dfa1b0a Make /fillbiome limit customisable with fillLimit (#1605) 2022-12-26 15:17:36 +01:00
FITFC 8f3c4352b9 Added pt_br translation (#1582) 2022-11-04 17:17:45 +01:00
gnembon 9f776167e3 22w42a 2022-10-20 14:33:36 +02:00
replaceitem 24b9c386ec [Scarpet] Added ability to cancel events (#1497)
* Added ability to cancel events

* Made more events cancellable

* Added event_priority to __config

* Check for string values for performance

* Made player_finishes_using_item cancellable

* Made player_chooses_recipe cancellable

* Made player_swaps_hands cancellable

* Made player_message cancellable

* Added __on_player_placing_block (#1498)

* Added event to docs, keywords, event_test

* Added docs for event cancellation
2022-10-15 13:30:53 +02:00
altrisi f63c6acb05 Fully remove scarpet commands when apps are unloaded (#1452)
Using new Loader 0.14+ features
2022-10-02 13:32:27 +02:00
ch-yx 179f5a6006 adding a shape that can display a item or a block (#1365)
added 'polygon', 'item' and 'block' to scarpet rendered shapes
2022-09-12 00:38:52 +02:00
Space Walker c528695d1a Refactor Carpet's sticky blocks code (#1505)
refactor sticky blocks code
2022-09-03 22:49:01 +02:00
altrisi 4db1dd8f87 Implement a command line, configurable rule printer (#1357)
* Implement a command line, configurable rule printer

* Update publish action to rule printer

* Bump loom and lqf versions
2022-08-09 20:44:35 +02:00
altrisi 1734930f7e Remove some unused code (#1521) 2022-08-09 16:21:01 +02:00
altrisi feb0dc1efb Remove another duplicated mixin entry
This time for `DistanceManager_spawnChunksMixin`
2022-07-29 14:26:00 +02:00
altrisi f2a270b261 Remove duplicated mixin entry for ServerLevel_spawnChunksMixin 2022-07-29 13:57:32 +02:00
altrisi c2788f0f85 Allow modded structures in overlay's structure renderer (#1504) 2022-07-21 15:12:58 +02:00
Ghoulboy 6019f812d3 Making portal_timer and portal_cooldown return portal timer and portal cooldown in that order (#1476)
* This error is so dumb I must have done it

* Update ai_tracker.sc
2022-06-27 20:37:44 +02:00
altrisi 0a972d6c56 Settings rework and encapsulation (#1330)
* Settings rework and encapsulation

* Settings overhaul 3

Move everything in the new system to a new API package

Require rules using the new system to specify descriptions in their translation files

Implement temporary system on top of current translations to allow that to work properly

* Fix getRules fallback

* Final touches to settings refactor

* Mention that set shouldn't throw and remove comment

* Change translation keys to unify with translation PR

* Deprecate printAllRulesToLog to allow using any PrintStream

* Remove restriction of CarpetRules being Comparable

And fix overreaction in a deprecation message

* Bring back user input to rule observers

* Make Validator deprecation warning not spam on use

* Remove unneeded abstract methods in CarpetRule already inherited from CarpetRule

They literally do nothing, don't even force them to be implemented, and may be confusing as to why they're there or as if they are needed to be implemented

* Fix legacy SettingsManager field not being assigned correctly

* Finish fixing conflicts from future merge

* Actually fix remaining conflicts from future merge (missing imports)

* Import the newer rule in SettingsManager

* Refactor Validators

* Don't spam deprecation warnings on custom managers

* Get out the var

* Fix missing warning in old rule observers

* Update src/main/java/carpet/api/settings/Rule.java

* Remove `@ApiStatus.Experimental` annotations

* Fix incorrect `@deprecated` javadoc tags

By removing them given the class is deprecated anyway and else there's too much noise

* Add missing static import

* Remove TypedField and use a regular field

I liked that class tbh, but it's true that it wasn't really needed

* Move `field` assignment out of for removal

* Fix not following contract of `type()` returning boxed value

Previously handled by TypedField

* Fix few incorrect translation keys

* Remove resaving of comments when saving config files

Comments ignoring is still a thing when reading, so `locked` configs for example will keep comments

* Condense rule load messages in one

* Only print loaded settings message when at least one setting was changed

* Fix legacy validator detector

* Tweak and add more context to response to invalid values

* Fix strict validator not actually erroring on invalid input
2022-06-27 13:12:15 +02:00