最MC论坛
标题: [插件教程]PvPGun-在服务器里创造自己的枪械! [打印本页]
作者: Wikiworker 时间: 2015-12-5 22:30
标题: [插件教程]PvPGun-在服务器里创造自己的枪械!
PvPGunPlus插件简介&安装教程
顾名思义,这款插件是一个关于枪械的插件,使用这个插件可以不使用模组来达到枪械的效果,不过由于一些原因,这个插件也有一些缺点。
缺点1:仅支持1.5-1.7
缺点2:设置的枪械会吞数据(例如设置物品1为RPG,则服务器内所有玩家获得的石头都会有RPG的效果
缺点3:这鬼东西可以无视PVP限制,如果要强制关闭只能修改properties文件
插件下载 http://pan.baidu.com/s/1c1tPehE
安装方法就不说了,如果不会安装插件的话后面的教程也意义不大了
枪械自定义教程2L
作者: Wikiworker 时间: 2015-12-5 22:31
[这才是重头戏]枪械自定义教程(超长代码行高能预警)
首先我们打开文件夹PvPGunPlus/guns
找到其中的任意文件(或新建无拓展名文件)
使用记事本/Notepad(推荐)打开- //The Name of the Gun 枪械显示的名字,支持颜色代码
- gunName=&aAK-47
- //The Item ID of the GUN 枪械物品ID
- gunType=277
- //The Item ID of the ammo that the gun uses 枪械弹药ID
- ammoType=295
- //The amount of ammo your gun needs 每次射击需要的弹药数量
- ammoAmtNeeded=1
- //The delay (in ticks) before you can shoot again 射击速度(也就是每多少tick可以射击一次,1秒=20tick)
- bulletDelayTime=7
- //The reloading sound mechanism (NORMAL, PUMP, BOLT, INDIVIDUAL_BULLET) 换弹音效
- reloadType=NORMAL
- //The amount of bullets your gun fires per burst 子弹射出后分裂数量(霰弹枪需要这个设置)
- roundsPerBurst=1
- //The amount of bullet your gun fires in a group
- bulletsPerClick=1
- //The damage PER BULLET (20 damage = 10 hearts) 每一枪的伤害(提示:这里是一枪内所有子弹的伤害,如果设置了子弹分裂,则每颗子弹伤害=本项设定伤害/子弹分裂数量)
- gunDamage=70
- //The amount of health subtracted from the player when hit (ignores armor)
- armorPenetration=0
- //The max distance the bullet will travel 射程(格)
- maxDistance=64
- //The speed of the bullet 射速(每秒,格)
- bulletSpeed=4
- //The accuracy of the bullet (the lower, the better)
- accuracy=0.1
- //The accuracy of the bullet when aimed in (The lower, the better)
- accuracy_aimed=0.02
- //The accuracy of the bullet while crouched (the lower, the better)
- accuracy_crouched=0.05
- //The amount of blocks a gun will push you back 后坐力(每一发向后退的格数)
- recoil=0.2
- //The amount of blocks a player hit by your gun will be blown back
- knockback=0.5
- //Whether or not your gun can aim 辅助瞄准(false为按下后不瞄准,true为按下后画面放大瞄准)
- canAimLeft=false
- canAimRight=false
- //Whether or not you gun can headshot 是否爆头秒杀
- canHeadshot=false
- //Whether or not your gun can aim with the left or right mouse 射击按键(false为按下后不射击,true为按下后射击)
- canShootLeft=false
- canShootRight=true
- //The radius in which an explosion will reach
- explodeRadius=0
- //The amount of damage an explosion will do
- explosionDamage=0
- //The radius of fire that is created by a gun
- fireRadius=0
- //The message displayed when you are out of ammo 没有子弹时的提示
- outOfAmmoMessage=&f[&a枪械插件&f]&aWiki君友情提示:没子弹了...
- //The message displayed when you do not have permission to fire a gun 无权时的提示
- permissionMessage=&cYou do not have permission to fire this gun!
- //Whether or not you need to have permissions to fire a gun
- needsPermission=false
- //The type of bullet fired (SNOWBALL, EGG, ARROW) 子弹射出后的样子(设置鸡蛋可能会造成刷鸡)
- bulletType=SNOWBALL
- //The sound(s) ALL played (at the same time) when a gun is fired (seperated by commas. NO SPACES)
- gunSound=skeleton_hurt,zombie_wood,ghast_fireball
- //Whether or not a bullet has a smoke trail 射击烟雾
- hasSmokeTrail=false
- //The volume of the gun (between 0 and 2)
- gunVolume=1.5
- //Clip information 弹匣信息 hascilp=有无弹匣 max=弹匣子弹上限 reloadgunondrop=换弹 reloadtime=换弹时间,按照tick计算,1秒=20tick
- hasClip=true
- maxClipSize=35
- reloadGunOnDrop=true
- reloadTime=40
- //Whether or not the guns sound is local to the client or global
- localGunSound=false
复制代码 制作好之后保存,放入PvPGunPlus/guns文件夹中
输入/pvpgunplus reload重载
枪械获取:直接获取一个对应ID的物品即可
作者: Wikiworker 时间: 2015-12-5 22:32
话说上次那个帖子手残给删掉了,改了改重发不会死吧233
作者: 13131313 时间: 2016-8-17 13:28
指令是什么啊
作者: qq1374690216 时间: 2016-12-16 19:55
//The sound(s) ALL played (at the same time) when a gun is fired (seperated by commas. NO SPACES)
gunSound=skeleton_hurt,zombie_wood,ghast_fireball
求插件音效大全!!
欢迎光临 最MC论坛 (http://www.zuimc.com/) |
Powered by Discuz! X3.2 |