# Project
This repo contains sample GameTest behavior files for Minecraft Bedrock Edition. Minecraft supports GameTests - a combination of JavaScript + MCStructures - for validating facets of Minecraft behavior. You can use GameTests to validate facets of your creations, as well!
## Getting started with GameTest
To get started with GameTest Framework in Minecraft, see this [GameTest Framework Introduction](https://aka.ms/gametest) page.
A tutorial for creating your first GameTest is available [here](https://aka.ms/newgametest). The sample code for the tutorial is within this repo, at [/behavior_packs/StarterTestsTutorial](https://github.com/microsoft/minecraft-gametests/tree/main/behavior_packs/StarterTestsTutorial).
## Behavior packs & tests
#### NOTE: The main branch is compatible with the latest released main version of Minecraft. The beta branch is generally compatible with the latest updated beta version of Minecraft.
| Name | Link | Description |
| -------------------- | ------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------- |
| StarterTestsTutorial | [Open](https://github.com/microsoft/minecraft-gametests/tree/main/behavior_packs/StarterTestsTutorial) | Starter "Hello World" sample used in the tutorial at https://aka.ms/newgametest. |
| MobBehaviorTests | [Open](https://github.com/microsoft/minecraft-gametests/tree/main/behavior_packs/MobBehaviorTests) | Simple tests of interesting mob behaviors. |
## Using these behavior packs
To use these behavior packs with an installed Windows 10 version of Minecraft Bedrock Edition:
1. Copy the desired behavior packs into the `development_behavior_packs` (`%localappdata%\Packages\Microsoft.MinecraftUWP_8wekyb3d8bbwe\LocalState\games\com.mojang\development_behavior_packs`) folder
2. Create a new world in Minecraft with the following options:
- Enable the GameTest Framework Experiment
- Set to Creative mode
- Add the desired Behavior packs
## Contributing
This project welcomes contributions and suggestions. For the GameTests you'd like to submit for inclusion in this sample repo, please make sure:
- the GameTest(s) are small and self contained
- can run in a short amount of time, with clear pass/fail criteria
- are generally passing, or used to document an unexpected failure and are tagged as such (with the .tag function on .register)
- do not have any external dependencies (e.g., on extra behavior or resource packs)
- for JavaScript, that files are formatted consistent with the settings defined in prettierrc.json (mainly, two-space indentation)
Most contributions require you to agree to a
Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us
the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com. When you submit a pull request, a CLA bot will automatically determine whether you need to provide
a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions
provided by the bot. You will only need to do this once across all repos using our CLA.
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or
contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.
## Trademarks
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft
trademarks or logos is subject to and must follow
[Microsoft's Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
Any use of third-party trademarks or logos are subject to those third-party's policies.
没有合适的资源?快使用搜索试试~ 我知道了~
Minecraft 基岩版的 示例游戏测试_JavaScript_代码_下载
共32个文件
mcstructure:8个
json:8个
js:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 46 浏览量
2022-06-23
17:01:19
上传
评论
收藏 61KB ZIP 举报
温馨提示
此 repo 包含 Minecraft 基岩版的示例 GameTest 行为文件。Minecraft 支持 GameTests - JavaScript + MCStructures 的组合 - 用于验证 Minecraft 行为的各个方面。您也可以使用 GameTests 来验证您的创作的各个方面! 更多详情、使用方法,请下载后阅读README.md文件
资源推荐
资源详情
资源评论
收起资源包目录
minecraft-gametests-main.zip (32个子文件)
minecraft-gametests-main
SUPPORT.md 1KB
behavior_packs
MobBehaviorTests
structures
MobBehaviorTests
mediumglass.mcstructure 10KB
glass_pit.mcstructure 2KB
gametests
glass_cells.mcstructure 3KB
manifest.json 717B
pack_icon.png 8KB
scripts
Utilities.js 3KB
MobBehaviorTests.js 3KB
CommandTests
structures
gametests
clone_command.mcstructure 9KB
LlamaCommands.mcstructure 4KB
manifest.json 724B
pack_icon.png 8KB
scripts
CommandTests.js 4KB
ChallengeTests
structures
gametests
minibiomes.mcstructure 13KB
collapsing_space.mcstructure 16KB
manifest.json 810B
pack_icon.png 8KB
scripts
Utilities.js 3KB
ChallengeTests.js 1KB
StarterTestsTutorial
structures
startertests
mediumglass.mcstructure 10KB
manifest.json 747B
pack_icon.png 8KB
scripts
StarterTests.js 605B
.vscode
settings.json 128B
SECURITY.md 3KB
LICENSE 1KB
.gitignore 6KB
CODE_OF_CONDUCT.md 444B
README.md 4KB
.vscode
settings.json 221B
extensions.json 59B
.prettierrc.json 175B
共 32 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9152
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功