登陆 注册 QQ登陆
快捷导航
查看: 8|回复: 0

[模组分享] Sculk (Sculk)-MOD模组

[复制链接]

5433

主题

24

回帖

7144

积分

龙❁妻

Rank: 8Rank: 8

经验
7144 EP
金粒
1647 粒
绿宝石
20 块
爱心
0 点
发表于 2025-8-10 19:12:45 | 显示全部楼层 |阅读模式 IP:北京
Sculk (Sculk)Github |相关wiki |源站链接支持: fabricA programming language for Minecraft datapacks



  A programming language for Minecraft datapacks

https://revolvingmadness.github.io/Sculk-Docs]Explore the docs »

https://github.com/RevolvingMadness/Sculk/issues]Report Bug

  ·

https://github.com/RevolvingMadness/Sculk/issues]Request Feature

Requirements

Sculk requires https://www.fabricmc.net]Fabric and the https://www.curseforge.com/minecraft/mc-mods/fabric-api/files]Fabric API.

Examples

For examples, please visit https://RevolvingMadness.github.io/Sculk-Docs/examples]this page.

Contributing

If you have a suggestion and would like to make Sculk better, please fork the repo and create a pull request. You can also simply open an https://github.com/RevolvingMadness/Sculk/issues]issue with the tag \"enhancement\". Don\'t forget to give the project a star! Thanks again!

License

Distributed under the Apache 2.0 License. See LICENSE]LICENSE for more information.

Inspiration

- https://modrinth.com/datapack/code-of-copper]Code of Copper
- https://modrinth.com/mod/luadatapack]Lua Datapack
- https://modrinth.com/mod/cc-tweaked]Computer Craft Tweaked

截图:

https://i.sodamc.com/modrinth/MLyFxR5aVI.jpg?x-oss-process=style/forge2]

