Hackosaur 模组
好吧,这是我为 Minecraft 1.21.1 制作的模组。里面有一些可以执行特定操作的物品。
你可以滑翔、
挖掘矿石并偶尔获得额外掉落物,
还能向目标发射闪电。挺酷的,我想。
构建
构建完成后,jar 文件位于:
build/libs/Hackosaur-1.0.0.jar
如果你想自己构建并运行它:
# 构建项目
./gradlew.bat clean build
# 使用模组运行游戏
./gradlew.bat runClient
# 或者运行服务器(我不太确定)
./gradlew.bat runServer
安装
你需要从 下载适用于 1.21.1 的 Fabric 加载器。
还需要获取 Fabric API 并将其放入你的 mods 文件夹中。
然后将 Hackosaur jar 文件放入 .minecraft/mods/ 目录即可。
内容介绍
hackclub 旗帜
/give @s hackosaur:hackclub_banner
红白相间的旗帜,出于某种原因你一次只能持有 1 个。
glitch 镐子
/give @s hackosaur:glitch_pickaxe
紫色镐子,钻石等级。有 25% 的概率复制矿石掉落物,这有点破坏平衡,但无所谓。
挖掘时会在控制台打印大量调试信息。
飞行旗
/give @s hackosaur:flag_of_flight
下落时手持此物品可缓慢滑翔。
此外,你不会受到摔落伤害,这点很不错。
闪电法杖
/give @s hackosaur:lightning_staff
右键点击并向准星指向的位置发射闪电(最远 50 格)。
拥有 64 次使用次数和 3 秒冷却时间。
合成配方:钻石 + 2 金锭 + 2 木棍
小心别炸了你的房子哈 lol
调试信息
由于我想观察运行情况,控制台会有很多刷屏输出:
如果觉得烦,你可能可以移除这些内容。
已知问题
纹理比较基础,但能正常工作。
还没有音效。
闪电法杖可能过于强大,我不确定。
功能验证
- Java 21 ✓
- Minecraft 1.21.1 ✓
- 所有物品均有纹理且可合成 ✓
- glitch 镐子矿石复制 ✓
- 飞行旗滑翔 ✓
- 闪电法杖 ✓
测试方法
只需运行 ./gradlew.bat runClient 并进行体验。
如果你修改了代码,请使用 ./gradlew.bat build 重新构建。
就这样吧,祝玩得开心
Hackosaur Mod
ok so this is my minecraft mod for 1.21.1. got some items that do stuff
you can glide around,
mine ores and sometimes get extra drops,
and shoot lightning at things. pretty cool i guess
building it
the jar file ends up here after you build:
build/libs/Hackosaur-1.0.0.jar
if you wanna build and run it yourself:
# build it
./gradlew.bat clean build
# run the game with the mod
./gradlew.bat runClient
# or run a server idk
./gradlew.bat runServer
installing
you need fabric loader for 1.21.1 from
also grab fabric api and put it in your mods folder
then just drop the Hackosaur jar in .minecraft/mods/ and you're good
what's in it
hackclub banner
/give @s hackosaur:hackclub_banner
red and white banner thing, you can only have 1 at a time for some reason
glitch pickaxe
/give @s hackosaur:glitch_pickaxe
purple pickaxe, diamond tier. has a 25% chance to dupe ore drops which is kinda broken but whatever
it prints a bunch of debug stuff to console when you mine
flag of flight
/give @s hackosaur:flag_of_flight
hold it while falling and you glide down slowly
also you don't take fall damage which is nice
lightning staff
/give @s hackosaur:lightning_staff
right click and it shoots lightning where you're looking (up to 50 blocks away)
has 64 uses and a 3 second cooldown
craft it with: diamond + 2 gold ingots + 2 sticks
be careful not to blow up your house lol
debug stuff
there's a ton of console spam because i wanted to see what was happening:
- when items get registered
- every time you mine something
- lightning strikes
- gliding
you can probably remove that stuff if it's annoying
issues
textures are kinda basic but they work
no sounds yet
lightning staff might be too op idk
what works
- java 21 ✓
- minecraft 1.21.1 ✓
- all items have textures and can be crafted ✓
- glitch pickaxe ore duplication ✓
- flag of flight gliding ✓
- lightning staff ✓
testing it
just run ./gradlew.bat runClient and mess around
if you change something rebuild with ./gradlew.bat build
that's it i guess, have fun
评论 0
登录后参与评分
还没有评论,来抢沙发吧