BCLib Jsonifier
唱片刮擦定格画面 所以呢,嗯。我猜你现在可能在想我是怎么搞到这步的,对吧?好吧,这是个很长的故事。其实也没那么长。基本上是因为 BCLib 在注册标签和配方时的设置方式不正确,这导致了一个非常烦人的副作用:KubeJS 无法与其配方和标签进行交互。可怜的我仍然希望在其整合包中包含 BetterEnd 和 BetterNether,于是我做了任何正常人都会做的合理之事……写了一个完整的模组来劫持 BCLib 的注册系统,扼住它的喉咙,强迫它正常工作!希望这个模组对你来说和我一样有用!
坏消息
现在在你开始高兴之前,让我给你一些坏消息。就目前而言,这不是一种万能解决方案。是的,这确实修复了它们混乱不堪的配方问题。然而,标签仍然有点奇怪。BCLib Jsonifier 附带一个配置文件,虽然它并不十分详尽。它只允许你定义哪些标签是 BCLib 不应该添加到任何物品、方块、生物群系等的。如果这对你有效,那就太好了。如果不是,我很抱歉。我尽了最大努力让标签像配方一样完全正常工作,但我放弃了 lol。
无论如何,这是默认配置。它位于 ./config/bclib-jsonifier.yml。
blocked_tags:
- c:iron_ingots
这完全按照你想的那样工作。它阻止 BCLib 将 c:iron_ingots 添加到任何东西(物品、方块等)上。这对于那些希望保留来自 BetterNether 的 Cincinnasite Ingots 或来自 BetterEnd 的 Thallasium Ingots,但不希望将它们用作铁等价物的人来说非常有效。适合我的情况,希望也适合你的。
BCLib Jsonifier
Record scratch freeze frame Sooooo, yeah. I bet right now you're probably wondering how I got here, huh? Well it's a long story. Well, not so long. Basically BCLib is setup incorrectly with how it registers tags and recipes which has the very annoying sideaffect of KubeJS not being able to interact with its recipes and tags. Little ol' me still wanted to include BetterEnd and BetterNether in their modpack so I did the reasonable thing that any person would do... Write a whole ass mod that hijacks the BCLib registry system and grabs it by the throat and forces it to work correctly! Hope this is as useful to you as it is to me!
Bad News
Now before you start getting all happy, lemme give some bad news. As it stands right now, this is not a one size fits all solution. Yes, this does fix recipes in their entire messiness. However, tags are still a little weird. There's a config that comes with BCLib Jsonifier, though it's not insanely extensive. It only lets you define what tags BCLib should not be able to add to any items, blocks, biomes, so on and so forth. If this works for you, great. If not, I'm so sorry. I tried my darndest to get tags fully working like recipes, but I gave up lol.
Anyway, here's the default config. It's located at ./config/bclib-jsonifier.yml.
blocked_tags:
- c:iron_ingots
This does exactly what you think it'd do. It blocks BCLib from adding c:iron_ingots to anything (item, block, what have you). This works very well for people who want to keep things like Cincinnasnite Ingots from BetterNether or Thallasium Ingots from BetterEnd but don't want them to be used as an iron equivalent. Works for my case, hope it works for yours.
评论 0
登录后参与评分
还没有评论,来抢沙发吧