@@ -67,7 +67,8 @@ public void run() {
6767 Material m = myBlock .getRelative (b .getFacing ()).getType ();
6868 Material m_TWO = myBlock .getRelative (b .getFacing ()).getType ();
6969 Material m_THREE = myBlock .getRelative (b .getFacing ()).getType ();
70- Material m_FLAK = myBlock .getRelative (b .getFacing ()).getType ();
70+ Material m_FLAK = myBlock .getRelative (b .getFacing ()).getType ();;
71+ Material m_MORTAR = myBlock .getRelative (b .getFacing ()).getType ();
7172 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 ){
7273 if (!plugin .getConfig ().getBoolean ("Settings.StairCannon.Enabled" )) continue ;
7374 if (i instanceof Item ){
@@ -99,6 +100,22 @@ public void run() {
99100 }else {
100101 i .setVelocity (Utils .faceToForce (b .getFacing ()).multiply (100 * plugin .getConfig ().getDouble ("Settings.StairCannonFlak.Force" )).add (new Vector (0 , 4 , 0 )));
101102 }
103+ }
104+ if (m_FLAK == Material .PURPUR_STAIRS ){
105+ if (!plugin .getConfig ().getBoolean ("Settings.StairCannonFlak.Enabled" )) continue ;
106+ if (i instanceof Item ){
107+ i .setVelocity (Utils .faceToForce (b .getFacing ()).multiply (400 * plugin .getConfig ().getDouble ("Settings.StairCannonFlak.Force" )).add (new Vector (0 , 4 , 0 )));
108+ }else {
109+ i .setVelocity (Utils .faceToForce (b .getFacing ()).multiply (100 * plugin .getConfig ().getDouble ("Settings.StairCannonFlak.Force" )).add (new Vector (0 , 4 , 0 )));
110+ }
111+ }
112+ if (m_MORTAR == Material .BRICK_STAIRS ){
113+ if (!plugin .getConfig ().getBoolean ("Settings.StairCannonMortar.Enabled" )) continue ;
114+ if (i instanceof Item ){
115+ i .setVelocity (Utils .faceToForce (b .getFacing ()).multiply (175 * plugin .getConfig ().getDouble ("Settings.StairCannonMortar.Force" )).add (new Vector (0 , 3 , 0 )));
116+ }else {
117+ i .setVelocity (Utils .faceToForce (b .getFacing ()).multiply (200 * plugin .getConfig ().getDouble ("Settings.StairCannonMortar.Force" )).add (new Vector (0 , 2 , 0 )));
118+ }
102119 }
103120 }else {
104121 if (myBlock .getRelative (BlockFace .DOWN ).getType () == Material .IRON_BLOCK && plugin .getConfig ().getBoolean ("Settings.Repeater.FastEnabled" )){
0 commit comments