skript-reflect

Addon skript-reflect 2.4

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Contributors
btk5h, TPGamesNL, SkriptLang Team
Supported Skript Version
  1. 2.7
  2. 2.8
Supported Minecraft Versions
  1. 1.13
  2. 1.14
  3. 1.15
  4. 1.16
  5. 1.17
  6. 1.18
  7. 1.19
  8. 1.20
This addon is a fork of skript-mirror, and comes with a bunch of bug fixes and new features.
Some of the important bug fixes and features:
  • Fixed async event listening
  • Fixed local variables issues being deleted after async java calls and after parse sections from custom syntax
  • Added support for newer Java versions and Java vendors
  • Added custom events
  • Added sections, with support for running code blocks async
  • Fixed class proxies and made them easier to use
  • Added preloading
Code:
#1 Basic Java call:
import:
    java.lang.System

set {_nl} to System.lineSeparator()

#2 Event listening
import:
    org.bukkit.event.block.CauldronLevelChangeEvent

on CauldronLevelChangeEvent:
    broadcast "The cauldron at %event.getBlock().getLocation()% had its level changed from %event.getOldLevel()% to %event.getNewLevel()%"

#3 Custom syntax
effect send (experience|xp) change of %number% [with level %-number%] to %players%:
    trigger:
        set {_progress} to expr-1
        set {_level} to expr-2
        loop exprs-3:
            set {_p} to loop-value
            if {_level} is set:
                {_p}.sendExperienceChange({_progress}, {_level})
            else:
                {_p}.sendExperienceChange({_progress})

send xp change of 0.75 with level 9 to player

Full example scripts:
The documentation and a guide to get started is available on GitBook: tpgamesnl.gitbook.io.
Issues and suggestions should be reported on GitHub.
You can get help in the skript-mirror channel of the skUnity Discord, or you can ask questions in the skript-reflect discord.

Icon made by Freepik from www.flaticon.com. Use of skUnity logo approved by BaeFell.
Author
SkriptLang
Downloads
13,071
Views
13,071
First release
Last update
Rating
5.00 star(s) 4 ratings

More resources from SkriptLang

  • Skript
    Skript Skript
    Create unique and inspiring features for Minecraft servers.

Latest updates

  1. skript-reflect 2.4

    skript-reflect 2.4 skript-reflect 2.4 is here with compatibility for the newest versions of...
  2. Now requires Skript 2.6.1

    This version of skript-reflect requires Skript 2.6.1 (or above) Bug fixes, improvements to...
  3. Bug fixes and improvements

    Note: skript-reflect will stop supporting Skript versions below 2.6 when a stable Skript 2.6...

Latest reviews

----------------------------
very nice plugin !
----------------------------
Thank you for updating the old but so useful skript-mirror !
Hope this project will live long ! :)
SkriptLang
SkriptLang
Thanks for the review :D
Everything works perfectly, thank you very much for your work and the update of the old skript-mirror!
SkriptLang
SkriptLang
Thanks for the review!
Works amazing! The old Skript-Mirror broke and had a lot of bugs, and this fixes that! Extremely happy :D
SkriptLang
SkriptLang
Thanks for the review :D