注册 | 登录

游侠NETSHOW论坛





查看: 117|回复: 1
打印 上一主题 下一主题

[原创] 自定义武器 [复制链接]

帖子
10
精华
0
积分
5
金钱
110
荣誉
0
人气
0
评议
0
跳转到指定楼层
楼主
发表于 2025-7-25 09:49:58 |只看该作者 |倒序浏览
一:Mods文件下建个文件,比如shui文件夹。二:shui下建一个ModConfig.json文件,记事本内编辑内容如下:
{
        title: "judgment",
        desc: " judgment",
        uid: "10102636",
        visibility: "2",
        creator: "shui",
        tags: "test,items,locations",
}
三:shui文件下再建一个Items.txt。用记事本添加如下代码:
items.entity.longbow.parents=items.base.weapon,items.base.level1,items.base.common
items.entity.longbow.tags.bow=true
items.entity.longbow.properties.damage=1500
#伤害:1500
items.entity.longbow.properties.attackspeed=150
#攻击速度:150
items.entity.longbow.properties.range=200
#范围:200
items.entity.longbow.properties.accuracy=1560
#命中:1560
items.entity.longbow.properties.attacksound=bow_attack
items.entity.longbow.properties.attacksound=bow_attack
items.entity.longbow.properties.prefab=compositebow
items.entity.longbow.properties.survivorattackanimation=SurvivorBow
items.entity.longbow.properties.attackanimation=ArrowPrefab
items.entity.longbow.properties.hand=left
items.entity.longbow.effect.vision=20
#视野范围+20
items.entity.longbow.effect.walkspeed=20
#移动速度+2000%
items.entity.longbow.effect.evade=20
#闪避+2000%
items.entity.longbow.effect.nutrition=10
#最大营养1000%
items.entity.longbow.effect.health=10
#最大生命1000%
items.entity.longbow.effect.energy=10
#最大能量1000%
items.entity.longbow.effect.actiongroup_mine=200
#采矿速度+20000%
items.entity.longbow.effect.actiongroup_craft=5
#制作速度加+500%
items.entity.longbow.effect.actiongroup_build=10
#建设速度+1000%
#items.entity.longbow.effect.actiongroup_research=10
#研究速度+1000%
items.entity.longbow.effect.actiongroup_search=20
#搜刮速度+2000%
items.entity.longbow.effect.awarenessadd=-1
# 痕迹减1
items.entity.longbow.effect.taskforcespeed=20
# 地图速度+2000%
items.entity.longbow.effect.actiongroup_quarry=100
# 采石+10000%
items.entity.longbow.effect.actiongroup_agri=20
# 农业+2000%
items.entity.longbow.effect.actiongroup_chop=20
#劈砍速度+2000%
items.entity.longbow.effect.actiongroup_rituals=10
#宗教仪式速度+1000%
#items.entity.longbow.effect.actiongroup_occultresearch=10
#神秘学研究+1000%
items.entity.longbow.effect.hungerrate=-10
#饥饿速度-1000%
items.entity.longbow.effect.energydrain=-10
#疲劳速度-1000%
items.entity.longbow.effect.healrate=50
#自然愈合速度+5000%
items.entity.longbow.effect.workspeed=20
#工作速度+2000%
items.entity.longbow.effect.actiongroup_train=20
#训练速度+2000%
items.entity.longbow.effect.defense=20
#护甲+2000%
items.entity.longbow.effect.scoutrange=2
#地图侦查范围 +2
crafting.entity.longbow.amount=1
crafting.entity.longbow.work=120
#花费工作时间
crafting.entity.longbow.research=bowmaking
crafting.entity.longbow.station.workbench=1
crafting.entity.longbow.priority=5
crafting.entity.longbow.costs.wood=6
#制作材料木材成本
crafting.entity.longbow.costs.arrows=6
#制作材料箭头成本


#表示这行代码不会执行。注释作用。



使用道具 举报

帖子
10
精华
0
积分
5
金钱
110
荣誉
0
人气
0
评议
0
沙发
发表于 2025-7-25 09:51:07 |只看该作者
这是复合弓,可以早期拥有快速整理家园。

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-23 14:05 , Processed in 0.308599 second(s), 13 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到