Comments (15)
Yeah. The code in the make gui
section runs on inventory click
event.
from tuske.
Just read the error message, you can't use gui
outside of make gui
.
make gui slot 1, 3, 10, 11, 12, 19, 28, 36, 37, 45, 46, 52 and 53 with black stained glass pane named "&0":
if slot 1 of gui is dirt:
make gui slot 1 with grass
else:
make gui slot 1 with diamond block
from tuske.
I did, I was asked by tuke to make an issue though
from tuske.
I can't see purpose on using gui
in create gui
section.
from tuske.
to get the inventory of the gui you're creating??
from tuske.
Why you would want that lol. But did you try to use gui "id"
or last gui
? If you aren't able to use them, then the same for gui
. I needs to create the expression and edit it instantly before end of the create gui
section.
from tuske.
making a slot stealable without having to have on on inventory open
or conditionals, like i provided in the code above, etc., there are quite a few uses. and I'm not gonna create a gui with a id if it's not gonna stay the same or close to it, there's no point.
from tuske.
You can use last gui
already. Also as i remember you can use
make gui ...:
uncancel event
to get stealable items, also with actions.
from tuske.
that'd make all items stealable, i want specific items stealable.
from tuske.
No it shouldn't do that. The manager cancels inventory click event when you click on a gui item, this uncancels it.
last gui
in create gui
section works fine by the way, i tested it.
from tuske.
oh i see what you're saying. Like
make gui slot 1 with grass:
uncancel event
? that way only the grass would be stealable?
from tuske.
Anyways, I only posted this cause I was asked by tuke to do so lol
from tuske.
[the] gui
support may look better than last gui
when used in create gui section. Since last gui
in create gui
works it is easy to do. But still i can't see advantages π
from tuske.
I tested it and I can't replicate your issue. The gui
expression is used when you click in a gui slot, if it's outside of make gui
effect like your example, the right one is last gui
. It might be just a syntax mistake where the syntax last [created] gui
represents the current gui that is being created/edited.
So your code will work fine as:
command /bug:
trigger:
create a gui with virtual chest with 2 rows named "TuSKe Bug":
make gui slot 1, 3, 10, 11, 12, 19, 28, 36, 37, 45, 46, 52 and 53 with black stained glass pane named "&0"
if slot 1 of last gui is dirt:
make gui slot 1 with grass
else:
make gui slot 1 with diamond block
open last created gui to player
from tuske.
Oh okay, thanks :)
from tuske.
Related Issues (20)
- servere error HOT 2
- ERROR HOT 1
- Gui Tuske Error [1.17.1 Server] HOT 1
- Issue with tuske (1.16.5) HOT 2
- Crash server in reloading the script
- TuSke Timings problems
- gui item does not show HOT 1
- Error
- GUI work only with OP users HOT 2
- GUI not working HOT 1
- Making player's tool an item, with a lore causes weird issues
- [BUG] Unknown error HOT 1
- Major Tuske bug HOT 1
- Need help fixing TuSKe's class com.github.tukenuke.tuske.effects.EffMakeDrop generated an exception while loading HOT 4
- The "then run:" effect isnβt working anymore
- Spectators can't interact with gui?
- Custom Enchantments not working. HOT 3
- arg-1 is <none> HOT 1
- Skript can't load commands and triggers with TuSKe HOT 2
- Netherite sword does not register in TuSKe's GUI 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 tuske.