staubimobil

schreibe mir ein tragbares leuchtfeuer für Executable Items beziehe diese quellen mitein https://splugins.net/docs/executableblocks/question-or-guides/frequently-asked-questions/how-to-use-vanilla-commands https://www.spigotmc.org/resources/custom-items-plugin-executable-items.77578/

Kodari AI
KodariJul 30 at 5:43 pm 1
PortableBeaconItem
Ein tragbares Leuchtfeuer für ExecutableItems, das per Rechtsklick aktiviert wird und dem Spieler zeitweise Geschwindigkeit, Eile und Sprungkraft verleiht. Die Effekte werden über Vanilla-Befehle ausgeführt, die Aktivierung besitzt eine Abklingzeit und das Platzieren des Leuchtfeuer-Blocks wird verhindert. Die Konfiguration ist für die direkte Verwendung im ExecutableItems-Ordner vorbereitet und berücksichtigt die bereitgestellten Plugin- und Befehlsdokumentationen.
Kodari can make mistakes. Review important code before using.
Files
plugins
README.md
Code
2 52
plugins/ExecutableItems/items/PortableBeacon.yml
# Tragbares Leuchtfeuer für ExecutableItems
# Diese Datei nach plugins/ExecutableItems/items/ kopieren.
# Vanilla-Befehle gemäß:
# https://splugins.net/docs/executableblocks/question-or-guides/frequently-asked-questions/how-to-use-vanilla-commands
# Plugin-Referenz:
# https://www.spigotmc.org/resources/custom-items-plugin-executable-items.77578/

name: '&b&lTragbares Leuchtfeuer'
material: BEACON
glow: true
lore:
  - '&7Rechtsklick aktiviert das Leuchtfeuer.'
  - '&7Verleiht dir zeitweise:'
  - '&b• Geschwindigkeit'
  - '&b• Eile'
  - '&b• Sprungkraft'
  - ''
  - '&8Abklingzeit: 10 Sekunden'

activators:
  activator1:
    name: '&bLeuchtfeuer aktivieren'
    option: PLAYER_RIGHT_CLICK
    typeTarget: NO_TARGET
    cooldown: 10
    cancelEvent: true
    commands:
      - 'CONSOLE:effect give %player% minecraft:speed 12 0 true'
      - 'CONSOLE:effect give %player% minecraft:haste 12 0 true'
      - 'CONSOLE:effect give %player% minecraft:jump_boost 12 0 true'