Link: Steam Workshop
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:
- Let beefalo run faster by consuming freshness.
- 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 骑牛的判定。