Comments (4)
If possible, I think we should add a built-in section to tie this to an existing Bukkit event, perhaps with a class[es]
section.
I'm imagining something like:
[local] [custom] event %string%: # <- name is now here
patterns: # list of patterns, required
# patterns
classes:
org.bukkit.event.YourEvent # will make this behave the same as using "on YourEvent:"
event-values: # list of types, optional
parse:
# code, optional
check:
# code, required
from skript-reflect.
solved:
[local] [custom] event %string%: # <- name is now here
patterns: # list of patterns, required
# patterns
event-values: # list of types, optional
parse:
# code, optional
check:
# code, required
will also add a pattern: #pattern
as an entry, not a section
from skript-reflect.
At first I wasn't sure about where to initialize event-values and extra data with the classes
section, now I think there are 2 possibilities:
- Have an expression like
event-caller
/calling event
which can be used in the check section to set event-values and extra data. - Have a
prepare
section or something alike where the event-values and extra data are set, with theevent
expression. This section will only be run if the event was called by an event in theclasses
section.
Also maybe use event classes
instead of classes
from skript-reflect.
At first I wasn't sure about where to initialize event-values and extra data with the
classes
section, now I think there are 2 possibilities:
- Have an expression like
event-caller
/calling event
which can be used in the check section to set event-values and extra data.- Have a
prepare
section or something alike where the event-values and extra data are set, with theevent
expression. This section will only be run if the event was called by an event in theclasses
section.Also maybe use
event classes
instead ofclasses
Nvm not doing that, as it can easily be done in a seperate trigger
from skript-reflect.
Related Issues (20)
- Cannot create custom expressions HOT 8
- cannot load scripts with command HOT 4
- Event-values does not work HOT 2
- Reflect breakdown on expressions HOT 2
- Add a way to create Java variables HOT 1
- 1.20.6 support HOT 4
- Error when using integers/numbers in custom events HOT 4
- Try Section
- custom toString
- Skript Reflect fails to load on version 1.20.6 HOT 1
- Initializing a Inner class
- Having more than one custom syntax with the same pattern causes an exception
- Vector with decimal is broken randomly HOT 2
- Parse section is broken in custom event HOT 1
- Custom events is extremely slow HOT 3
- Check section with custom expression usable sections cause NPE
- Two effects with same pattern cause exception - duplicate HOT 6
- Local Function Support
- Reflect breakdown on expressions HOT 3
- Add safety net when running sections with null inputs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skript-reflect.