你好!
欢迎使用 Traveller's Gear!
这是一个旨在为游戏增添轻度 RPG 风格的模组。它被设计用于与具有类似风格的模组(如 Baubles、Tinker's Construct 和 Mariculture)进行交互,将它们的扩展库存以及本模组的库存整合到一个单一的图形用户界面中。本模组添加了 4 个新槽位,分别用于斗篷、护肩、护臂以及标题卷轴,后者会在玩家头顶显示特定的荣誉头衔。
API 的设计允许其他模组开发者访问扩展库存并添加自定义物品。也可以通过 IMC 消息以更为“ hacky ”的方式实现这一点。请仔细查看主类 TravellersGear 以了解具体实现方法。
库存:
这是库存 GUI:
你可以通过点击物品栏角色窗口左上角的小书本图标来打开它,或者使用快捷键。默认快捷键是小键盘上的 7(因为本意是让你使用按钮),但该快捷键可以重新绑定。
其槽位会根据已安装的模组而变化,但在最佳配置下,你将看到以下内容:
盔甲、Baubles 饰品、Mariculture 珠宝、Tinkers Construct 手套和背包,以及 Traveller's Gear 物品。
右侧页面包含一些统计数据:生命值、护甲值、速度、伤害值,如果安装了 Thaumcraft,还会显示 Vis 折扣。
填满后的库存如下所示。这里可能不熟悉的物品应该是斗篷(顶部中间)、护肩(右侧,从上往下数第二个)、护臂(右侧,从上往下数第四个)以及标题卷轴(左下角)。
本模组添加的物品本身没有附加任何实际能力,但斗篷像皮革盔甲一样可以进行染色。
标题卷轴是一种虽然可以制作,但最好在地牢或要塞宝箱中找到的物品。这些宝箱中的标题卷轴会附带随机生成的头衔,佩戴后会在玩家名字正下方显示该头衔。你也可以在装备库存中看到你的用户名下方的头衔。
盔甲架:
顾名思义,它用于展示盔甲。
但它不仅能展示盔甲,还能展示你装备库存中的几乎所有物品!
通过这个界面,你可以轻松地在你自己的装备和架子上的装备之间切换,只需对物品按住 Shift 键点击即可。
“样式”按钮允许你在 4 种样式之间切换:渲染 Baubles、渲染 Traveller's Gear、同时渲染两者,或不渲染任何内容。
你还可以单独禁用头盔、胸甲、护腿、靴子和底板。
架子会渲染托盘中放置的 Baubles 和其他装备,并根据你放置的物品调整它们的大小。
示例:
仅有 Baubles
Baubles、手套和护臂
另一个功能:
为了完善 RPG 体验,你现在可以在聊天中链接物品,向服务器上的所有玩家广播它们。要做到这一点,只需在装备库存中按住 CTRL 键并右键点击物品即可。
致各位模组开发者的一句话:
这个模组专门设计为可扩展的。因此,它提供了 API 以及 IMC 支持。
你可以使用这些机制注册自定义的 Traveller's Gear 物品,从而制作你自己的斗篷、护肩,甚至是标题物品。
你可以使用 API 并为你的物品实现 ITravellersGear 接口,或者发送如下 IMC 消息:
FMLInterModComms.sendMessage("TravellersGear", "registerTravellersGear_0", new ItemStack(YOUR_ITEM));
registerTravellersGear_0 是命令,其中 0 代表物品所在的槽位。0 对应斗篷,1 对应护肩,2 对应护臂,3 对应标题卷轴。
当你这样注册时,我的 IMC 处理器会检查你的物品类是否存在以下三个方法:
onTravelGearTick(EntityPlayer, ItemStack);
onTravelGearEquip(EntityPlayer, ItemStack);
onTravelGearUnequip(EntityPlayer, ItemStack);
如果找到其中任何一个,它们将在适当的时候被调用。
如果使用 API 中的接口,则必须实现这些方法。
常见问题解答 (F.A.Q.):
问:“‘Traveller's Gear’不是 Tinker's Construct 的盔甲吗?”
答:“嗯,是的。不过,我的模组曾经是几个月前我正在开发的一个更广泛的 RPG 模组的一部分,名为‘Traveller's RPG’,因为它旨在让你在 Minecraft 中过上更像游牧民族的生活。我从未发布过它,但 mDiyo 发布了,他显然决定采用一个相似的名字。英雄所见略同!:D”
问:“天哪!完全是抄袭 Baubles!”
答:“除了这根本不是一个问题之外:不是。这是一个旨在与 Baubles 良好配合的模组,而不是取代它或搭它的顺风车。它只是增加了 3 个非常适合 RPG 环境的物品,并为 Azanor 的出色模组提供了广泛的支持。如果你不喜欢我试图与之协作,那就不玩吧。”
问:“你能添加 [某物品] 吗?”
答:“不能。但你可以!学会做模组,并随意使用我的 API 来添加你自己的 RPG 物品!”(说真的。没那么难。看看 Pahimar 的教程吧 ;D )
问:“你的物品什么都不做。”
答:“我知道。它们本该如此。它们仅仅是占位符,旨在演示哪些物品适合放入哪些槽位。然而,它们已在 OreDictionary 中注册,以便我仍在大力开发的另一个模组将来可以在配方中使用它们。”
问:“我可以把它用在整合包里吗?”
答:“绝对可以!越多的人能享受我的模组,我就越开心!^^
许可证及其他有趣的内容:
本模组为开源项目,可在 GitHub 上找到:
欢迎查阅我的代码,甚至借鉴其中部分代码,但请遵守 Wheaton 法则:“不要当混蛋”。如果你使用了我的代码,请务必告知他人其来源。
Minecraft 属于 Mojang(或许还有 Microsoft),我对其不主张任何权利,诸如此类。
Baubles 是 Azanor 的知识产权。
Mariculture 是 joshie 的知识产权。
Tinkers' Construct 以及我的网络代码的基础部分由开发团队“SlimeKnights”制作。
在此向所有上述提及的人,以及“Skype 群友们”致以诚挚感谢,感谢你们的批评与创意。
祝游玩愉快!
Hey there!
Welcome to Traveller's Gear!
This is a mod created to add a light RPG-ish feel to the game. It's designed to interact with mods that give a similar feel, namely Baubles, Tinker's Construct and Mariculture, incorporating their extended inventories aswell as its own into one single GUI. This mod adds 4 new slots, for cloak, pauldron, vambraces and a title scroll which displays certain honorary titles above the player's head.
The API is designed to allow other modders to acces the extended inventory and add their own custom items. This can also be done in a more "hacky" way via IMC messages. Take a good look at the main TravellersGear class to see how it's done.
The Inventory:
This is the Inventory GUI:
It is opened by either clicking on the little book icon in the top left of your character window in the inventory, or by using the keybinding. The keybinding is Numpad 7 by default (since you're really supposed to use the button), but can be rebound.
It's slots change depending on what mods are installed, but at optimum, this is what you'll see:
Armor, Baubles, Mariculture Jewelry, Tinkers Construct Glove and Knapsack and the Traveller's Gear items.
The page on the right has a few statistics, health, armor, speed, damage and with Thaumcraft installed, Vis discounts.
The fully filled inventory looks like this. The Items that should be unfamiliar here should be the cloak (top middle) the pauldrons, (right, second from the top), vambraces (right, fourth from the top) and the title scroll (bottom left).
The items added by this mod have no actual abilities applied to them, but the cloak is colourable like leather armor would be.
The title scroll is an item that, while it can be crafted, is best found in dungeon or stronghold chests. Those found in these chests have a random title added to them, and when worn, will display that title above the players head, just below their name. You can also see your title below your username in the gear inventory.
The Armorstand:
It does what it says, it displays armor.
But not only armor, but almost every item in your gear inventory!
With this interface you can easily switch between your own equipment and that on the stand, simply by shift clicking the items.
The "Style" button allows you to switch between 4 styles: Rendering Baubles, Traveller's Gear, both, or none at all.
You can also disable helmet, chestplate, leggings, boots and the floorplate seperately.
The stand will render deposited Baubles and other gear in the tray, and will size them according to what you have deposited
Example:
Just Baubles
Baubles, Glove and Vambraces
Another Feature:
And to round up the RPG feel, you can now link Items in chat, broadcasting them to all players on the server. To do this, simply hold down CTRL and rightclick the item while in the gear inventory.
A note to my fellow modders:
This mod is specifically designed to be expanded upon. Therefore it has an API aswell as IMC support.
You can register custom Traveller's Gear Items with these, allowing you to make your own Cloaks and Pauldrons, or even Title Items.
Either use the API and implement ITravellersGear on your item, or send an IMC message like this:
FMLInterModComms.sendMessage("TravellersGear", "registerTravellersGear_0", new ItemStack(YOUR_ITEM));
registerTravellersGear_0 is the command, where 0 represents the slto the Item will fit in. 0 for cloaks, 1 for pauldrons, 2 for vambraces, 3 for title scrolls.
When you register like this, my IMC handler will check your item class for three methods:
onTravelGearTick(EntityPlayer, ItemStack);
onTravelGearEquip(EntityPlayer, ItemStack);
onTravelGearUnequip(EntityPlayer, ItemStack);
Should any of these be found, they will be called at the apropriate instances.
When using the interface from the API, you are forced to implement these.
F.A.Q.:
Q: "Isn't 'Traveller's Gear' the Tinker's Construct Armor?"
A: "Well yes. However, my mod used to be part of a more expansive RPG mod I was working on a few months ago, dubbed 'Traveller's RPG', because it was supposed to have you live more of a nomad's life in Minecraft. I never published, but mDiyo did, and he apparently decided to go for a similar name. Great minds think alike! :D "
Q: "ZOMFG! TOTAL BAUBLES RIPOFF!"
A: "Apart from that not being a question: No. This is a mod designed to work along well with baubles, not to replace it and not to leech of its success. It just adds 3 more items that fit well in an RPG environment and provides extensive support for Azanor's fantastic mod. If you don't like that I'm trying to work along with it, don't play it."
Q: "Can you add [some item] ?"
A: "Nope. But you can! Learn to mod and feel free to use my API to add your own RPG items!" (Seriously. It's not that hard. Take a look at Pahimar's tutorials ;D )
Q: "You're items don't do anything."
A: "I know. They are supposed to be like that. They are simply placeholders, designed to demonstrate what item fits into what slot. However, they are registered in the OreDictionary so that another mod I'm still heavily working on can use them in recipes in the future."
Q: "Can I use this in a modpack?"
A: "Absolutely! The more people get to enjoy my mods, the happier I am!^^
License and all that fun stuff:
The mod is open source and can be found on Github:
Feel free to look at my code, and even take parts of it, but please follow Wheaton's Law and "Don't be a douche". If you use my code, be so kind and tell people where you got it
Minecraft belongs to Mojang (or Microsoft, I guess), I claim no rights to it, blah, blah
Baubles is intelectual property of Azanor
Mariculture is intelectual property of joshie
Tinkers Construct and the base of my networking code were made by the development team "SlimeKnights"
A big thanks goes to all those mentioned before, aswell as "The Skype Guys" for critics and ideas
Enjoy!
下载 Traveller's Gear
下载 Traveller's Gear
下载 Traveller's Gear
下载 Traveller's Gear
下载 Traveller's Gear
下载 Traveller's Gear
下载 Traveller's Gear
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Traveller's Gear
下载 Traveller's Gear
下载 Traveller's Gear
- 在 GUI 中添加了合成网格
- 修复了默认 GUI 设计以包含合成网格
- 修复了命令
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
可定制的鞘翅模组,支持装饰纹饰、旗帜图案等更多功能!
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
评论 0
登录后参与评分
还没有评论,来抢沙发吧