Particles & Sounds are now obtained using NamespacedKey's instead of enum values.
This unfortunately means all current cosmetics will not work, and needs to be updated.
You now get notified occasionally when starting drills that do not support patterns, if you have a pattern selected.
Added a {list} placeholder to the Cosmetic.InvalidType message, listing all available cosmetics.
Code (YAML):
Placement: # If you have a pattern selected, and start a non-placement drill, you will get a notification in chat. # This is the delay between those notifications, in milliseconds. NotificationDelayMs: 60000
Cosmetics: # The name that will be used to select this cosmetic. Lava: # Particles & Sounds are fetched using a NamespacedKey from their respective registries. # I don't know where to got a convenient list of them. # I'll leave the old links here though, as they kinda contain what you need to figure out some / most of the vanilla sounds & particles. # https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Particle.html Particle: "minecraft:lava" ParticleAmount: 4
# https://hub.spigotmc.org/javadocs/spigot/org/bukkit/Sound.html Sound: "minecraft:block.lava.pop" Volume: 1
PitchMin: 1
RandomAdditionalPitch: 1
# If you want the cosmetic to require a specific permission, you'd specify that here. #Permission: rampen.drills.cosmetic.lava # By default, particles will spawn in the center of the block. # If you set Type to randoffset it will spawn each particle with a random offset, which by default is up to .4 #Type: randoffset # If you want to change the random offset, you'd change these values. Does nothing if Type is not set to randoffset. #OffsetX: .4 #OffsetY: .4 #OffsetZ: .4 Explosion:
Particle: "minecraft:explosion" ParticleAmount: 1
Sound: "minecraft:entity.generic.explode" Volume: 1
PitchMin: 3
RandomAdditionalPitch: 1
Ender:
Particle: "minecraft:portal" ParticleAmount: 25
Sound: "minecraft:entity.enderman.teleport" Volume: 1
PitchMin: 1
RandomAdditionalPitch: 1
Crit:
Particle: "minecraft:crit" ParticleAmount: 15
Sound: "minecraft:entity.player.attack.crit" Volume: 1.5
PitchMin: 1
RandomAdditionalPitch: 1
Snow:
Particle: "minecraft:item_snowball" ParticleAmount: 20
Sound: "minecraft:entity.snow_golem.hurt" Volume: 1.5
PitchMin: 1
RandomAdditionalPitch: 1
Type: randoffset
Happy:
Particle: "minecraft:happy_villager" ParticleAmount: 12
Sound: "minecraft:entity.experience_orb.pickup" Volume: 1
PitchMin: 2
RandomAdditionalPitch: 1
Type: randoffset
Spell:
Particle: "minecraft:witch" ParticleAmount: 12
Sound: "minecraft:entity.witch.throw" Volume: 1
PitchMin: 1
RandomAdditionalPitch: 1
Type: randoffset
Messages:
Drill:
NonPlacementDrill: '&8
[&3RampenDrills&8
] &7You have a pattern selected, but started a drill does not make use of it. Use gold blocks instead of iron on the sides if you want the drill to make use of your selected pattern.'
Command:
Cosmetic:
InvalidType: '&8
[&3RampenDrills&8
] &7Invalid cosmetic type. Available cosmetics
: {list
}.'
Pattern:
Selected: '&8
[&3RampenDrills&8
] &7
{pattern
} has been selected. If you have
any running drills, you need to restart them for them to make use of it.'
If you have any questions or need help with the plugin, the best way to contact me is
discord.