胡萝卜钓竿 Carrotrod|饥荒联机版

灵感和贴图来自Minecraft的胡萝卜钓竿。
制作需要一个胡萝卜和一个淡水钓竿,具有和胡萝卜一样的新鲜度,腐烂时返还淡水钓竿。
基本属性等同于行者手杖,加速25%,攻击17。
可以通过把食物挂在钓竿上的方式,达成骑牛时喂牛的效果,方便了前期驯牛。
这是我的第一个物品模组,代码部分较为粗糙,其他功能有待日后实现。
Inspired by Minecraft's carrot on a stick.
Making requires a carrot and a fishing rod, which have the same freshness as carrots, and will be returned to the fishing rod when it rots.
The basic attribute is the same as the cane. It can speed up by 25% and has 17 damage.
You can feed the beefalo while riding by put food on the carrot rod.
This is my first item mod. The code is rough, and other functions may be implemented in the future.
TODO:
1.通过消耗新鲜度的方式,让牛跑的更快。
2.手持胡萝卜钓竿时,能吸引周围的猪人、兔子等。
1. Let beefalo run faster by consuming freshness.
2. When holding a carrot rod, it can attract pigs, rabbits, etc. around.
Ref:
[1]https://zhuanlan.zhihu.com/p/570453868 跟着longfei大佬的教程做一遍,获益匪浅。
[2]https://steamcommunity.com/sharedfiles/filedetails/?id=2887669202 模组的支架来自于蝴蝶手杖。
[3]https://steamcommunity.com/sharedfiles/filedetails/?id=2732158206 我非常喜欢的人物模组,借鉴了给予物品的代码。
[4]https://steamcommunity.com/sharedfiles/filedetails/?id=2839181368 骑牛的判定。