Cookbook 1.2
一个插件,用于按照你的喜好自定义服务器上的合成配方。目前它仅允许在 recipes.cb 配置文件中设置配方,但计划未来也会加入游戏内配方编辑器以及基于配方的权限系统。
配方从 recipes.cb 中读取。其格式非常直观;通过示例最容易解释。
# # 符号表示该行的其余部分为注释@Shaped dirt dirt # 最多 3x3 的原料网格,空槽位用空气表示。 0 3 # 原料可以通过 ID 或名称指定 -> 2x IRON_INGOT # 结果的格式对所有类型的配方都相同
@Smelt Dirt -> 3x Wheat
@Shapeless Apple, Bowl -> 1 Water-bucket # x 是可选的
@Smelt Redstone -> 6 ink-sack/3 # 你可以在除熔炼输入之外的任何地方指定数据值
@Smelt Bow -> 1 Bow ARROW_INFINITE=1 # 你可以像这样添加附魔或其他元数据。
更多详细信息,请参阅 Recipe Format。
配置
以下键值在 Cookbook 文件夹中的 config.yml 中使用:
- startup - 指定 Cookbook 在启动时的行为。有效值为 "clear"(在添加 recipes.cb 中的配方之前移除所有原版配方)、"reset"(在添加自定义配方之前重置为原版配方)和 "compound"(仅添加你的配方)。你可以使用此选项来抑制其他插件的配方,或者完全重做 Minecraft 提供的配方。请注意,某些原版配方(如火箭、染色皮革盔甲、地图复制、地图缩放和书籍复制)无法使用 Cookbook 重新实现,因此在决定使用 "clear" 之前请考虑这一点。
- fix.soup-bowl - 如果为 true,当你在配方中使用蘑菇汤时,Cookbook 会返还碗。
- fix.glass-bottle - 如果为 true,当你在配方中使用药水时,Cookbook 会返还玻璃瓶。请注意,如果你将此设置为 true 并创建将药水作为原料制作其他药水的配方,每次从药水酿造出新药水时,你都会免费获得一个玻璃瓶。因此,如果你想要这类配方,请不要将其设置为 true。
- allow-high-enchants - 如果为 true,Cookbook 将允许高于正常等级的附魔。
- allow-wrong-enchants - 如果为 true,Cookbook 将允许在不通常适用的物品上应用附魔。
- generate-defaults-cb - 如果为 true,Cookbook 将在添加任何配方之前生成一个 defaults.cb。完成后,此标志将设置为 false。请注意,由于 Bukkit 的一些特性,生成的 defaults.cb 中可能会有少数配方不准确;通常涉及地图、皮革盔甲、书籍或火箭的复杂情况。然而,这些配方无论如何都无法用 Cookbook 的功能复制。另外,如果其他插件添加了自定义配方,且它们比 Cookbook 更早加载,这些配方可能会出现在 defaults.cb 中。
注意:这不是 fullwall 最初编写的 Cookbook,甚至也不是基于他的代码;它是从头开始重写的,但我喜欢这个名字,而且由于他的项目已经长期未更新,我决定复用这个名称。如果有足够的需求,我可能会编写一个转换器,将 fullwall 的 Cookbook 格式转换为我的 Cookbook 格式。
Cookbook 1.2
A plugin to customize the recipes on your server to your liking. Currently it only allows to set recipes in the recipes.cb config file, but an in-game recipe creator is planned as well as recipe-based permissions.
Recipes are read from recipes.cb. The format is pretty intuitive; it is most easily explained by example.
# The # symbol indicates that the rest of the line is a comment@Shaped dirt dirt # An up to 3x3 grid of the ingredients, with air for empty slots. 0 3 # ingredients can be specified by ID or name -> 2x IRON_INGOT # The format of the result is the same for all recipe types
@Smelt Dirt -> 3x Wheat
@Shapeless Apple, Bowl -> 1 Water-bucket # The x is optional
@Smelt Redstone -> 6 ink-sack/3 # You can specify data-values anywhere except on smelting input
@Smelt Bow -> 1 Bow ARROW_INFINITE=1 # You can add enchantments or other metadata like this.
For more details, see Recipe Format.
Configuration
The following keys are used from the config.yml in the Cookbook folder
- startup - Specifies how Cookbook should behave on startup. Valid values are "clear" (remove all vanilla recipes before adding the ones from recipes.cb), "reset" (reset to vanilla recipes before adding your custom recipes), and "compound" (just add your recipes). You could use this to suppress recipes from other plugins, or to completely redo the recipes Minecraft offers. Note that some vanilla recipes, such as fireworks, dyed leather armour, map copying, map zooming, and book copying, are impossible to reimplement using Cookbook, so consider this before deciding to use "clear".
- fix.soup-bowl - If true, Cookbook will give back the bowl if you use mushroom soup in a recipe.
- fix.glass-bottle - If true, Cookbook will give back the bottle if you use a potion in a recipe. Note that, if you set this to true and create recipes where potions are used as ingredients to craft other potions, you will get a free glass bottle each time a potion is crafted from a potion. So don't set it to true if you want recipes of that type.
- allow-high-enchants - If true, Cookbook will allow enchantments of higher than normal levels.
- allow-wrong-enchants - If true, Cookbook will allow enchantments on items that they don't normally apply to.
- generate-defaults-cb - If true, Cookbook will generate a defaults.cb before adding any recipes. After doing so, this flag will be set to false. Note that, due to Bukkit quirks, a few recipes in the resulting defaults.cb won't be accurate; generally the complicated things involving maps, leather armour, books, or fireworks. However, these recipes can't be replicated with Cookbook's capability anyway. Note also that if other plugins add custom recipes, these recipes may appear in the defaults.cb if they loaded before Cookbook.
List of item/block names || List of enchantment names
Note: This is not the original Cookbook by fullwall and is not even based on his code; it has been rewritten from scratch, but I liked the name and, since his has been inactive for a long time, decided to recycle it. If there is enough demand I may write a converter to convert fullwall's Cookbook format to my Cookbook format.
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
下载 Cookbook
- 添加了接受无效附魔的选项(在 config.yml 中单独一行添加 "allow-wrong-enchants: true")
- 现在可以使用命名数据值,而无需查找所有项目的数值
- 注释符号从 # 改为 \ — 旧式注释目前仍会被忽略
- 添加了
/cbreload命令以重新加载配方文件;使用/cbreload all可同时重新加载 config.yml。 - 如果不存在 config.yml,Cookbook 现在会在创建配置时插入默认值
- 不再包含 defaults.cb。相反,请在 config.yml 中单独一行添加 "generate-defaults-cb: true",然后观察 Cookbook 自动魔法生成 defaults.cb。
当我尝试设置头颅的所有者时,该功能无法正常工作
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
插件
AbAcc AbAcc 是一款适用于 Minecraft 服务器的管理插件,可简化玩家作弊检测与举报管理工作。工作人员可以发起并管理对可疑玩家的检查流程,并在检查完成后将其释放。
评论 0
登录后参与评分
还没有评论,来抢沙发吧