Comments (9)
@mikassio this is actually more about the nature of the modifier action you used. the modifier action called required will cancel the spell event itself since I allow the checks to run fully. What you would do instead would be something like the following
modifiers:
name:
checks:
- !hasitem 373 stop
- !inblock 9 stop
pass-condition: ANY
and then in your spell, you could use this
modifiers:
- collection name required
The reason why this should work differently is that the require action actually does does something other than just discontinuing the processing of further modifiers which is to cancel the event. the stop action on the other hand, only stops the processing of further modifiers but won't cancel the event. A similar situation exists with the denied action in which it will cancel the event when processing.
from magicspells.
Thank you.
I've got one more is not clear bug. Above the blocks from nova effect floating blocks of stone.
Screenshot can be viewed here http://nisovin.com/forums/index.php?threads/help-with-nova-effect-please.2210/.
from magicspells.
Oh, no, it does not work.
modifiers:
name:
checks:
- !hasitem 373 stop
- !inblock 9 stop
pass-condition: ANY
Screenshot - http://rgho.st/8hj8tVDJt/image.png
from magicspells.
Try removing the ! and when you put the collection on your spell deny it.
from magicspells.
@mikassio @MidnightChipmunk just quote the checks, like this
modifiers:
name:
checks:
- "!hasitem 373 stop"
- "!inblock 9 stop"
pass-condition: ANY
The reason that was causing an error is because yaml was treating it like a tag rather than a normal string.
from magicspells.
Thaaank you :)
from magicspells.
What about flying over the block of stone blocks in the nova effect, about which I wrote above?
from magicspells.
@mikassio I'm afraid I don't understand what the issue with that spell is. Perhaps you could elaborate as to what it is supposed to do and what it is doing that is incorrect.
Also, am I correct in thinking that the collection modifier is working for you now?
from magicspells.
@TheComputerGeek2 yes, is working.
from magicspells.
Related Issues (20)
- RiptideSpell does not cancel on /ms reload if it has 0 duration HOT 1
- Spells listed under the "Spells" configuration option do not trigger when using Smith PassiveSpell trigger HOT 1
- Add proper support for damaging with different DamageCause HOT 1
- More variables in MenuSpell HOT 1
- Hello. How can i solve this error? (v4.0-Beta-11) HOT 1
- Projectile spell fireballs not activating on entities with fire resistance
- Add offset, spread, and home-after-delay to HomingMissileSpell
- Variable modifier breaks plugin if incorrectly defined
- Jitpack unavailable HOT 1
- Help with spell HOT 1
- DestorySpell not using horiz-radius value
- Config-based Spell Filter consistency
- Paper warns about plugin using deprecated behavior HOT 1
- Castinstead modifier does not apply any cooldown HOT 2
- Does the plugin exist in 1.20.1? HOT 1
- 1.20.2 HOT 1
- Target exception HOT 1
- Can I cancel spells while casting it? HOT 1
- MagicSpells + Json model connection HOT 2
- Conflict with Bedrock users 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 magicspells.