坠落保护不践踏作物
简介
本模组修改了践踏作物的功能,使其在玩家装备了附魔有“摔落保护”的靴子时进行检查。目前,该模组仅支持 Fabric、NeoForge 和 Paper 1.21.11。除非必要,否则我不会支持 Forge 或 Quilt。我也仅支持 1.21.11 及以上版本,不进行向后移植。
安装
要在 Fabric 或 NeoForge 上安装,首先你需要安装 Fabric 或 NeoForge 安装程序。或者使用 Modrinth 应用或其他类似的安装管理器。
Fabric(适用于单个版本)
NeoForged(适用于单个版本)
Modrinth(适用于多个安装)
Paper(适用于服务器)
在安装好 Fabric 实例后,你必须导航到 mods 文件夹(Minecraft Launcher Fabric / NeoForged),或者通过 Modrinth 启动器直接安装。
Fabric / NeoForged
Windows
在 Windows 上,按 WIN + R,在弹出的框中输入 appdata 然后按回车。在那里你应该能看到一个名为 .minecraft 的文件夹。进入其中,你会看到一个名为 mods 的文件夹。将对应版本的模组 .jar 文件放入其中。
Mac
打开 Finder 窗口。在顶部菜单栏中,选择 前往 → 前往文件夹。输入 "~/Library/Application Support/minecraft"。在其中放入对应版本的模组 .jar 文件。
Linux (在 Ubuntu 上可能因发行版而异)
打开文件管理器并导航到主目录。从那里,按 CTR + H 显示隐藏文件夹。从那里导航到 .minecraft。然后进入 mods 文件夹并将对应版本的模组 .jar 文件放入其中。
Modrinth
在 Modrinth 应用中,找到你的 Fabric 或 NeoForge 安装实例,应该有一个名为 “install mods” 的选项卡。点击它并搜索此项目,然后点击安装。如果遇到困难,网上有许多教程,但这其实相当简单直接。
Paper
下载 PaperMC 后,导航到你安装的位置,并将对应版本的 .jar 文件放入 Plugins 文件夹中。然后启动服务器。
工作原理
非常简单,它添加了一个 mixin,在 FarmlandBlock 类的 onLandedUpon 函数中添加了一个检查。该检查会判断实体是否为玩家,以及他们是否穿着带有“摔落保护”附魔的靴子。
Feather Falling No Trample Crops
About
The mod changes the functionality of trample crops to do a check if the player has feather falling boots equipped. At the present moment, the mod only supports Fabric, Neoforge and Paper 1.21.11. I won't support Forge or Quilt unless I need to. I will also only be support versions from 1.21.11+. No backporting.
Installation
To install it on Fabric, or NeoForge first you must install the Fabric or Neoforge installer. Or have the Modrinth app or a similar installation manager.
Fabric (for one version)
NeoForged (for one version)
Modrinth (for multiple installations)
Paper (for servers)
After having an instance of fabric installed, you must either navigate to the mods folder (Minecraft Launcher Fabric / NeoForged) or directly install it through the modrinth launcher.
Fabric / NeoForged
Windows
On Windows press WIN + R and in the box that shows up type appdata then hit enter. From there you should see a folder called .minecraft. Once inside there, you should see a folder called mods. In there put the mod .jar for the correct version.
Mac
Open Finder Window. In the top bar, select Go → Go to folder. Type in "~/Library/Application Support/minecraft". In there put the mod .jar for the correct version.
Linux (On Ubuntu could vary from distro)
Open Files and navigate to home. From there, press CTR + H to show hidden folders. From there, navigate to .minecraft. Then go to the mods folder and place the mod .jar for the correct version.
Modrinth
In the modrinth app go to your installation of fabric or neoforged and there should be a tab called install mods. Click on this and search for this project. Then hit install. If you have trouble with this there are tutorials online, however it is quite straight forward.
Paper
After downloading PaperMC navigate to where you installed it and place the .jar file for the version in the Plugins folder. Then start up the server.
How it works
It is extremely simple and just adds a mixin that adds a check to the onLandedUpon function in the FarmlandBlock class. The check checks if the entity is a player and that they are wearing boots that have feather falling on them.
评论 0
登录后参与评分
还没有评论,来抢沙发吧