来自Modrinth所有游戏版本1.20.4所有类型fabricSculk 0.0.5 (First Beta)sculk-0.0.5.jar下载0.0.5#Betasculk-0.0.5-sources.jar下载0.0.5#BetaCustom Block & Item Support!## Added- `Item` extends `ItemStack`- `PlayerEntity.getStackInMainHand`- `PlayerEntity.getStackInOffHand`- `Method` extends `Callable`- `Function` extends `Callable`- `Inventory` class- `List` toString- `ItemStack.init(item: Item, count: Integer) -> Null`- `\\uXXXX` to strings- `String.fromUnicode(unicode: Integer) -> String`- `GUI.onClose(player: PlayerEntity, gui: GUI) -> Null`- `PlayerEntity.getEnderChestInventory() -> Inventory`- `PlayerEntity.setEnderChestInventory(inventory: Inventory) -> Null`- `Inventory` constructor- `PlayerEntity.setInventory(inventory: Inventory) -> Null`- `PlayerEntity.getInventory() -> Inventory`- `NBTBoolean`- `NBTCompound`- `NBTElement`- `NBTFloat`- `NBTInteger`- `NBTList`- `NBTNull`- `NBTString`- Casting- `start` script tag- `nonnull` access modifier- Custom item/block support- `Items.register(item: Item) -> Item`- `ItemSettings`- `Blocks.register(block: Block) -> Block`- `Blocks.registerWithItem(block: Block) -> Block`- `BlockSettings`展开版本: 0.0.5支持游戏: 1.20.4类型:FabricBeta下载次数: 243Sculk 0.0.4sculk-0.0.4.jar下载0.0.4#Alphasculk-0.0.4-sources.jar下载0.0.4#AlphaThis version is probably very buggy because I added type requirements at the very end.## Added- `randomInteger(min: Integer, max: Integer) -> Integer`- `randomFloat(min: Float, max: Float) -> Float`- `String.length() -> Integer`- `String.uppercase() -> String`- `String.lowercase() -> String`- `Number` type/class- variables/fields have optional required types- functions have required return types- function arguments have required types- methods have required return types- method arguments have required types- `ItemStack.item`## Changed- `Events` is now accessed from a static context- `Entity.addCommandTag` -> `Entity.addTag`- `Entity.getCommandTags` -> `Entity.getTags`- `Entity.removeCommandTag` -> `Entity.removeTag`- `Entity.dismountVehicle` -> `Entity.dismount`- `Entity.removeAllPassengers` -> `Entity.removePassengers`- `ServerPlayerEntity.changeGameMode` -> `ServerPlayerEntity.setGameMode`- Integer now extends Float instead of Float extending Integer- `Events.onPlayerAttackEntity` -> `Events.onAttackEntity`- `Events.onPlayerBreakBlock` -> `Events.onBreakBlock`- `Events.onPlayerCraftItem` -> `Events.onCraftItem`- `Events.onPlayerDropItem` -> `Events.onDropItem`- `Events.onPlayerJump` -> `Events.onJump`- `Events.onPlayerPickupItem` -> `Events.onPickupItem`- `Events.onPlayerRingBell` -> `Events.onRingBell`- `Events.onPlayerSneak` -> `Events.whileSneaking`- `Events.onPlayerUseItem` -> `Events.onRightClickItem`- `Events.onPlayerSendChatMessage` -> `Events.onSendChatMessage`## Fixed- Dictionaries don\'t work in nbt elements- Overriding `toString` does nothing- A class with no constructor takes an infinite amount of arguments## Improved- Error messages## Removed- Resource syntax due to conflict with variable declaration parsingNew syntax: `namespace:path` -> `\"namespace:path\"`Resources are just strings.展开版本: 0.0.4支持游戏: 1.20.4类型:FabricAlpha下载次数: 122Sculk 0.0.3sculk-0.0.3.jar下载0.0.3#Alpha## Added- `abs(number: Integer | Float): Object`- `String` is now iterable- Data can now be written to an entity- `String.startsWith(text: String): Boolean`- `String.endsWith(text: String): Boolean`- `break` can now be used in switch statement- `String.split(splitter: String): List[String]`- `Integer.parseInteger(integer: String): Integer`- `Float.parseFloat(float: String): Float`- `ceil(number: Integer | Float): Integer`- `floor(number: Integer | Float): Integer`- `BlockHitResult`- `World.breakBlock(pos: BlockPos, drop_items: Boolean): Boolean`- `World.getBlock(pos: BlockPos): Block`- `List.append(object: Object): Null`## Changed- `events.onPlayerBreakBlock(function: Function[Boolean, PlayerEntity, Block]): Null` isnow `events.onPlayerBreakBlock(function: Function[Boolean, PlayerEntity, BlockPos, Block]): Null`- `World.setBlock` renamed to `World.placeBlock`- `maxArguments` renamed to `maxArgumentCount`## Fixed- String concatenation- Event registration not clearing on reload## Improved- Error messages展开版本: 0.0.3支持游戏: 1.20.4类型:FabricAlpha下载次数: 72Sculk 0.0.2sculk-0.0.2.jar下载0.0.2#Alpha### Added- Folder support for resources- `foo:bar` now supports `foo:foo/foobar`- `as` keyword to import statements- From statement- Switch statement- Switch expression- Increment/decrement operators `x++` / `x--`- Access to builtin classes- Constructors for builtin classes- Ternary expressions- Division by zero error- `Entity.raycast(distance: Float, target: Block, check_fluids: Boolean): Boolean`- `base64encode(input: String): String`- `base64decode(input: String): String`- `EntityTypes`- `List.contains(object: Object): Boolean`### Changed- `Entity.extinguish(): Null` and `Entity.extinguishWithSound(): Null` have been merged into onefunction `Entity.extinguish(Boolean): Null`- Fix circular imports- Reverted custom load script- Float extends Integer展开版本: 0.0.2支持游戏: 1.20.4类型:FabricAlpha下载次数: 82Sculk 0.0.1sculk-0.0.1.jar下载0.0.1#AlphaFirst alpha version of Sculk!### Known Bugs- Crashes on server when any Sculk script errors occur展开版本: 0.0.1支持游戏: 1.20.4类型:FabricAlpha下载次数: 79全部版本

markdown_parsed

文章类型:收录

layui.use([\'form\'], function(){
var form = layui.form;
});

游客,如果您要查看本帖隐藏内容请回复
Sculk
楼主 2025-8-10 19:12:45 回复 收起回复
小僵尸论坛感谢有你~
回复 论坛版权

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 手机动态码快速登录

本版积分规则



官方

新浪微博 腾讯微博 微信公众号 投稿规则 版权声明 捐助我们

官方QQ①群: 291907844 (点击加群)
官方QQ②群: 421312192
官方QQ③群: 528726532

介绍

我的世界(Minecraft)小僵尸论坛
收录了来自各地的我的世界(MC)爱好者们的各种资源

须知: 切勿滥用举报,任何与举报相关的信息必须属实!

"Minecraft"以及"我的世界"为Mojang Synergies AB的商标 本站与Mojang以及微软公司没有从属关系

QQ|Archiver|手机版|小黑屋|Minecraft(我的世界)小僵尸论坛 |网站地图

GMT+8, 2025-8-23 20:39 , Processed in 0.220329 second(s), 49 queries .

快速回复 返回顶部 返回列表