Setup guns
Setup guns
If you want to use the gun feature, follow this tutorial close.
1. Set "Guns-Enabled" in the config file to true
The next step is to create a custom weapon, I am going to use ak-47 in this example.
2. Hook into the config at the crackshot plugin, go to defaultWeapons (you can also go to defaultExplosives or defaultAttachments) 3. Then, find the weapon you want to configure.
Here is how the ak-47 config look like;
AK-47: Item_Information: Item_Name: "&eAK-47" Item_Type: 417 Item_Lore: "&eFully automatic with high power.|&eEffective at medium range.|&eControls are inverted." Sounds_Acquired: BAT_TAKEOFF-1-1-0 Shooting: Right_Click_To_Shoot: true Cancel_Left_Click_Block_Damage: true Cancel_Right_Click_Interactions: true Delay_Between_Shots: 4 Recoil_Amount: 1 Projectile_Amount: 1 Projectile_Type: snowball Projectile_Speed: 40 Projectile_Damage: 4 Bullet_Spread: 2 Sounds_Shoot: IRONGOLEM_HIT-1-2-0,SKELETON_HURT-1-2-0,ZOMBIE_WOOD-1-2-0 Sneak: Enable: true No_Recoil: true Bullet_Spread: 1 Burstfire: Enable: true Shots_Per_Burst: 2 Delay_Between_Shots_In_Burst: 3 Reload: Enable: true Reload_Amount: 30 Reload_Duration: 40 Sounds_Out_Of_Ammo: ITEM_BREAK-1-1-0 Sounds_Reloading: FIRE_IGNITE-1-1-4,DOOR_OPEN-1-2-6,FIRE_IGNITE-1-1-36,HURT_FLESH-1-0-37,DOOR_CLOSE-1-2-38 Firearm_Action: Type: slide Close_Duration: 10 Close_Shoot_Delay: 12 Sound_Close: PISTON_RETRACT-1-2-0,PISTON_RETRACT-1-2-3 Scope: Enable: true Zoom_Amount: 5 Zoom_Bullet_Spread: 0 Sounds_Toggle_Zoom: ENDERDRAGON_WINGS-1-2-0 Abilities: Reset_Hit_Cooldown: true Hit_Events: Enable: true Sounds_Shooter: SHOOT_ARROW-1-2-0
4. Change the Item_Type to the id /item you want to use.
5. Change the name if you want, "Item_Name: "&eAK-47". (The item will then spawn in the chest with this name)
6. Go back to the config at the survival games plugin and add this
Total-Weapons: 1 #Need to be the same as the amount as the weapons you have listed Weapons: 1: Material: IRON_BARDING # The item you use as the weapon, in this case used i the id 417(Iron horse armor) CrackShot-Weapon: AK-47 #The crackshot weapon
You can check the items name's here http:jd.bukkit.org/rb/apidocs/org/bukkit/Material.html
I did'nt understand this at all.
Do we need to do anything?
Or will the default config work?