#problem with set slot

1 messages · Page 1 of 1 (latest)

lofty sentinel
#

Try send drops of es

spring surge
#

ok

fringe ice
#

use vanilla guis

#

set a tempvar to the gui, set an item, then open

lofty sentinel
#

Not the problem dude.

spring surge
#

oh hmm

spring surge
#

anyway

#
    trigger:
        open chest inventory with 6 rows named "test" to player
        loop 30 times:
            set {_randomBlock} to a random element of {b::*}
            set slot (loop-value) of player's current inventory to {_randomblock}```
lofty sentinel
fringe ice
spring surge
#

that is

#

bro

fringe ice
#

nope

lofty sentinel
#

Dont know if you can use loop-value like thst try send af see if it works

spring surge
#

send what

#

?

lofty sentinel
#

Send loop-value

spring surge
#

kk

lofty sentinel
#

In the loop

fringe ice
#
    set slot (integers between 0 and 53) of {_shop} to gray glass pane named "."

    set slot 10 of {_shop} to 1 of diamond hoe named "name"

    open {_shop} to player```
#

thats vanilla guis

spring surge
#

because u used vars to set it to something

#

thats the same thin

#

g

lofty sentinel
#

Dude? Whst does it send

spring surge
#

1 sec

lofty sentinel
#

Ok

spring surge
#

well idk how that has to do with anything tbh since its on inventory click

#

and the name works

lofty sentinel
#

Or like that

#

Is drops of coal ore an official syntax?

spring surge
fringe ice
#

’s drops

spring surge
#

uh

#

what

lofty sentinel
#

He mens {_ej}'s drops i think

fringe ice
#

Yeah

#

The name

#

block drops is not correct syntax

#

block’s drops

spring surge
#

if u mean like then then it still doent work :

#

and i made this but it says none

#

😦

fringe ice
#

Are you trying to use a local var across events

#

Send code

spring surge
fringe ice
#

Try parsing es as a block

#

Not an item

lofty sentinel
#

Try type " type of {_es}

spring surge
spring surge
fringe ice
#

When you set it

lofty sentinel
#

Parse it

spring surge
#

i tried to add parsed as block at the end but it gave an error

fringe ice
lofty sentinel
#

Dont think that is an possible parse

lofty sentinel
#

Make it stringifyed first

fringe ice
#

“%stuff%” parsed as stuff

lofty sentinel
#

And try parse as an item type

spring surge
fringe ice
#

No

#

Event slot

#

Not es

spring surge
#

oh

fringe ice
#

event-slot is mot a text

#

event-slot

spring surge
#

nice

lofty sentinel
#

Parse as an item type

spring surge
#

still broadcast's the drops as none

lofty sentinel
#

Send the script

spring surge
#

i tried block type too but its the same

lofty sentinel
#

Try name of event-slot if it is not changed.

#

Is it a custom or normal

spring surge
#

what

lofty sentinel
#

Name

spring surge
#

broadcast

#

?

lofty sentinel
#

In the gui whst is the coal named?

spring surge
#

in guis they are just named as the blocks they are

lofty sentinel
#

Then try name of event-slot insted of event-slor

spring surge
#

in the set var?

lofty sentinel
#

Try broadcast event-slot

#

And see what it sends

spring surge
#

says the name

#

of the item

lofty sentinel
#

Send pic

spring surge
lofty sentinel
#

AHHH DUDE

#

Whst the f you thinkimg

spring surge
#

wdym

lofty sentinel
#

A iron block dosent have any drops

#

A drop is like coal ore - coal. And

spring surge
#

well it kinda does but

#

the drop would be the iron block

lofty sentinel
#

Then set it to event-slot....

spring surge
#

wdym

lofty sentinel
#

Then set Slot 1 to event-slot

#

Insted of during all that other shit

spring surge
#

it still has a drop

#

well i do need the drops of the event slot

#

since im tying to make a gui where u can change the drops of any block

#

(ill change most of the skript but im just trynna test/learn rn)

spring surge
#

anyone know why?