From bf53eb71b8fba6cf085ccb6399a38137f4ca1590 Mon Sep 17 00:00:00 2001 From: C_Corp2002 Date: Tue, 6 Oct 2020 15:43:11 -0700 Subject: [PATCH] Add files via upload --- .../com/ccorp2002/tasks/EntityCalculator.java | 19 ++++++++++++++++++- src/main/resources/config.yml | 14 ++++++++------ src/main/resources/plugin.yml | 2 +- 3 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/ccorp2002/tasks/EntityCalculator.java b/src/main/java/com/ccorp2002/tasks/EntityCalculator.java index 1f08d0a..80996cc 100644 --- a/src/main/java/com/ccorp2002/tasks/EntityCalculator.java +++ b/src/main/java/com/ccorp2002/tasks/EntityCalculator.java @@ -67,7 +67,8 @@ public void run() { Material m = myBlock.getRelative(b.getFacing()).getType(); Material m_TWO = myBlock.getRelative(b.getFacing()).getType(); Material m_THREE = myBlock.getRelative(b.getFacing()).getType(); - Material m_FLAK = myBlock.getRelative(b.getFacing()).getType(); + Material m_FLAK = myBlock.getRelative(b.getFacing()).getType();; + Material m_MORTAR = myBlock.getRelative(b.getFacing()).getType(); if(m == Material.WOOD_STAIRS || m == Material.SPRUCE_WOOD_STAIRS || m == Material.BIRCH_WOOD_STAIRS || m == Material.JUNGLE_WOOD_STAIRS || m == Material.DARK_OAK_STAIRS || m == Material.ACACIA_STAIRS){ if(!plugin.getConfig().getBoolean("Settings.StairCannon.Enabled")) continue; if(i instanceof Item){ @@ -99,6 +100,22 @@ public void run() { }else{ i.setVelocity(Utils.faceToForce(b.getFacing()).multiply(100 * plugin.getConfig().getDouble("Settings.StairCannonFlak.Force")).add(new Vector(0, 4, 0))); } + } + if(m_FLAK == Material.PURPUR_STAIRS){ + if(!plugin.getConfig().getBoolean("Settings.StairCannonFlak.Enabled")) continue; + if(i instanceof Item){ + i.setVelocity(Utils.faceToForce(b.getFacing()).multiply(400 * plugin.getConfig().getDouble("Settings.StairCannonFlak.Force")).add(new Vector(0, 4, 0))); + }else{ + i.setVelocity(Utils.faceToForce(b.getFacing()).multiply(100 * plugin.getConfig().getDouble("Settings.StairCannonFlak.Force")).add(new Vector(0, 4, 0))); + } + } + if(m_MORTAR == Material.BRICK_STAIRS){ + if(!plugin.getConfig().getBoolean("Settings.StairCannonMortar.Enabled")) continue; + if(i instanceof Item){ + i.setVelocity(Utils.faceToForce(b.getFacing()).multiply(175 * plugin.getConfig().getDouble("Settings.StairCannonMortar.Force")).add(new Vector(0, 3, 0))); + }else{ + i.setVelocity(Utils.faceToForce(b.getFacing()).multiply(200 * plugin.getConfig().getDouble("Settings.StairCannonMortar.Force")).add(new Vector(0, 2, 0))); + } } }else{ if(myBlock.getRelative(BlockFace.DOWN).getType() == Material.IRON_BLOCK && plugin.getConfig().getBoolean("Settings.Repeater.FastEnabled")){ diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index a13078f..e93a2a4 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -36,15 +36,17 @@ Settings: # The force multiplier Force: 2.0 - # The minimum amount of TPS when the plugin should run - MinimumTPS: 7.5 - StairCannonFlak: # PURPUR STAIR RAILGUN/FLAK/CANNONS(s) Enabled: true + # The force multiplier + Force: 2.7 + StairCannonMortar: + # BRICK STAIR RAILGUN/MORTAR/ARTILLERY(s) + Enabled: true # The force multiplier - Force: 2.5 + Force: 1.5 - # The minimum amount of TPS when the plugin should run - MinimumTPS: 7.5 + # The minimum amount of TPS when the plugin should run + MinimumTPS: 7.5 diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 2864dc3..927a006 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -1,6 +1,6 @@ name: Simplestone main: com.ccorp2002.Simplestone -version: 1.4 +version: 1.5 commands: cleanup: usage: /