◼️
EpicBlocks
  • 👋Welcome to EpicBlocks
  • Overview
    • 💡Actions
    • ✨Rewards
    • 🎇Requirements
  • Fundamentals
    • 🛠️Getting set up
    • 📝Setting permissions
Powered by GitBook
On this page
  • Enchant
  • NBT
  • Player Effect
  • Player XP-Level
  • Player Permission
  1. Overview

Requirements

PreviousRewardsNextGetting set up

Last updated 1 year ago

  • Enchant

  • NBT

  • Player Effect

  • Player XP-Level

  • Player Permission


Enchant

Enchant names can be found at:

This can be specified using the following syntax:

blocks:
  yellow-crystal:
    requirements:
      enchant: "DAMAGE_ALL:5" # DAMAGE_ALL is the Enchant 5 is the level.

NBT

NBT can be specified using the following syntax:

blocks:
  yellow-crystal:
    requirements:
      nbt: "yellow-crystal-breaker"

Player Effect

Player Effects can be specified using the following syntax:

blocks:
  yellow-crystal:
    requirements:
      effect: "SPEED:2" # SPEED is the effect 2 is the level

Player XP-Level

Player XP-Level can be specified using the following syntax:

blocks:
  yellow-crystal:
    requirements:
      xp-level: 30

Player Permission

Player Permission can be specified using the following syntax:

blocks:
  yellow-crystal:
    requirements:
      permission: "epicblocks.break.yellow-crystal" #example of permission

Potion Effects can be found at:

🎇
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/enchantments/Enchantment.html
https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/potion/PotionEffectType.html