From 4039c179ed85a00b1daa9617e816fdf2e0ee50be Mon Sep 17 00:00:00 2001 From: jojo Date: Sat, 24 Oct 2020 12:51:54 +0200 Subject: [PATCH] Add json Config Idea Fix ArrowListener explosive yield --- src/de/steamwar/misslewars/items/arrows.json | 16 ++++++++++++++++ .../misslewars/listener/ArrowListener.java | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/de/steamwar/misslewars/items/arrows.json diff --git a/src/de/steamwar/misslewars/items/arrows.json b/src/de/steamwar/misslewars/items/arrows.json new file mode 100644 index 0000000..f2d3ddc --- /dev/null +++ b/src/de/steamwar/misslewars/items/arrows.json @@ -0,0 +1,16 @@ +{ + "type": "ARROW", + "name": "§ePfeil", + "lore": [], + "amount": 3, + "EVENT.onThrow": [ + + ], + "EVENT.onHit": [ + {"type": "delay", "time": 0}, + {"type": "paste", "schem": ""} + ], + "EVENT.onClick": [ + + ] +} \ No newline at end of file diff --git a/src/de/steamwar/misslewars/listener/ArrowListener.java b/src/de/steamwar/misslewars/listener/ArrowListener.java index 5a806d7..6d5fcf0 100644 --- a/src/de/steamwar/misslewars/listener/ArrowListener.java +++ b/src/de/steamwar/misslewars/listener/ArrowListener.java @@ -46,7 +46,7 @@ public class ArrowListener extends BasicListener { if (location == null) return; TNTPrimed tnt = e.getEntity().getWorld().spawn(location, TNTPrimed.class); - tnt.setYield(1.0F); + tnt.setYield(2.0F); tnt.setIsIncendiary(false); tnt.setFuseTicks(0); }