一个试图让树叶在砍伐树木后腐烂的愚蠢模组
我根据第一个版本(0.0.1)的逻辑进行了修改,现在当你砍树时(仅当砍下树上最后一块原木时),它会立即使所有树叶腐烂。
但它有一个副作用:如果任何树叶旁边有一块原木,那么当该原木被破坏时,它周围的所有树叶也会被破坏。因此,如果你在使用此模组期间在建筑中使用了树叶,请小心。
--[[ 这部分是我在制作 0.0.1 版本时的内容:
我不理解决定树叶腐烂的算法,所以我添加了其他条件来使其腐烂:
当玩家破坏树叶方块时:检测该方块四周的树叶并将其全部破坏
当相邻方块更新时:检测该方块四周的方块是否被破坏,如果它们不是树叶或木头,则立即破坏(例如被空气包围等情况)
我知道我有拼写错误
--]]
安装方式与单人游戏相同,只需下载客户端 zip 文件,并像添加其他 jarmod 一样将其添加到游戏中([prismlauncher] 擅长管理 jarmod)。
如果要在服务器上使用该模组,可能只需要将服务器 zip 中的 class 文件添加到服务器的 jar 文件中即可,因为这是服务端代码,只有服务器需要它,客户端不需要。
感谢 [KilobyteNight],这个人很酷,并且由于他们制作了关于 [RetroMCP] 的 [视频],我学到了可以用它为旧版本制作 jarmod。
prismlauncher
KilobyteNight
视频
RetroMCP
(它说支持 Markdown,看来我被骗了)
silly mod that tries to make leaves decay when tree cut
i changed logic according to first(0.0.1) version so now it just decays all leaves when you cut tree (only at last log on tree)
but it kinda has one sideeffect that when there is one log near any leaf it breaks all leaves near that log when broken so be carefull if you are using leaves on your buildings when this mod is installed
--[[ this part was when i did version 0.0.1:
i didn't understand the algorithm that decides to leaf decay so i added other conditions to make it decay:
when leaf block gets broken by player: detect leaves every side of the block get breaken, break them too
when neighbor block updates: detect blocks every side of the block get breaken and if they are not leaf and wood, break immeditally (like getting sourrunded by air etc)
ik i made typos
--]]
installition is like for singleplayer, just download client zip and add it to game as any other jarmod ([prismlauncher] is good at managing jarmods)
if gonna use on server, probably adding class file from server zip to server jar file is enough, since it's server-side code, only server needs it and client doesn't need it ig
shotout to [KilobyteNight], that person is cool and thanks to them that made a [video] about [RetroMCP], i learned i can make jarmods with that for old versions
prismlauncher
KilobyteNight
video
RetroMCP
(it said it was supporting markdown, seems like i got lied)
评论 0
登录后参与评分
还没有评论,来抢沙发吧