TerraFirma Things
TerraFirma Things (tfcthings) 是一款适用于 Minecraft 1.21.1 的 NeoForge 模组,它为 TerraFirmaCraft 增添了攀爬装备、陷阱、远程工具、测量设备、研磨系统以及装饰性方块。
模组信息
- 模组 ID:
tfcthings
- Minecraft:
1.21.1
- NeoForge:
21.1.218
- TFC 版本:
4.1.0+
依赖与兼容性
- 必需: TerraFirmaCraft
- 加载器: NeoForge
- 可选: JEI, Jade, Curios API, TFC Cold Sweat, Amb
配置
通用配置文件位于 config/tfcthings-common.toml,包含以下内容:
- 各系统的总开关,允许用户禁用不需要的功能
- 绳桥和绳梯的最大长度
- 绳索和标枪鱼叉的系留/收回行为
- 陷阱/套索的行为及捕获/挣脱调整
- 磨刀石/精磨石/砂轮机的充能和时间设置
- 投石索调整(充能、倍率、弹药行为)
- 其他杂项设置
物品与方块指南
雪鞋
- 雪鞋可以消除雪地移动减速效果,并允许玩家走过粉雪。如果安装了 Cold Sweat 模组,雪鞋还会提供保暖加成。
- 有两种版本:一种用皮革靴子制作,另一种用登山靴制作,后者更耐用。
登山靴
- 登山靴可以消除高草和植物造成的移动减速效果。如果安装了 Cold Sweat 模组,它们会提供少量的保暖加成。
绳桥
- 可抛掷的绳桥,用于跨越间隙。
- 使用方法:向想要跨越的间隙上方抛出绳桥,并确保背包中有足够的桥段来覆盖该空间。
- 默认情况下,绳桥最多可覆盖 100 个方块的跨度。
绳梯
- 会自动向下延伸,直到接触实心方块或玩家用完所有梯段。
- 右键点击梯子顶部即可将其收回。
绳索标枪
- 绳索标枪允许玩家在投掷后收回标枪。如果击中实体,收回标枪时也会将受击实体拉向玩家。
- 最大绳索长度可配置。
- 可用从铜到彩色钢材的任何标枪制作。
钩头标枪
- 钩头标枪允许玩家将标枪投掷并锚定在任何实心方块上。一旦标枪被锚定,玩家可以沿着绳索荡过去或攀爬上去。
- 右键点击可沿绳索攀爬,Shift+右键点击可收回标枪。
套索陷阱 (Snare)
- 套索陷阱有两种模式:第一种模式会捕获任何走入其中的小型实体;第二种模式在陷阱放置诱饵后生效,会在生物群系本地生成并捕获生物。
- 套索陷阱可以用任何谷物或种子作为诱饵。
熊 trap
- 熊 trap 是一种陷阱,会捕获任何走入其中的实体,造成伤害并给予短暂负面状态。
- 捕食者有小概率挣脱陷阱。
- 使用铲子右键点击可以将陷阱埋入泥土、沙子或砾石中。
渔网
- 渔网允许玩家在水面上放置一张网,捕获游入网中的任何鱼类。
- 使用方法是在水的两侧放置两个渔网锚点,然后用渔网右键点击锚点。
- Shift+右键点击锚点可将渔网收起并收集捕获的鱼。
皇冠
- 皇冠是可供玩家佩戴的装饰性物品。可以用金或铂金以及任何宝石制作。
- 如果安装了 Curios API 模组,它们可以放置在头部槽位。
- 铂金皇冠可制作,但需要 TFC Metallum 等次要模组为游戏添加铂金。
- 创意模式下存在额外的皇冠,用于废弃的 TFC 宝石;如果其他模组将这些宝石重新加入游戏,也可以进行制作。
宝石展示架
- 宝石展示架允许玩家展示他们辛苦获得的宝石。
- 每个展示架可容纳三颗宝石,每种宝石类型在展示架上都有独特的模型。
- 支持
c:gems 命名空间下注册的任何宝石。
- 手工制作的宝石模型包括:玛瑙 (Agate)、紫水晶 (Amethyst)、绿柱石 (Beryl)、钻石 (Diamond)、祖母绿 (Emerald)、石榴石 (Garnet)、碧玉 (Jasper)、玉 (Jade)、青金石 (Lapis)、海晶结晶 (Prismarine Crystals)、黄铁矿 (Pyrite)、石英 (Quartz)、红宝石 (Ruby)、蓝宝石 (Sapphire)、托帕石 (Topaz) 和电气石 (Tourmaline)。
- 支持为任何宝石类型添加自定义宝石模型和纹理。
测量锤
- 测量锤有两种模式:右键点击方块会告诉玩家该方块是否安全可挖掘,或者是否会引发坍塌。次要模式通过 Shift+右键点击激活,会告诉玩家该区域存在的岩层类型。
- 测量锤可用任何金属制作,高级金属能提供更多信息。
投石索与弹药
- 投石索是一种前期远程武器。
- 任何散落的岩石都可以用作弹药,更高阶的弹药可以在铁砧上用铁或钢制作。
- 弹药类型包括重型、轻型、散射型和火焰型。
谷堆
- 谷堆是一种存储方块,最多可容纳 128 个单一类型的谷物物品。
- 存储在谷堆中的谷物具有减缓腐烂率的增益,使其保存时间更长;如果谷物被阳光遮挡,腐烂减缓增益会更显著。
- 相同类型的堆叠谷堆会相互补给,也可以通过右键点击或在谷堆上方丢弃谷物物品来添加谷物。
- 可以通过修改
grain_pile_items 标签来添加新的谷物类型。
- 支持为任何谷物类型添加自定义纹理。如果未找到自定义纹理,将回退至干草捆纹理。
研磨与砂轮
- 打磨是一项机制,允许玩家为任何工具或武器施加锋利增益,但会消耗一定的耐久度。
- 经过打磨的工具挖掘速度更快,而经过打磨的武器会造成更多伤害。
- 打磨共有三个不同的等级,需要通过更高等级的打磨工具来解锁。
- 砥石和石英磨石属于最低等级,仅支持 64 次充能并提供较小的增益。
- 钢制砥石和钢制磨石支持 128 次充能并提供中等增益。
- 钻石砥石和钻石磨石支持 256 次充能并提供最高增益。
- 增益效果和充能次数可由用户配置,但默认情况下它们分别对应效率(Efficiency)以及锋利度 I、III 和 V。
针对模组/整合包开发者
为 TerraFirmaThings 添加自定义宝石与谷物
这是为宝石展示架添加自定义宝石支持以及在谷物堆中添加自定义谷物的快速指南。
简而言之:
- 宝石通过基于物品的模型查找工作
- 谷物通过基于物品的模型查找加上基于分层的谷物堆模型工作
- 如果未找到自定义模型,TerraFirmaThings 会安全回退,而不会崩溃
第一部分 — 宝石展示架的自定义宝石
工作原理
当将宝石放入宝石展示架时,TerraFirmaThings 会查看展示架中实际物品栈并尝试寻找匹配的宝石展示模型。
查找顺序如下:
- 来自宝石物品自身命名空间的自定义模型
- TerraFirmaThings 内置的已知宝石回退模型
- 普通物品渲染回退
因此,如果你的宝石拥有自己的宝石展示模型,该模型将被使用。
如果没有,展示架将回退到普通物品模型,而不会出错。
它查找的模型路径
对于展示的宝石物品,TerraFirmaThings 会获取物品 ID 并使用物品路径的最后一段。
{item_namespace}:block/gem_display/gems/{item_path_last_segment}
第二部分 – 谷物堆的自定义谷物
TerraFirma Things
TerraFirma Things (tfcthings) is a NeoForge mod for Minecraft 1.21.1 that extends TerraFirmaCraft with traversal gear, traps, ranged tools, surveying equipment, sharpening systems, and decorative blocks.
Mod Info
- Mod ID:
tfcthings
- Minecraft:
1.21.1
- NeoForge:
21.1.218
- TFC Version:
4.1.0+
Dependencies and Compatibility
- Required: TerraFirmaCraft
- Modloader: NeoForge
- Optional: JEI, Jade, Curios API, TFC Cold Sweat, Amb
Configuration
Common config is under config/tfcthings-common.toml and includes:
- Master toggles for each system allowing the user to disable unwanted features
- Rope bridge and rope ladder max lengths
- Rope and hook javelin tether/retract behavior
- Trap/snare behavior and catch/breakout tuning
- Whetstone/honing/grindstone charge and speed settings
- Sling tuning (charge, multipliers, ammo behavior)
- Other misc settings
Item and Block Guide
Snow Shoes
- Snow shoes negate slowdown from snow and allow the player to walk over powdered snow. If Cold Sweat is installed, the snow shoes provide a warmth bonus.
- Two versions, one crafted with leather boots and a more durable version crafted with hiking boots.
Hiking Boots
- Hiking boots negate slowdown from tall grasses and plants. If Cold Sweat is installed, they provide a small warmth bonus.
Rope Bridge
- Throwable rope bridge that will bridge a gap.
- To use, throw a rope bridge with across the gap you want to bridge and have enough bridge bundles in your inventory to cover the space.
- Bridge can cover up to 100 blocks by default.
Rope Ladder
- A rope ladder that will automatically extend downwards until it reaches a solid block or the player urns out of segments.
- Shift right-click the top of the ladder to pick it back up.
Rope Javelin
- The rope javelin allows the player to retrieve javelins after throwing them. If an entity is hit, pulling the javelin back will also pull the hit entity towards the player.
- Max rope length is configurable.
- Craftable with any javelin from copper through the colored steels.
Hook Javelin
- Hook javelin allows the player to throw and anchor the javelin in any solid block. Once a javelin is anchored, the player can swing from the rope or climb up it.
- Right-click to climb the rope and shift-right-click retrieve the javelin.
Snare
- The snare has two modes, the first mode will catch any small entity that walks into it, while the second mode works when the trap is baited and will spawn and capture a mob local to the biome.
- Snare can be baited with any grain or seeds.
Bear Trap
- The bear trap is a trap that will capture any entity that walks into it, dealing with damage and giving them temporary debuffs.
- Predators have a small chance to break free of the trap.
- The trap can be buried in dirt, sand, or gravel by right-clicking on it with a shovel.
Fishing Net
- The fishing net allows the player to place a net across a body of water and catch any fish that swims into its path.
- It works by placing to fishing net anchors on opposite sides of the water and then clicking on the anchors with nets.
- Shift click the anchor again to haul in the net and gather the fish.
Crowns
- Crowns are decorative items that can be worn by the player. They can be crafted from gold or platinum and any gem.
- If Curios API is installed, they can be placed on the head slot.
- Platinum crowns are craftable but require a secondary mod such as TFC Metallum to add platinum into the game.
- Extra crowns exist in creative mode for depreciated TFC gems but are craftable if those gems are added back into the game by another mod.
Gem Display
- The gem display allows the player to display their hard-earned gems.
- Each display can hold three gems, and each gem type has a unique model when it is placed on the display.
- Supports any gem registered in under c:gems
- Handcrafted gem models exist for Agate, Amethyst, Beryl, Diamond, Emerald, Garnet, Jasper, Jade, Lapis, Prismarine Crystals, Pyrite, Quartz, Ruby, Sapphire, Topaz, and Tourmaline.
- Supports adding custom gem models and textures for any gem type.
Surveyor's Hammer
- The surveyor's hammer has two modes, right-clicking a block will tell the player if it is safe to mine or if it can trigger a collapse. The secondary mode is activated by shift right-clicking and will tell the player what rock layers are found in the area.
- The hammer can be crafted from any metal with higher tier metals giving more information.
Sling and Ammunition
- The sling is an early game ranged weapon.
- Any loose rock can be used as ammunition, higher tier ammo's can be crafted with iron or steel in an anvil.
- Ammo types include heavy, light, scatter, and fire.
Grain Pile
- The grain pile is a storage block that can hold up to 128 grain items of a single type.
- Grain stored in the pile has a buff to the decay rate, making it last longer, if the grain is sheltered from the Sun, the decay buff is higher.
- Stacked grain piles of the same type will feed into each other, grain can also be added to the piles by right-clicking on them or dropping grain items ontop of them.
- New grain types can be added by modifying the grain_pile_items tag.
- Supports custom grain textures for any grain type. Will fall back to haybale texture if no custom texture is found.
Sharpening and Grindstones
- Sharpening is a mechanic that allows the player to apply a sharpness buff to any tool or weapon at the cost of some durability.
- Sharpened tools will mine fast while sharpened weapons will deal more damage.
- There are three different tiers to sharpening that are accessed by higher tier sharpening tools.
- Whetstones and quartz grindstones are the lowest tier, only allowing 64 charges and a small buff.
- Honing steels and steel grindstones allow 128 charges and a medium buff.
- Diamond honing steels and diamond grindstone allow 256 charges and the highest buff.
- Buffs and charges are user-configurable, but by default they function as Effencicy and Shaprness 1, 3, and 5 respectively.
For Mod/Pack Devs
Adding Custom Gems and Grains to TerraFirmaThings
This is the quick guide for adding support for custom gems on the gem display and custom grains in grain piles.
The short version is simple:
- gems work by item-driven model lookup
- grains work by item-driven model lookup plus layer-based grain pile models
- if a custom model is not found, TerraFirmaThings falls back safely instead of crashing
Part 1 — Custom Gems for the Gem Display
How it works
When a gem is placed in the gem display, TerraFirmaThings looks at the actual item stack in the display and tries to find a matching gem-display model.
The lookup works in this order:
- Custom model from the gem item’s own namespace
- Built-in TerraFirmaThings fallback for known gems
- Normal item rendering fallback
So if your gem has its own gem-display model, that model will be used.
If it does not, the display will fall back to the normal item model instead of breaking.
The model path it looks for
For a displayed gem item, TerraFirmaThings takes the item id and uses the last part of the item path.
{item_namespace}:block/gem_display/gems/{item_path_last_segment}
Part 2 – Custom Grains for the Grain Pile
评论 0
登录后参与评分
还没有评论,来抢沙发吧