-
Notifications
You must be signed in to change notification settings - Fork 2
Tutorial: (Method) Mana Requirement
Special70 edited this page Jan 21, 2022
·
6 revisions
- Plugin that uses Mana (Aurelium Skills will be used as reference)
- ExecutableItems
- PlaceholderAPI
- Let's use the right click activator for example
- We will use the placeholder condition here to check if you have the required amount of mana
- We will use the
PLAYER_NUMBER
type to use the comparators we will use for this placeholder condition - We will use the placeholder:
%aureliumskills_mana%
to check how much mana you have - Then we will use the
SUPERIOR_OR_EQUALS
comparator to make it so it will run the activator if your mana has equal or more than the value written in the 2nd part - Then in the 2nd part, we will write
5
as we want it so you need to have at least 5 mana to run the activator
- Add the command to remove 5 mana from you
- Then add whatever command you want to run
- It should work now and it will run commands when you have the correct amount of mana.
name: '&e&lDefault name'
lore:
- ''
- '&bDefault Lore'
material: DIAMOND_SWORD
headDBID: ''
glow: false
disableStack: false
keepItemOnDeath: false
give-first-join: false
give-slot: 0
hideEnchantments: false
hideAttributes: false
usage: 1
hideUsage: false
usePerDay: -1
usageLimit: -1
disable-world: []
unbreakable: false
hideUnbreakable: false
hidePotionEffects: false
isSpecialProjectile: false
canBeUsedOnlyByTheOwner: false
storeItemInfos: false
durability: 1561
activators:
activator1:
activator: PLAYER_ALL_CLICK
displayName: Activator name
usageModification: 0
usePerDay: -1
cancelEventIfMaxUsePerDay: false
cooldown: 0
displayCooldownMessage: false
commands:
- mana remove %player% 5
silenceOutput: false
blockCommands: []
detailedBlocks: []
onlyAirClick: false
onlyBlockClick: false
cancelEventIfInvalidRequiredExecutableItems: false
cancelEventIfInCooldown: false
cancelEvent: false
conditions:
placeholdersConditions:
plchC1:
type: PLAYER_NUMBER
part1: '%aureliumskills_mana%'
comparator: SUPERIOR_OR_EQUALS
part2: '10'
messageIfNotValid: '&e'
cancelEventIfNotValid: false
If the guide wasn't clear enough or there was a mistake, please contact me (Special70#7668) in discord.