Carpet 是一个适用于原版《Minecraft》的模组,它让您可以从游戏技术的角度完全掌控游戏中的重要内容。
* 使用 [`/tick warp`](
* 使用 [`hopperCounters`](
* 使用 [`/log`](
* 使用 [`movableBlockEntities`](
设置
在[维基上查看所有当前可用的设置][settings]
[settings]:
Scarpet
地毯包含 Scarpet,这是一种强大的游戏内编程语言,允许您轻松地与游戏交互或创建强大的应用程序来进一步增强您的游戏体验。
您可以在[scarpet 仓库][scarpet repo]中找到 Scarpet 应用程序,或者通过查看示例和查看[文档][scarpet docs]来自己制作。地毯还附带[一些内置应用程序][scarpet builtin],您随时可以加载它们。
[scarpet repo]:
[scarpet docs]:
[scarpet builtin]:
扩展
还有许多地毯扩展可供选择,添加了无数新规则和功能!您可以在[维基上][extension list]找到它们的列表。
[extension list]:
旧版本
对于以前的《Minecraft》版本,请查看以下 Github 仓库:
* 1.13: [gnembon/carpetmod](
* 1.12: [gnembon/carpetmod112](
Carpet 1.4.177 for Minecraft 1.21.7
- support for Minecraft 1.21.7
- improved compatibility of `movableBlockEntities` with other mods
- made sculk sensors immovable as they don't work well with mbe's
Carpet Mod 1.4.176 for Minecraft 1.21.6
- support for Minecraft 1.21.6
Carpet Mod 1.4.175 for Minecraft 1.21.6 pre-1
- support for Minecraft 1.21.6 pre-1
Carpet Mod 1.4.174 for Minecraft 25w20a and 25w21a
- support for Minecraft 25w20a and 25w21a
Carpet Mod 1.4.173 for Minecraft 25w19a
- support for Minecraft 25w19a
Carpet Mod 1.4.172 for Minecraft 25w18a
- support for Minecraft 25w18a
Carpet Mod 1.4.171 for Minecraft 25w16a and 25w17a
- support for Minecraft 25w16a and 25w17a
Carpet Mod 1.4.170 for Minecraft 25w15a
- support for Minecraft 25w15a
Carpet Mod 1.4.169 for Minecraft 1.21.5
- support for Minecraft 1.21.5
- fixed crash when exiting from singleplayer worlds in some rare circumstances
- fixed behaviour of calduroning shulkerboxes. blame @altrisi
scarpet changes:
- fixed rendering of most `draw_shape` shapes, including `label` and most primitives like `box`, `sphere`, etc. Still `doublesided` and similar options that relied on culling will not work and will likely not be supported in the future.
- fixed broken particle parsing. Particles vanilla format has now changed, check docs of `particle()` for details
- fixed broken setting of player rotations via `modify(player, ...`
*) (comparing to 1.4.168)
Carpet Mod 1.4.168 for 25w09a, 25w10a and 1.21.5-pre1
- support for Minecraft 25w09a, 25w10a and 1.21.5-pre1
Scarpet changes:
- due to significant changes to the rendering pipeline, most `draw_shape` calls provide ugly results, albeit still usable for debugging purposes. `draw_shape` functionality may change to some extend in the future due to different exposed capabilities of the rendering engine.
Carpet Mod 1.4.167 for Minecraft 25w07a and 25w08a
- support for Minecraft 25w07a and 25w08a
Carpet Mod 1.4.166 for Minecraft 25w06a
- fixed crash when using maxEntityCollisions rule. @Arian04
- support for Minecraft 25w06a
Carpet 1.4.165 for Minecraft 25w05a
- support for Minecraft 25w05a
Carpet 1.4.164 for Minecraft 25w04a
- support for Minecraft 25w04a
Carpet 1.4.163 for Minecraft 25w03a
- support for Minecraft 25w03a
Carpet 1.4.162 for Minecraft 25w02a
- support for Minecraft 25w02a
Carpet 1.4.161 for Minecraft 1.21.4
- support for Minecraft 1.21.4
Carpet 1.4.160 for 24w46a and 1.21.4pre1-rc1
- support for Minecraft 24w46a and 1.21.4pre1-rc1
Carpet 1.4.159 for Minecraft 24w44a and 24w45a
- support for Minecraft 24w44a and 24sw45a
Scarpet changes:
- `add_chunk_ticket` now creates a 40 ticks chunk ticket corresponding to landing enderpearl instead of non-existing now 5 ticks one if option `teleport` is used
Carpet 1.4.158 for Minecraft 1.21.2/3
- support for Minecraft 1.21.2 and 1.21.3
Carpet 1.4.157 for Minecraft 1.21.2-pre3 to rc1
- support for Minecraft 1.21.2-pre3 through rc1
Carpet 1.4.156 for Minecraft 1.21.2-pre1
- support for Minecraft 1.21.2-pre1
Carpet 1.4.155 for Minecraft 24w40a
- support for Minecraft 24w40a
scarpet changes:
- minor breaking changes to `recipe_data` and `crafting_remaining_item` due to changes in vanilla crafting system: recipe ingredients are now provided as items, not item tuples, and crafting reminder as item tuple, not an item name. Check the docs for details
Carpet 1.4.153 for Minecraft 24w38a
- support for Minecraft 24w38a
Carpet 1.4.152 for Minecraft 24w37a
- support for Minecraft 24w37a
Carpet 1.4.151 for Minecraft 24w36a
- support for Minecraft 24w36a
Carpet 1.4.150 for Minecraft 24w35a
- support for Minecraft 24w35a
Carpet 1.4.149 for Minecraft 24w34a
- support for Minecraft 24w34a
Carpet 1.4.148 for Minecraft 24w33a
- support for Minecraft 24w33a
scarpet changes:
- 'explosion' event can now be cancelled
Carpet 1.4.147 for Minecraft 1.21 and 1.21.1
- support for Minecraft 1.21 and 1.21.1
Carpet 1.4.146 for Minecraft 1.21-pre3
- support for Minecraft 1.21-pre3
Carpet 1.4.145 for Minecraft 1.21-pre1
- support for Minecraft 1.21 prerelease 1
scarpet changes:
- chunk loading API is still broken. Chunk load events should come back. `relight` or `reset_chunk` might not be that easy to do, so may be dropped
- scarpet shapes are fixed now!
Carpet 1.4.144 for Minecraft 24w21a
- support for Minecraft 24w21a
Scarpet changes:
- chunk loading API is still broken
- scarpet shapes are broken now too.
Carpet 1.4.143 for Minecraft 24w20a
- support for Minecraft 24w20a
scarpet changes:
- temporarily (hopefully) disabled functions of `relight` and `reset_chunk` since it cannot be easily adapted to the new API. Same goes for `chunk_generated` and `chunk_loaded` events, which may come back in a different form, supported by the new chunk API
Carpet 1.4.142 for Minecraft 24w18a
- support for Minecraft 24w18a
Carpet 1.4.141 for Minecraft 1.20.6
- Fixed issue with carpet clients rules desynced. blame @altrisi
Carpet 1.4.140 for Minecraft 1.20.5
- support for Minecraft 1.20.5
Carpet 1.4.139 for Minecraft 1.20.5-pre2
- support for Minecraft 1.20.5 pre release 2
Carpet 1.4.138 for Minecraft 1.20.5-pre1
- support for Minecraft 1.20.5-pre1
Carpet 1.4.137 for Minecraft 24w14a
- support for Minecraft 24w13a
- runs on Java 21
Carpet 1.4.136 for Minecraft 24w13a
- support for Minecraft 24w13a
Carpet 1.4.135 for Minecraft 24w12a
- support for Minecraft 24w12a
Carpet 1.4.134 for Minecraft 24w09a, 24w10a and 24w11a
- supports Minecraft 24w09a, 24w10a and 24w11a
- adjusted `stackableShulkerBoxes` rule to work with the new item format. It should be now easier to stack them (they should just behave like normal stackable items), but you try to save an overstacked item (with the rule turned off) the chunk will currently crash
scarpet changes:
- changes to how item arguments are interpreted and returned throught the API.
Significant changes to the format of the items nbt affects how items are handled in scarpet. The format doesn't change, so items are still represented as a triple of [item_id, count, tag], but now the tag does not represent the extra data that the item had associated with it, but the entire tag including the count, id, and all new components. When saving of items (using `inventory_set` for example), if the tag is provided it will override the provided id, and if the count is provided in the triple, it will override the count in the tag. For example, the following: `['stone', 1, {}]` is now `['stone', 1, {id:"minecraft:stone"}]` and `['diamond_pickaxe', 1, {Damage:4}]` is now `['diamond_pickaxe', 1, {components:{"minecraft:damage":4},id:"minecraft:diamond_pickaxe"}]`. It is now not easy to assert if the item has no data by checking if the tag is false. You need to now check if components are missing.
If you worked with items before, but didn't use the tag information, your scripts should work just fine. If you used the tags, but only in their unmodified form, for instance to copy item information from one place to another, you should be fine too. If you needed to parse item information, or were creating items with custom nbt on your own, your scripts will break and need to be adjusted.
Carpet 1.4.133 for Minecraft 24w06a and 24w07a
- support for Minecraft 24w06a and 24w07a
Carpet 1.4.132 for Minecraft 24w05a
- support for Minecraft 24w05a
Carpet 1.4.131 for Minecraft 24w04a
- support for Minecraft 24w04a
- fixed issues with incorrect loading of `quasiConnectivity` on startup. Blame @altrisi
Carpet 1.4.130 for Minecraft 24w03a
- removed `spawnChunksSize` as vanilla does it on its own
- fixed crashes related to spawning of fake players. blame @senseiwells
scarpet changes:
- `sound` would now not reject unknown sounds assuming clients may have them defined. blame @ch-yx
Carpet 1.4.129 for Minecraft 23w51b
- support for Minecraft 23w51b
Carpet 1.4.128 for Minecraft 1.20.3 and 1.20.4
- supports Minecraft 1.20.3 and 1.20.4
scarpet changes:
- `query(..., 'effect', ...)` and `modify(..., 'effect', ...)` now supports negative durations to indicate infinity duration. blame @ch-yx
Carpet 1.4.127 for Minecraft 1.20.3-pre2 and pre3
- support for Minecraft 1.20.3-pre2 and pre3
Carpet 1.4.126 for Minecraft 23w46a and 1.20.3-pre1
- support for Minecraft 23w46a and 1.20.3-pre1
Scarpet changes:
- fast graphics leaves now show as 'fast' with `draw_shape()`. blame @ch-yx
- fixed screens synchronization issues with `screen_property()`. blame @ch-yx
Carpet 1.4.125 for Minecraft 23w45a
- support for Minecraft 23w45a
- Heavy rework of explosions in vanilla means that behaviour of explosions under `optimizedTNT` may be weird, or undefined. It is possible that optimized explosions will be sunset at some point due to un-maintained code. They seem to work right now, but that's not certain.
Carpet 1.4.125 for Minecraft 23w45a
- support for Minecraft 23w45a
- Heavy rework of explosions in vanilla means that behaviour of explosions under `optimizedTNT` may be weird, or undefined. It is possible that optimized explosions will be sunset at some point due to un-maintained code. They seem to work right now, but that's not certain.
Carpet 1.4.124 for Minecraft 23w44a
- support for Minecraft 23w44a
Carpet 1.4.123 for Minecraft 23w43a
- support for Minecraft 23w43a
- removed carpet `/tick` command in favour of vanilla `/tick` command. Notes on how to use the new `/tick` command can be found here: https://gist.github.com/gnembon/256538acb59eb4eeea8205aaa0905599
- flipped default value of `smoothClientAnimations` since default vanilla behaviour with tick rate below 20, is to be smooth.
Carpet 1.4.122 for Minecraft 23w42a
- works with 23w42a
- removed `portalCreativeDelay` and `portalSurvivalDelay` to yield for equivalent vanilla gamerules now.
Carpet 1.4.121 for Minecraft 1.20.2
- support for 23w41a and backport of fixes to 1.20.2
- fixed command crash connected with `/counter` and scarpet's `recipe_data()`. thanks @altrisi
Scarpet changes:
- fixed inventory syncing and duplication issues using inventory API calls, thanks @ch-yx
Carpet 1.4.120 for Minecraft 23w40a
- Support for Minecraft 23w40a
Carpet 1.4.119 for Minecraft 1.20.2
- fixed crash with `movableBlockEntities`, thanks @manyrandomthings
Carpet 1.4.118 for Minecraft 1.20.2
- supports Minecraft 1.20.2
Carpet 1.4.117 for Minecraft 1.20.2-pre4 and rc1
- support for Minecraft 1.20.2-pre4 and rc1
Carpet 1.4.116 for Minecraft 1.20.2-pre1 and 2
- support for Minecraft 1.20.2-pre1 and 2
Carpet 1.4.115 for Minecraft 23w35a
- support for Minceraft 23w35a
Carpet 1.4.114 for Minecraft 23w32a
- works with 23w32a
- fixed issues with client communication introduced with 23w31a
- fixed issues with spawning fake players introduced with 23w31a
Scarpet changes:
- fixed issues with scoreboard API introduced with 23w31a
Carpet 1.4.113 for Minecraft 23w31a
- Its a experimental build to support 23w31a - many features are not working (blame @mojang) on this version which includes:
- Carpet client communication, affects mostly visual aspects of scarpet API. All clients are now recognized as vanilla
- Fake Players fail to spawn
- Scarpet Scoreboard API behaviour is undefined
- `scoreboardslot` command argument type is ignored in scarpet apps
- French translation, blame @Calvineries
- Fix golem spawning range box in ai-tracker, blame @silnarm
- Fix piglin brutes spawning in air when `piglinsSpawningInBastions` is enabled, blame @aria1th
- added `allowListingFakePlayers` to configure listing fake players on the multiplayer screen, once fake players start working again, blame @filips123
- Remove `lightEngineMaxBatchSize` rule, since it is now defunct, blame @altrisi
Scarpet changes:
- Include app name in deprecation warnings, blame @altrisi
- Fix registry lists being randomized, blame @manyrandomthings
- Fix chat signatures desyncing when cancelling `__on_player_message`, blame @altrisi
Carpet 1.4.112 for Minecraft 1.20 and 1.20.1
- Support for Minecraft 1.20 and 1.20.1
Carpet 1.4.111 for Minecraft 1.20-pre5/6/7, rc1
- fixed issues with advancements after relogging with player shadow present and issues with fake players going through portals. Blame @silnarm
Carpet 1.4.110 for Minecraft 1.20-pre5
- support for Minecraft 1.20-pre5
Carpet 1.4.109 for Minecraft 1.20-pre2/3/4
- Support for Minecraft 1.20-pre2/3/4
Carpet 1.4.108 for Minecraft 1.20-pre1
- support for Minecraft 1.20-pre1
Scarpet changes:
- common fixed point arithmetic ops will not loose long precision. Blame @manyrandomthings and @altrisi
Carpet 1.4.107 for Minecraft 23w18a
- support for 23w18a
Scarpet changes:
- `relight_chunk` and `reset_chunk` functionality is still borked, but now at least it doesn't crash your game. Yay.
Carpet 1.4.106 for Minecraft 23w17a
- Support for 23w17a
Scarpet changes:
- `relight_chunk` and `reset_chunk` functionality is not fully determined at this point due to significant changes to the light engine in 23w17a.
Carpet 1.4.105 for Minecraft 23w16a
- support for 23w16a
- since concept block material has been removed in favour of block tags, sound types, etc, no material info is available via `/info` command
Scarpet changes:
- `while(condition, expression)` is now possible without a limit for more classic and obvious use of `while` loop, duh...
- `print(foo)` without specifying the player will use the app player for player scoped apps to always send messages to the proper chat for player scoped apps.
- deprecated `material()` even further - now only returns `'unknown'`
Carpet 1.4.104 for Minecraft 23w14a
- support for 23w14a
- one cannot /player shadow singleplayer server owners, blame @silnarm
Scarpet changes:
- `material(...)` has been deprecated as since this version becomes pretty useless. Vanilla seems to remove the concept of materials for block tags
- fixed `map_colour(...)` to actually report map colour, not map colour.
Carpet 1.4.103 for Minecraft 23w13a
- Support for 23w13a
Carpet 1.4.102 for Minecraft 23w12a
- support for Minecraft 23w12a
Carpet 1.4.101 for Minecraft 1.19.4
- Fixed a regression where players weren't able to control minecarts. Blame @Ghoulboy78
- Fixed an issue causing some mods mixins to not work properly
Scarpet changes:
- Fixed functions from extensions not using the new `functionName` parameter being renamed to `$METHOD_NAME_MARKER$`. Blame @replaceitem
Carpet Mod 1.4.100 for Minecraft 1.19.4
- support for Minecraft 1.19.4
- fixed chests not sticking properly with movable tile entities enabled
- for the time the use of `fillLimit` will sync with vanilla gamerule. Still, it will be removed with 1.20 carpet release. blame @altrisi
- fixed `/player <name> stop` not stopping fake players immediately. blame @Ghoulboy78
- fixed fake players not teleporting to unloaded chunks and not being able to respawn after exiting the end, blame @silnarm
Scarpet changes:
- make `bitwise_shift_right` shift bits logically. Introduced `bitwise_arithmetic_shift_right` for arithmetic shift operation. blame @altrisi
Carpet 1.4.99 for Minecraft 1.19.4-pres and rcs
- support for 1.19.4-pre1
- `chunk_display` built-in app uses now custom command to trigger, not in-game interactions
- fixed issues with fake players not falling properly, affecting their fall damage, elytra deployment, crits etc. blame @silnarm
Carpet 1.4.97 for Minecraft 23w06a
- support for 23w06a
Carpet 1.4.96 for Minecraft 23w05a
- supports 23w05a and 23w04a
- extended `quasiConnectivity` rule to provide any arbitrary distance where pistons, droppers and dispensers check for quasi power. Blame @SpaceWalkerRS
- If you had it set to `false`, you'll have to set it to zero
- added `tickSyncedWorldBorders` to use game time, not real time to move world border. Blame @senseiwells
scarpet changes:
- fixes errors when trying to use scarpet shapes from a dedicated server. Thanks @vlad2305m
- added back `sample_noise()` with new capabilities to sample any density functions defined in datapacks besides functions used in world generation. Blame @Crec0
Carpet 1.4.96 for Minecraft 1.19.3
Scarpet changes:
- fixes errors when trying to use scarpet shapes from a dedicated server
Carpet 1.4.95 for Minecraft 23w04a
- support for 23w04a
- removed `leadFix` rule as its no longer needed
- added `thickFungusGrowth` to allow thick fungus to grow into 3x3 variant with bonemeal. Blame @Ghoulboy78
scarpet changes:
- added `world_min_spawning_light` to `system_info()`
Carpet 1.4.94 for Minecraft 20w03a
- support for 20w03a
- `fillLimit` has now been deprecated in flavor of vanilla `commandModificationBlockLimit` gamerule. To support existing worlds, for now the game chooses the largest value from two. `fillLimit` will be removed in 1.20.0
- removed `flatWorldStructureSpawning` since correct behaviour is now expected from vanilla game
Carpet 1.4.93 for Minecraft 1.19.3
- Bumped the version, 1.4.92 was marked as 1.4.91
- Consider updating if you got 1.4.92 for ease of debugging issues
Carpet 1.4.79 for Minecraft 1.19
Check the changelogs on Github Releases.
Carpet 1.4.57 for Minecraft 1.18.1
Check the changelogs on Github Releases.
Carpet 1.4.0 for 1.16.1
Check the changelogs on Github Releases.
Carpet 1.3.7 for Minecraft 1.14.4
Check the changelogs on Github Releases.
Carpet 1.4.92 for Minecraft 1.19.3
- Make `/fillbiome` limit customisable with `fillLimit` by @senseiwells
- Fixed `optimizedTNT` reversing drop decay gamerules by @LagPixelLOL
- Fixed a crash with corals
Scarpet changes:
- Add event for commands and make `__on_player_message` not trigger for them by @Ghoulboy78
Carpet 1.4.84 for Minecraft 1.19.2
Check the changelogs on [its page Github Releases](https://github.com/gnembon/fabric-carpet/releases/tag/1.4.84).
Carpet 1.4.69 for Minecraft 1.18.2
Check the changelogs on Github Releases.
...nice
Carpet 1.4.57 for Minecraft 1.17.1
Check the changelogs on Github Releases.
Carpet 1.4.44 for Minecraft 1.16.5
Check the changelogs on Github Releases.
Carpet 1.4.8 for Minecraft 1.15.2
Check the changelogs on Github Releases.
Carpet 1.1.3 for Minecraft 1.14.4
Check the changelogs on Github Releases.
收录