Skip to content

Commit bf53eb7

Browse files
authored
Add files via upload
1 parent 10ece63 commit bf53eb7

File tree

3 files changed

+27
-8
lines changed

3 files changed

+27
-8
lines changed

src/main/java/com/ccorp2002/tasks/EntityCalculator.java

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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")){

src/main/resources/config.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ Settings:
3636
# The force multiplier
3737
Force: 2.0
3838

39-
# The minimum amount of TPS when the plugin should run
40-
MinimumTPS: 7.5
41-
4239
StairCannonFlak:
4340
# PURPUR STAIR RAILGUN/FLAK/CANNONS(s)
4441
Enabled: true
42+
# The force multiplier
43+
Force: 2.7
4544

45+
StairCannonMortar:
46+
# BRICK STAIR RAILGUN/MORTAR/ARTILLERY(s)
47+
Enabled: true
4648
# The force multiplier
47-
Force: 2.5
49+
Force: 1.5
4850

49-
# The minimum amount of TPS when the plugin should run
50-
MinimumTPS: 7.5
51+
# The minimum amount of TPS when the plugin should run
52+
MinimumTPS: 7.5

src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Simplestone
22
main: com.ccorp2002.Simplestone
3-
version: 1.4
3+
version: 1.5
44
commands:
55
cleanup:
66
usage: /<command>

0 commit comments

Comments
 (0)