Comments (6)
Have you tried seeing if this was an issue in 2.7.2 as well?
from skript.
Yes, i just tried now, Same issue on 2.7.2
from skript.
@APickledWalrus WANTED! 😬
from skript.
Honestly if pickle does take this up, I suggest looking into a better item comparison as a whole. There's too many quirks with it and the usage of isSimilar()
is honestly either too inaccurate or too accurate.
from skript.
The problem occurs with...almost every conditions you are looking for.
All of thoses conditions have the same problem
I've tried thoses one:
command /test:
trigger:
set {_diampur1} to amount of diamond with custom model data 6589 in player's inventory
set {_diampur2} to amount of diamond of fortune 3 in player's inventory
set {_diampur3} to amount of diamond named "&f&lDiamond test" in player's inventory
None of thoses conditions are considered from skript if the item you are looking for is generated with another plugin, even if the condition is okay.
And i don't see any other option to check if the player have the right amount of the right item in his inventory.
PS: Thanks for your answer.
from skript.
And i don't see any other option to check if the player have the right amount of the right item in his inventory.
Your other idea of using a loop is the current correct solution, you were just using the wrong expressions:
command /looper:
trigger:
loop items in player's inventory:
if:
name of loop-item is "&f&lDiamant épuré"
item amount of loop-item > 2
then:
remove 3 of loop-item from player
from skript.
Related Issues (20)
- Add version to Skript JARs HOT 3
- Arithmetic returning Object when multiple valid operations causing unexpected parsing
- Error while reloading script with command argument that doesn't exists HOT 6
- Update Paper API to 1.20.6 HOT 1
- Prefixes HOT 7
- large_smoke particle generates error on Paper/Spigot 1.20.6 HOT 13
- NoClassDefFound Error HOT 3
- Legacy Code Tracker
- unexpected repair/damage behaviour HOT 4
- Add recently added attributes HOT 2
- Searching Feature
- Add experience class into accept change on ExprTotalExperience
- Add skript-reflect (or at least some features) into Skript HOT 1
- Expose required variable changes for save as a config option
- SimpleLiterals pass "constant" backing array to other syntax.
- Stop referencing the old Converter class in PropertyExpression HOT 2
- Wither HOT 2
- Allow `armour stand` as `armor stand` HOT 2
- Entities despawning when target is set HOT 1
- bStats syntax for Skript HOT 14
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.