Commit Graph
526 Commits
Author SHA1 Message Date
ch-yx a27b8b6b5c minor issue (#1279) 2022-01-19 20:00:28 +01:00
gnembon 74f6e57edc Merge branch 'master' into future 2022-01-12 22:53:45 +01:00
replaceitemandreplaceitem 3f6ddc43e5 Added screen handler system (#888)
* Added screen handler value

* Added screen handler constructor and function to show to player

* Made inventory_* functions work with screen handlers

* Event callbacks and some refactoring

* Exception if screen has no inventory

* Fixed NPE

* Close screen when null

* Added screen_property

* UNKNOWN_SCREEN throwable

* Fix error when not specifying click callback

* Access to non-container screen handler slots via the inventory_* functions

* Change lectern page

* Added button event

* Added 'close' event and refactoring callback

* Beacon and Brewing screens

* Cartography table screen

* Crafting screen

* Enchantment screen

* Grindstone

* Loom

* Merchant

* Shulkerbox

* Smithing table

* Stonecutter

* Use strings as screen type instead of ScreenHandlerType

* Remove support for multiple players

* Combining create_screen and open_screen and refactoring

* Allow modifying cursor stack

* Cleanup

* Docs

* Added multiple screen examples

* Rename to screen

* Added smoker and blast furnace

* Serialize screen content

* Store host name instead of context

* Add button value special cases to docs

* Spelling and grammar fixes by @James103

* Optimize screen inventory access

* Use -1 for slot click outside the screen

* As boolean, ScreenValue equals isOpen

* Revert "Use -1 for slot click outside the screen"

This reverts commit 68c113e71bb653191cedf4cc356ab7705838dc25.

* Rework of callback function

* Improve screen functionality with drop_item

* Editor keywords

* Only check syncId

* slot_update event callback

* Screem typo

* Mistake

* toTag returns "null" NBT for  closed screen

* Use null for slot index of -999

Co-authored-by: replaceitem <replaceitem.mc@gmail.com>
2022-01-12 22:52:38 +01:00
gnembon 529a5b358d Merge branch 'master' into future
# Conflicts:
#	gradle.properties
#	src/main/java/carpet/script/annotation/AnnotationParser.java
#	src/main/java/carpet/script/utils/BiomeInfo.java
#	src/main/resources/fabric.mod.json
2022-01-11 23:44:52 +01:00
altrisi 212b6a792e Remove a few no longer needed mixins (#1243) 2022-01-08 23:18:13 +01:00
Ghoulboy a8f9b96e9e Fixes #1222 (#1224) 2022-01-08 20:58:43 +01:00
replaceitem caafaa2039 [Scarpet] Task value refactor for better extendability (#1202) 2022-01-08 20:40:20 +01:00
gnembon ff44e847c0 Merge branch 'master' into future 2021-11-23 22:03:43 +01:00
Gnotteroandgnembon 775e923252 Added player abilities actions to the entity API (#1160)
* Added 'mayfly' and 'fly_speed' actions to the modify() function

* Added 'mayfly' and 'fly_speed' actions to the modify() function

* Added a query and a modify action for each of the abilities. Added the  modify action. Modified the docs to include all the new actions and queries

* Fixed an error with mod version

* Saving changes

* Modified the docs and fix an issue with float type variables

* Modified the docs and fixed an issue with float type variables

* Update src/main/java/carpet/script/value/EntityValue.java

* Update gradle.properties

Co-authored-by: gnembon <41132274+gnembon@users.noreply.github.com>
2021-11-22 22:46:02 +01:00
gnembon adaf19170d mappings 2021-11-16 21:08:26 +01:00
gnembon ab989155ad Merge branch 'master' into future 2021-11-16 20:11:49 +01:00
James103 af2ba900b2 Fix gnembon/fabric-carpet#1161: Typo in extreme velocity log message 2021-11-10 15:00:04 -06:00
gnembon 0f4c418a0e just mappings 2021-10-20 22:44:46 -03:00
gnembon 044d191409 Merge branch 'master' into future 2021-10-20 21:40:57 -03:00
gnembon db5d4532b8 encode_nbt is incosistent with documentation, #fixes https://discord.com/channels/882822986795716608/882826588348092457/899049240771309638 2021-10-17 00:25:03 -03:00
gnembon 5bf79cdf31 Merge branch 'master' into future 2021-10-13 00:15:14 -03:00
gnembon 7c31d51048 rotfl 2021-10-13 00:14:47 -03:00
gnembon 159e2d94a0 rotfl 2021-10-13 00:11:00 -03:00
gnembon 6a03675b4f Merge branch 'master' into future 2021-10-12 23:24:41 -03:00
altrisi 7486670918 Report stack traces through the logger (#1050) 2021-10-11 03:37:30 -03:00
gnembon 7b9e5e6feb mappings 2021-09-22 21:12:11 -03:00
gnembon bc175509a2 21w37a 2021-09-18 08:46:27 -03:00
gnembon 8325783bf4 Merge branch 'master' of https://github.com/gnembon/fabric-carpet 2021-09-04 23:45:19 -03:00
gnembon 572fc8573e fixes to handling of NBT tags. Fixes #1080 2021-09-04 23:44:45 -03:00
altrisi 19c1924a26 Fix x motion being applied to y (#1089) 2021-09-03 22:48:28 -03:00
altrisi 7fb5e47da5 Use newer Java features in places where it makes sense and more (#1009) 2021-08-03 07:32:40 -03:00
altrisi 2a391962ff Remove no longer needed Mixins (#1030) 2021-07-26 09:20:01 -03:00
altrisi 7ebc990ef6 Use pattern matching for instanceof (#1019) 2021-07-21 22:24:24 -03:00
gnembon 97e7d660e4 fix inventories for armorstands, fixes #1017 2021-07-21 09:09:50 -03:00
gnembon 4dd3cc7fd6 mappings 2021-07-14 00:57:37 -03:00
gnembon 33500dde29 Merge branch 'master' into 1.17
# Conflicts:
#	src/main/java/carpet/script/api/Auxiliary.java
#	src/main/java/carpet/script/api/Inventories.java
#	src/main/java/carpet/script/api/WorldAccess.java
#	src/main/java/carpet/script/value/EntityValue.java
2021-07-05 16:53:01 -03:00
gnembon d07fe18bb5 handle invalid identifiers, fixes #980 2021-07-05 16:52:08 -03:00
gnembon 9a4e15da48 mappings 2021-06-29 17:28:58 -03:00
gnembon f2aae4ec92 added is_freezing, frost, immune_to_frost to entity API, Fixes #932 2021-06-23 13:18:45 -03:00
gnembon 1aacfead38 Merge branch 'master' into 1.17 2021-06-22 15:03:27 -03:00
gnembon 1a068cb22a added missing type classification. Fixes #947 2021-06-22 14:59:23 -03:00
gnembon 26f9badb95 classified marker 2021-06-22 14:56:07 -03:00
gnembon 127416c8c1 fixed glow item frame classification. fixes #933 2021-06-22 01:44:03 -03:00
gnembon b581c3bea6 well 2021-06-17 21:21:59 -03:00
gnembon 3ff7e1d4cb Merge branch 'master' into 1.17 2021-06-17 21:20:53 -03:00
gnembon 3a83a94361 added despawn timer 2021-06-17 21:20:11 -03:00
gnembon dc38cd272f Merge branch 'master' into 1.17
# Conflicts:
#	src/main/resources/carpet.mixins.json
2021-06-13 11:47:56 -03:00
gnembon c36f9bfb9f better 2021-06-11 00:42:49 -03:00
gnembon a7770abf9d better 2021-06-11 00:39:40 -03:00
gnembon 7ee313134e Pulling in from empty list container returns null like for other containers. Fixes #660 2021-06-11 00:37:45 -03:00
gnembon c720c2c935 Merge branch 'master' into 1.17
# Conflicts:
#	src/main/java/carpet/script/api/Auxiliary.java
#	src/main/java/carpet/script/utils/ShapeDispatcher.java
#	src/main/java/carpet/script/value/EntityValue.java
#	src/main/java/carpet/script/value/ListValue.java
2021-05-25 01:08:32 -03:00
gnembon 7b4176f717 Merge pull request #882 from altrisi/not-fromItemStack
Replace usages of deprecated ListValue::fromItemStack and remove it
2021-05-25 00:50:53 -03:00
gnembon c60167405d Merge pull request #881 from altrisi/deprecate-old-booleans
Deprecate old boolean constructor and move existing usages
2021-05-25 00:50:11 -03:00
altrisi 2b3f376871 Replace usages of deprecated ListValue::fromItemStack and remove it 2021-05-24 12:00:55 +02:00
altrisi 9d9844fd5d Deprecate old boolean constructor and move existing usages 2021-05-24 11:41:24 +02:00