转自https://youtu.be/XO2kmbi_-Bk 有能力请支持原作者
作者:gnembon 发布时间:2019年4月20日 搬运:hiback
视频摘要:gnembon曾经制作了carpet MOD,为生存技术向玩家提供了很多实用的指令。由于游戏本身的命令方块以及数据包有一定的局限性,并且他人的代码会很不易于阅读,所以gnembon给carpet加入了编程功能。取"script"首字母S,命名为"Scarpet"。Scarpet支持很多编程语言的功能,作者在视频中都进行了展示,包括画球、画函数、随机在方块周围添加树叶、使用嵌套函数计算的斐波那契数列、显示分形图案等等。
Scarpet包括一系列可以直接调用的函数,并且支持用户创建自己的自定义函数并直接调用。并且支持编辑器式语法错误定位。还可以根据游戏的gametick来延时执行代码,通过指令暂停代码,继续运行代码等等。所有项目在GitHub开源,可以提交MOD的issue等。MOD的安装方法在视频最后(36:28处),由于是jar MOD,单机不兼容其他MOD,想要兼容的话必须是服务器,或者本地服务器,并按照视频中的方式运行服务器安装的脚本。
原简介翻译:
我在这里自豪的向你们介绍scarpet - 一个可以在MC中使用的编程语言,可以将游戏自定义成你想要的样子。
关于这个语言的所有说明文档请查看GitHub页面:
https://gnembon.github.io/scarpet/
Scarpet具有示例程序的公共域存储库,以及编辑器的语法支持,从这里获取:
https://github.com/gnembon/scarpet
近期版本的carpet MOD支持:
https://github.com/gnembon/carpetmod/releases/tag/v1.13.2-easter
无存档
其他外链:
--------------
Recorded with Minecraft 1.13.2
Check out my vision of the game at
https://github.com/gnembon/carpetmod
Minecraft IGN: gnembon
Find me on Twitter: http://twitter.com/gnembon_mc
Intros/Outros by Reye and TDL
Resource Pack: Minecraft HD 64 http://www.minecraftforum.net/forums/... with a few modified textures
modified textures:
- bedrock http://bit.ly/bright_bedrock
- hoppers and pistons http://bit.ly/gnembon_redstone_tpack
- bright nether http://bit.ly/bright_nether_tp
- bushy leaves http://bit.ly/bushy_leaves_tp
Music:
Wolfgang Amadeus Mozart. Clarinet Quintet in A, K. 581. By William McColl:
https://musopen.org/music/3009-clarinet-quintet-in-a-major-k-581/
C Saint-Saens, Le Carnaval des Animaux, by Seattle Youth Symphony / Vilem Sokol:
https://musopen.org/music/1454-the-carnival-of-the-animals/
- Cockoo in the Deep Woods
Isaac Wilkins. Gliding. https://isaacwilkins.bandcamp.com/album/terra-swoop-force