当我创建一个为所有原版木质变体添加梯子的模组时,我很快且令人沮丧地发现,原版 Minecraft 有一个非常愚蠢的设计:允许实体像爬梯子一样穿过打开的陷阱门(前提是下方的方块也是梯子)的代码是硬编码在原版梯子上的。
这对我来说毫无意义,而且只需一个小型 mixin 就能轻松修复(在我成功让陷阱门短暂崩溃之后)。从那以后,我已经放弃了那个变体模组,转而使用其他人制作的……但他们的作品并不一定包含自己针对梯子和陷阱门的代码!
因此,我决定发布这个资源。它本质上只是一个 mixin。你可以把它放进你的模组文件夹中,瞬间生效——任何属于原版梯子方块类的梯子实例,都应该能与任何属于陷阱门类的陷阱门配合使用。除非某个模组做了非常奇怪的操作,否则这应该在全球范围内都有效。
如果某个模组已经实现了此功能,它可能仍然能与你这里的东西共存,但如果别人已经做了这件事,那么你可能就不需要我这个了。只有当你爬到梯子顶端却无法穿过上方的陷阱门时,你才需要用到它。
许可证采用 ARR。欢迎将其用于整合包,也完全没必要禁止在视频中使用……但如果发现它在其他地方被转载,请假定那位不负责任的上传者可能已经对其进行了危险修改!如果他们愿意做到这一步……耸肩
When I created a mod to add ladders of all the vanilla wood variants, I discovered rapidly, to my dismay, that vanilla Minecraft has a very stupid thing: The code which allows an entity to climb through an open trapdoor as if it were a ladder, providing the block below is also a ladder, is hardcoded to the vanilla ladder.
This made no sense to me, and was also easily fixed with a small mixin (after I successfully made trapdoors crash the game briefly). Since then, I have abandoned that variant mod, preferring those others have done... but they don't necessarily include their own code for ladders and trapdoors!
So I'm releasing this. It's literally just the mixin. You can plop it into your mod folder and poof, any ladder that is an instance of the vanila ladder block class should work with any trapdoor that's an instance of trapdoor. Unless a mod did something really weird, this should work globally.
If a mod already has this, it may or may not still work with it but mine is likely not needed if someone else did it. You only need this if you get to the top of your ladder and can't climb through the trapdoor itself.
License is ARR. Feel free to use it in modpacks, and it'd be absolutely stupid to say not to use it in videos... But if you see it posted elsewhere, assume the unscrupulous individual who did so may have also altered it dangerously! If they're willing to go that far... shrug
评论 0
登录后参与评分
还没有评论,来抢沙发吧