MC百科社群

标题: 如何制作Minecraft整合包?兼容构建篇 [打印本页]

作者: Rad    时间: 2024-6-10 12:56
标题: 如何制作Minecraft整合包?兼容构建篇
本帖最后由 Rad 于 2024-6-10 12:57 编辑

[bilibili]BV1xi4y1B7h3[/bilibili]
简介内容:
视频中用到的整合包:https://www.curseforge.com/minecraft/modpacks/forget-me-not 视频中提及的模组:KubeJS: https://www.curseforge.com/minecraft/mc-mods/kubejsOpen Loader: https://www.curseforge.com/minecraft/mc-mods/open-loader视频的参考页面:教程/制作数据包: https://minecraft.fandom.com/zh/ ... D%AE%E5%8C%85KubeJS Wiki: https://wiki.latvian.dev/books/kubejs其他信息:pack.mcmeta的示例内容:{"pack":{"pack_format":9,"description":"Description here."}}煤矿的自定义战利品表:{"type":"minecraft:block","pools":[{"rolls":1.0,"bonus_rolls":0.0,"entries":[{"type":"minecraft:alternatives","children":[{"type":"minecraft:item","conditions":[{"condition":"minecraft:match_tool","predicate":{"enchantments":[{"enchantment":"minecraft:silk_touch","levels":{"min":1}}]}}],"name":"minecraft:coal_ore"},{"type":"minecraft:item","conditions":[{"condition":"minecraft:survives_explosion"}],"name":"minecraft:coal"}]}]},{"rolls":1.0,"bonus_rolls":0.0,"entries":[{"type":"minecraft:alternatives","children":[{"type":"minecraft:item","conditions":[{"condition":"minecraft:random_chance","chance":0.5}],"functions":[{"function":"minecraft:apply_bonus","enchantment":"minecraft:fortune","formula":"minecraft:uniform_bonus_count","parameters":{"bonusMultiplier":2}},{"function":"set_count","count":{"min":1,"max":2}},{"function":"minecraft:explosion_decay"}],"name":"minecraft:diamond"}]}]}]}steel.js的内容:ItemEvents.toolTierRegistry(event=>{event.add('steel',tier=>{tier.uses=2281tier.speed=10.0tier.attackDamageBonus=4.0tier.level=4tier.enchantmentValue=15tier.repairIngredient='steelmod:steel'})})registery.js的内容:StartupEvents.registry('item',event=>{event.create('steel_scythe','sword').tier('steel').attackDamageBaseline(9.0).speedBaseline(-3.4)})BGM:StreamBeats by Harris Heller (https://www.youtube.com/@StreamBeatsbyHarrisHeller)光影:Nostalgia_v5.0





欢迎光临 MC百科社群 (https://bbs.mcmod.cn/) MC百科|最大的MineCraft中文模组百科