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

Commit

Permalink
Merge pull request #1 from Sentropic/1.94.1
Browse files Browse the repository at this point in the history
1.94.1
  • Loading branch information
Sentropic authored Nov 2, 2020
2 parents ca9a396 + 25dff88 commit de34bc0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions editor/js/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -2970,6 +2970,8 @@ function addParticleOptions(component) {
);
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.')
);
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.')
);
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.')
);
}
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/sucy/skill/api/util/ParticleHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public class ParticleHelper {
* Settings key for the radius of the particle arrangement
*/
public static final String RADIUS_KEY = "radius";

/**
* Settings key for the amount of particles to play
*/
public static final String AMOUNT_KEY = "amount";

/**
* Settings key for the particle arrangement direction (circles only)
Expand Down Expand Up @@ -184,7 +189,7 @@ public static void play(Location loc, String particle, Settings settings) {
final float dx = (float)settings.getDouble(DX_KEY, 0.0);
final float dy = (float)settings.getDouble(DY_KEY, 0.0);
final float dz = (float)settings.getDouble(DZ_KEY, 0.0);
final int amount = 1;
final int amount = settings.getInt(AMOUNT_KEY, 1);
final float speed = (float) settings.getDouble(SPEED_KEY, 1.0);
final Material mat = Material.valueOf(settings.getString(MATERIAL_KEY, "DIRT").toUpperCase().replace(" ", "_"));
final int type = settings.getInt(TYPE_KEY, 0);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: SkillAPI
main: com.sucy.skill.SkillAPI
version: s1.94
version: 1.94.1
author: Eniripsa96
depend: [MCCore]
softdepend: [Vault]
softdepend: [Vault, ProtocolLib, Parties, RPGInventory, LibsDisguises, PlaceholderAPI, NoCheatPlus, MythicMobs, WorldGuard, WorldEdit]
loadbefore: [Quests]
api-version: 1.15

Expand Down

0 comments on commit de34bc0

Please sign in to comment.