说明
剑会切断你面前的草以及其他地面植被方块。现在附带横扫效果和音效。
感谢 Nanobot111 设计了 v2.0 和 v3.0 更新(26.1 - 26.3),重做了数据包结构,增加了对灌木等方块以及下界内容的支持,并添加了横扫效果和射线检测。

部分过时版本中的 AI 使用情况
v2.0 和 v3.0 由另一位志愿者编写,他们协助重新设计了该项目。他们的代码非常出色,在我看来极大地提升了项目质量。
然而,我不希望被视为“氛围编程者”(vibecoder),也不希望人们对我作品的可靠性失去信任。因此,我亲自重写了_整个_数据包,使用了自定义的变量名、文件名、文件结构以及其他更改。
由于原代码并不差,完全从头开始重写也是一种浪费,因此我确实参考了 v3.0 的代码并复用了其总体结构。然而,在任何我可以改变而不影响功能的地方(例如更改记分板名称、添加新函数来合并 4 条命令等),我都尝试以自己的方式重新实现,即按照我认为合理且如果仅基于系统通用概念进行开发时会采取的方式。
既然每个可用 Minecraft 版本的最新版本已不再包含实质性的 AI 生成代码,我将移除披露声明,因为已无必要。如果你想阅读包含有关 AI 代码的 Discord 消息的文本,请向下阅读。此外,如果你仍不相信我会费心去重写记分板,我附上了一张在开发过程中制作的非 AI Python 代码图片,以帮助证明这一过程。我制作过需要大量重复工作的项目,Advanced Item Stats 和 Pride Pearls 资源包就是很好的例子(我在 24 小时内为 270 个 Pride Pearls 资源包制作了所有纹理,上传过程拖慢了我的进度,因为我发现还有其他事情要做)。
Python 代码

旧版披露
包含 AI 生成的代码 Nanobot111 在创建 v2.0 和 v3.0 更新时使用了部分 AI。 如果你希望使用不含 AI 生成代码的版本,请前往 v1.0(支持所有 1.21.5 - 26.3 版本)。 我会将亲自重写新版本代码(不使用 AI 帮助)加入我的目标清单。在此之前,由于所有 26.x 版本的最新版本都使用了部分 AI 代码,因此需要此披露声明。
“我的意思是,我基本上把原始代码的信息喂给它,提供我想要它覆盖的内容 ID,以便它在处理目标和相关逻辑时能生成代码,而我则研究如何复制横扫附魔的音效/粒子效果以及射线效果。最终是我把文件整合在一起,构建数据包并进行测试的。我要说的是,射线效果的实现其实是它给我提供的一个选项,用于解决如何只清除我与目标植物之间阻挡的植物,而不越界清除远处的植物(旧方法就是这样做的,我想做些不同的事情,因为击中射程边缘的目标不应清除远处的大量物体)” “它并没有完全自动生成文件,这一点我很确定,而且最终一切都是基于我的想法和输入。”
版本
支持 Java 版 1.21.5 - 26.3
兼容性
与任何同名文件或存在冲突的文件不兼容。
Description
Swords will cut the grass in front of you, along with other ground foliage blocks. Now comes with a sweep effect and sound.
Credit to Nanobot111 for designing the v2.0 and v3.0 updates (26.1 - 26.3) that rework the datapack structure, add more support for blocks like bushes and Nether stuff, and add the sweep effect and raycasting.

AI use in some outdated versions
v2.0 and v3.0 were coded by someone else who volunteered to help redesign it. Their code was very good and improved the quality of the project a lot in my opinion.
However, I don't want to be considered a vibecoder or have people lose trust in the quality of my work. For this reason, I remade the entire datapack myself, using my own variable names, filenames, file structures, and other changes.
Since the code wasn't bad, and it would be a waste to restart entirely from scratch, I did follow the code of v3.0 and reuse the same general structure. However, any place where I could change something without affecting the functionality (changing a scoreboard name, adding a new function to combine 4 commands, etc.), I tried to redo it in my own way, whatever makes sense to me and what I would do if I was making it with just the general concept of the system.
Now that the latest version for every available Minecraft version does not have substantially AI-generated code, I am removing the disclosure because it's no longer needed. If you would like to read the text, which contains some Discord messages about the AI code, read below. In addition, if you still don't believe I would go through all the trouble to rewrite the scoreboards, I attached an image of non-AI python code made during the development process to help in the process. I've made projects that require many times more repetition, Advanced Item Stats and the Pride Pearls resource packs being good examples (I made all the textures for 270 Pride Pearls resource packs within 24 hours, it's the upload process that's slowing me down because I find other things to do).
Python code

Old disclosure
Contains AI-generated code Nanobot111 used some AI during the creation of v2.0 and v3.0 updates. If you would like to use a version without AI-generated code, go to v1.0 (which supports all versions 1.21.5 - 26.3). I will add it to my list of goals to rewrite the new-version code myself, without the help of AI. Until then, this needs a disclosure because the latest versions for all 26.x versions uses some AI code.
"i mean i basically fed it information from the original, gave it the id's of the things i wanted it to cover so it could type up the objectives and such while i looked into how i could replicate the sweeping edge sound/particle effect and the ray effect. im the one that put the files together in the end and made the datapack and tested it as i went. i will say the actual implimentation of the ray was something it gave me as an option for ways to clear only the plants between me and the plant without overstepping its reach and clearing beyond it (the old method did this and i wanted to do something different since hitting something at the edge of my reach shouldnt clear a bunch of stuff that far away)" "it didnt generate files in their entirely i can say that much, and it was all based on my ideas and input in the end."
Versions
Supports Java Edition 1.21.5 - 26.3
Compatibility
Incompatible with anything with the same filenames and stuff.
下载 Better Grass Cutting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Grass Cutting
下载 Better Grass Cutting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Grass Cutting
下载 Better Grass Cutting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Grass Cutting
下载 Better Grass Cutting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Grass Cutting
下载 Better Grass Cutting
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Better Grass Cutting
添加了蕨类植物、大型蕨类植物
- 重制了 Nanobot111 遗留的“氛围代码”部分
- 完全重新设计了文件名等内容
- 更改了粒子与声音设置
- 保持了与旧版本相同的功能
- 光线追踪
- 扫掠粒子与音效
- 其他改进
- 制作人员:Nanobot111
感谢 Nanobot111
26.3
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