diff --git a/src/main/java/net/mcreator/target/tools/GunsTool.java b/src/main/java/net/mcreator/target/tools/GunsTool.java index 5e16d6a24..ec232efcc 100644 --- a/src/main/java/net/mcreator/target/tools/GunsTool.java +++ b/src/main/java/net/mcreator/target/tools/GunsTool.java @@ -9,6 +9,7 @@ public class GunsTool { // TODO 通过配置/json/枚举类的方式来初始化枪械 public static void initGun(ItemStack stack) { + } public static void pvpModeCheck(ItemStack stack, Level level) { diff --git a/src/main/resources/data/target/guns/aa_12.json b/src/main/resources/data/target/guns/aa_12.json new file mode 100644 index 000000000..6b1399a16 --- /dev/null +++ b/src/main/resources/data/target/guns/aa_12.json @@ -0,0 +1,13 @@ +{ + "zoomspeed": 0.95, + "zoom": 1.25, + "autorifle": 1, + "dev": 3.5, + "shotgun": 1, + "recoilx": 0.016, + "recoily": 0.007, + "damage": 1.5, + "headshot": 1.5, + "velocity": 16, + "mag": 25 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/abekiri.json b/src/main/resources/data/target/guns/abekiri.json new file mode 100644 index 000000000..db91994ec --- /dev/null +++ b/src/main/resources/data/target/guns/abekiri.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 1.4, + "zoom": 1.25, + "dev": 5, + "shotgun": 1, + "recoilx": 0.005, + "recoily": 0.026, + "damage": 2.5, + "headshot": 1.5, + "velocity": 15, + "mag": 2 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/ak_47.json b/src/main/resources/data/target/guns/ak_47.json new file mode 100644 index 000000000..f2745f1cf --- /dev/null +++ b/src/main/resources/data/target/guns/ak_47.json @@ -0,0 +1,13 @@ +{ + "zoomspeed": 1.1, + "zoom": 1.25, + "rifle": 1, + "autorifle": 1, + "dev": 4, + "recoilx": 0.0025, + "recoily": 0.012, + "damage": 8.5, + "headshot": 1.75, + "velocity": 30, + "mag": 30 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/bocek.json b/src/main/resources/data/target/guns/bocek.json new file mode 100644 index 000000000..a8bb042cb --- /dev/null +++ b/src/main/resources/data/target/guns/bocek.json @@ -0,0 +1,10 @@ +{ + "zoomspeed": 1, + "zoom": 2, + "autorifle": 1, + "dev": 4, + "recoilx": 0.005, + "recoily": 0.003, + "headshot": 1.5, + "damage": 9.5 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/devotion.json b/src/main/resources/data/target/guns/devotion.json new file mode 100644 index 000000000..1eb42eeb1 --- /dev/null +++ b/src/main/resources/data/target/guns/devotion.json @@ -0,0 +1,16 @@ +{ + "zoomspeed": 0.9, + "zoom": 2, + "rifle": 1, + "autorifle": 1, + "mg": 1, + "dev": 5, + "bipod": 1, + "recoilx": 0.0018, + "recoily": 0.01, + "damage": 7, + "headshot": 2, + "velocity": 40, + "mag": 55, + "firemode": 2 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/hk_416.json b/src/main/resources/data/target/guns/hk_416.json new file mode 100644 index 000000000..7049bebe7 --- /dev/null +++ b/src/main/resources/data/target/guns/hk_416.json @@ -0,0 +1,13 @@ +{ + "zoomspeed": 1.3, + "zoom": 1.25, + "rifle": 1, + "autorifle": 1, + "dev": 4, + "recoilx": 0.0016, + "recoily": 0.009, + "damage": 7.5, + "headshot": 2, + "velocity": 45, + "mag": 30 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/hunting_rifle.json b/src/main/resources/data/target/guns/hunting_rifle.json new file mode 100644 index 000000000..4f700196e --- /dev/null +++ b/src/main/resources/data/target/guns/hunting_rifle.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 1, + "zoom": 1.25, + "sniperguns": 1, + "dev": 7, + "recoilx": 0.004, + "recoily": 0.03, + "damage": 40, + "headshot": 3, + "velocity": 50, + "mag": 1 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/kraber.json b/src/main/resources/data/target/guns/kraber.json new file mode 100644 index 000000000..c7138a639 --- /dev/null +++ b/src/main/resources/data/target/guns/kraber.json @@ -0,0 +1,13 @@ +{ + "zoomspeed": 0.8, + "zoom": 3, + "sniperguns": 1, + "bipod": 1, + "dev": 6, + "recoilx": 0.008, + "recoily": 0.018, + "damage": 70, + "headshot": 3, + "velocity": 40, + "mag": 4 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/m_4.json b/src/main/resources/data/target/guns/m_4.json new file mode 100644 index 000000000..ec36a2359 --- /dev/null +++ b/src/main/resources/data/target/guns/m_4.json @@ -0,0 +1,13 @@ +{ + "zoomspeed": 1.15, + "zoom": 1.25, + "rifle": 1, + "autorifle": 1, + "dev": 4, + "recoilx": 0.0015, + "recoily": 0.011, + "damage": 7, + "headshot": 2, + "velocity": 45, + "mag": 30 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/m_60.json b/src/main/resources/data/target/guns/m_60.json new file mode 100644 index 000000000..3e36376d3 --- /dev/null +++ b/src/main/resources/data/target/guns/m_60.json @@ -0,0 +1,16 @@ +{ + "zoomspeed": 0.85, + "zoom": 1.25, + "rifle": 1, + "autorifle": 1, + "mg": 1, + "dev": 5, + "bipod": 1, + "recoilx": 0.004, + "recoily": 0.014, + "damage": 9, + "headshot": 2, + "velocity": 40, + "mag": 100, + "firemode": 2 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/m_79.json b/src/main/resources/data/target/guns/m_79.json new file mode 100644 index 000000000..dd606aaae --- /dev/null +++ b/src/main/resources/data/target/guns/m_79.json @@ -0,0 +1,10 @@ +{ + "zoomspeed": 0.95, + "zoom": 1.25, + "dev": 1, + "recoilx": 0.004, + "recoily": 0.023, + "damage": 40, + "velocity": 3.75, + "mag": 1 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/m_870.json b/src/main/resources/data/target/guns/m_870.json new file mode 100644 index 000000000..d49be24ee --- /dev/null +++ b/src/main/resources/data/target/guns/m_870.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 1.1, + "zoom": 1.25, + "dev": 3, + "shotgun": 1, + "recoilx": 0.009, + "recoily": 0.03, + "damage": 2, + "headshot": 1.5, + "velocity": 20, + "mag": 8 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/m_98b.json b/src/main/resources/data/target/guns/m_98b.json new file mode 100644 index 000000000..eb43b488f --- /dev/null +++ b/src/main/resources/data/target/guns/m_98b.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 0.85, + "zoom": 4, + "sniperguns": 1, + "dev": 6, + "recoilx": 0.007, + "recoily": 0.013, + "damage": 28, + "headshot": 3, + "velocity": 55, + "mag": 5 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/marlin.json b/src/main/resources/data/target/guns/marlin.json new file mode 100644 index 000000000..81e6e3ac8 --- /dev/null +++ b/src/main/resources/data/target/guns/marlin.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 1.1, + "zoom": 1.25, + "rifle": 1, + "dev": 2, + "recoilx": 0.004, + "recoily": 0.011, + "damage": 16, + "headshot": 2.5, + "velocity": 27, + "mag": 8 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/minigun.json b/src/main/resources/data/target/guns/minigun.json new file mode 100644 index 000000000..fc8880ce9 --- /dev/null +++ b/src/main/resources/data/target/guns/minigun.json @@ -0,0 +1,13 @@ +{ + "zoom": 1, + "rifle": 1, + "autorifle": 1, + "mg": 1, + "dev": 5, + "recoilx": 0.024, + "recoily": 0.005, + "damage": 8, + "headshot": 2, + "velocity": 40, + "firemode": 2 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/mk_14.json b/src/main/resources/data/target/guns/mk_14.json new file mode 100644 index 000000000..b8ed7279a --- /dev/null +++ b/src/main/resources/data/target/guns/mk_14.json @@ -0,0 +1,14 @@ +{ + "zoomspeed": 0.9, + "zoom": 3.4, + "rifle": 1, + "autorifle": 1, + "dev": 6, + "bipod": 1, + "recoilx": 0.006, + "recoily": 0.014, + "damage": 12, + "headshot": 2.5, + "velocity": 45, + "mag": 20 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/rpg.json b/src/main/resources/data/target/guns/rpg.json new file mode 100644 index 000000000..2a31a9385 --- /dev/null +++ b/src/main/resources/data/target/guns/rpg.json @@ -0,0 +1,10 @@ +{ + "zoomspeed": 0.77, + "zoom": 1.25, + "dev": 5, + "recoilx": 0.008, + "recoily": 0.018, + "damage": 150, + "velocity": 5.75, + "mag": 1 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/rpk.json b/src/main/resources/data/target/guns/rpk.json new file mode 100644 index 000000000..a70880d0b --- /dev/null +++ b/src/main/resources/data/target/guns/rpk.json @@ -0,0 +1,15 @@ +{ + "zoomspeed": 1, + "zoom": 1.25, + "rifle": 1, + "autorifle": 1, + "mg": 1, + "dev": 5, + "bipod": 1, + "recoilx": 0.0035, + "recoily": 0.012, + "damage": 8.75, + "headshot": 2, + "velocity": 35, + "mag": 50 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/sentinel.json b/src/main/resources/data/target/guns/sentinel.json new file mode 100644 index 000000000..02e3032ae --- /dev/null +++ b/src/main/resources/data/target/guns/sentinel.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 0.95, + "zoom": 3, + "sniperguns": 1, + "dev": 6, + "recoilx": 0.007, + "recoily": 0.018, + "damage": 25, + "mag": 5, + "headshot": 2, + "velocity": 50 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/sks.json b/src/main/resources/data/target/guns/sks.json new file mode 100644 index 000000000..7cc13c764 --- /dev/null +++ b/src/main/resources/data/target/guns/sks.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 1, + "zoom": 1.25, + "rifle": 1, + "dev": 5, + "recoilx": 0.004, + "recoily": 0.015, + "damage": 9.5, + "headshot": 1.75, + "velocity": 40, + "mag": 20 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/svd.json b/src/main/resources/data/target/guns/svd.json new file mode 100644 index 000000000..8399019e9 --- /dev/null +++ b/src/main/resources/data/target/guns/svd.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 0.9, + "zoom": 4, + "sniperguns": 1, + "dev": 6, + "recoilx": 0.008, + "recoily": 0.015, + "damage": 18, + "headshot": 2.5, + "velocity": 50, + "mag": 10 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/taser.json b/src/main/resources/data/target/guns/taser.json new file mode 100644 index 000000000..5d1e7ab3c --- /dev/null +++ b/src/main/resources/data/target/guns/taser.json @@ -0,0 +1,10 @@ +{ + "dev": 2, + "recoilx": 0.0001, + "recoily": 0.002, + "zoomspeed": 2, + "zoom": 1.25, + "damage": 5, + "velocity": 3, + "mag": 1 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/trachelium.json b/src/main/resources/data/target/guns/trachelium.json new file mode 100644 index 000000000..2966782a5 --- /dev/null +++ b/src/main/resources/data/target/guns/trachelium.json @@ -0,0 +1,12 @@ +{ + "zoomspeed": 1.7, + "zoom": 1.25, + "dev": 3, + "handgun": 1, + "recoilx": 0.005, + "recoily": 0.022, + "damage": 18, + "headshot": 1.5, + "velocity": 60, + "mag": 8 +} \ No newline at end of file diff --git a/src/main/resources/data/target/guns/vector.json b/src/main/resources/data/target/guns/vector.json new file mode 100644 index 000000000..f8842237e --- /dev/null +++ b/src/main/resources/data/target/guns/vector.json @@ -0,0 +1,13 @@ +{ + "zoomspeed": 1.6, + "zoom": 1.25, + "autorifle": 1, + "dev": 3.5, + "smg": 1, + "recoilx": 0.011, + "recoily": 0.004, + "damage": 4.5, + "headshot": 1.5, + "velocity": 22, + "mag": 33 +} \ No newline at end of file