Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Commit de34bc0

Browse files
authored
Merge pull request #1 from Sentropic/1.94.1
1.94.1
2 parents ca9a396 + 25dff88 commit de34bc0

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

editor/js/component.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2970,6 +2970,8 @@ function addParticleOptions(component) {
29702970
);
29712971
component.data.push(new DoubleValue('DZ', 'dz', 0).setTooltip('A packet variable that varies between particles. It generally is used for how far from the position a particle can move in the Z direction.')
29722972
);
2973+
component.data.push(new DoubleValue('Packet Amount', 'amount', 1).setTooltip('A packet variable that varies between particles. Setting this to 0 lets you control the color of some particles.')
2974+
);
29732975
component.data.push(new DoubleValue('Speed', 'speed', 0.1).setTooltip('A packet variable that varies between particles. It generally controlls the color or velocity of the particle.')
29742976
);
29752977
}

src/main/java/com/sucy/skill/api/util/ParticleHelper.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,11 @@ public class ParticleHelper {
8484
* Settings key for the radius of the particle arrangement
8585
*/
8686
public static final String RADIUS_KEY = "radius";
87+
88+
/**
89+
* Settings key for the amount of particles to play
90+
*/
91+
public static final String AMOUNT_KEY = "amount";
8792

8893
/**
8994
* Settings key for the particle arrangement direction (circles only)
@@ -184,7 +189,7 @@ public static void play(Location loc, String particle, Settings settings) {
184189
final float dx = (float)settings.getDouble(DX_KEY, 0.0);
185190
final float dy = (float)settings.getDouble(DY_KEY, 0.0);
186191
final float dz = (float)settings.getDouble(DZ_KEY, 0.0);
187-
final int amount = 1;
192+
final int amount = settings.getInt(AMOUNT_KEY, 1);
188193
final float speed = (float) settings.getDouble(SPEED_KEY, 1.0);
189194
final Material mat = Material.valueOf(settings.getString(MATERIAL_KEY, "DIRT").toUpperCase().replace(" ", "_"));
190195
final int type = settings.getInt(TYPE_KEY, 0);

src/main/resources/plugin.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: SkillAPI
22
main: com.sucy.skill.SkillAPI
3-
version: s1.94
3+
version: 1.94.1
44
author: Eniripsa96
55
depend: [MCCore]
6-
softdepend: [Vault]
6+
softdepend: [Vault, ProtocolLib, Parties, RPGInventory, LibsDisguises, PlaceholderAPI, NoCheatPlus, MythicMobs, WorldGuard, WorldEdit]
77
loadbefore: [Quests]
88
api-version: 1.15
99

0 commit comments

Comments
 (0)