#Its not working any ideas?

1 messages · Page 1 of 1 (latest)

dim wedge
#

what about it isnt working?

azure parcel
dim wedge
#

mabye add some debug code like:

        broadcast "test"
        player's group is "sd":
                broadcast "test2"
                Workbench(player)```
azure parcel
dim wedge
#

wym it doesnt work? Like nothing happens

#

when u click sticky piston?

azure parcel
#

Yes

#

Nothing Happens

dim wedge
#

then the issue is that its not registering you clicking, mabye try on right click on sticky piston:

#

or

#
  player's held item is sticky piston:```
azure parcel
#

Well so heres what I want. When I click on a Sticky Piston on the ground then it will open the gui but it doesn't open anything still

#

No Errors either

#

@dim wedge I need this working please help

dim wedge
#

hm

#
  event-block is sticky piston:```
#

@azure parcel

azure parcel
#

So This

Workbench

function Workbench(p: player):
open virtual chest inventory with size 5 named "Workbench" to {_p}
format gui slot (0, 1, 2, 3, 4, 5, 6, 7, 8, 36, 37, 38, 39, 40, 41, 42, 43, 44, and 45) of {_p} with gray stained glass pane named "&f" to do nothing
format gui slot (10, 12, 14, 15, and 16) of {_p} with air to do nothing
format gui slot 22 of {_p} with iron horse armor named "&8AK-47 ▪ «30»" with lore "&71 Iron Bar & 2 Bullets to craft" to run:
execute command "shot give %{_p}% Ak-47 1"
format gui slot 19 of {_p} with orange stained glass pane named "&7C3-Card" with lore "&71 Micro &aChip&7 & 5 &bGlass Shards&7 to craft" to run:
execute command "shot give %{_p}% Ak-47 1"
on block place:
event-block is sticky piston:

#

??

#

@dim wedge \

dim wedge
#

yeah

#

and uh

#

mabye add a line break

#

between ur diff stuff

azure parcel
#

Nope

#

Its still not working?

dim wedge
#

huh

#

wait

#

oh

#

u forgot to add Workbench(player)

#

after on block place thingy

azure parcel
#

Workbench

function Workbench(p: player):
open virtual chest inventory with size 5 named "Workbench" to {_p}
format gui slot (0, 1, 2, 3, 4, 5, 6, 7, 8, 36, 37, 38, 39, 40, 41, 42, 43, 44, and 45) of {_p} with gray stained glass pane named "&f" to do nothing
format gui slot (10, 12, 14, 15, and 16) of {_p} with air to do nothing
format gui slot 22 of {_p} with iron horse armor named "&8AK-47 ▪ «30»" with lore "&71 Iron Bar & 2 Bullets to craft" to run:
execute command "shot give %{_p}% Ak-47 1"
format gui slot 19 of {_p} with orange stained glass pane named "&7C3-Card" with lore "&71 Micro &aChip&7 & 5 &bGlass Shards&7 to craft" to run:
execute command "shot give %{_p}% Ak-47 1"
on block place:
event-block is sticky piston
Workbench(player)

#

?

dim wedge
#

yeah

#

try that

#
    open virtual chest inventory with size 5 named "Workbench" to {_p}
    format gui slot (0, 1, 2, 3, 4, 5, 6, 7, 8, 36, 37, 38, 39, 40, 41, 42, 43, 44, and 45) of {_p} with gray stained glass pane named "&f" to do nothing
    format gui slot (10, 12, 14, 15, and 16) of {_p} with air to do nothing
    format gui slot 22 of {_p} with iron horse armor named "&8AK-47 ▪ «30»" with lore "&71 Iron Bar & 2 Bullets to craft" to run:
        execute command "shot give %{_p}% Ak-47 1"
    format gui slot 19 of {_p} with orange stained glass pane named "&7C3-Card" with lore "&71 Micro &aChip&7 & 5 &bGlass Shards&7 to craft" to run:
        execute command "shot give %{_p}% Ak-47 1"

on block place:
  event-block is sticky piston
    Workbench(player)```
#

oh wait

#

hmmm

#

one sec

#

whats up with this

#

ur making a statement with a : after it

azure parcel
#

Its a command from a plugin for guns

#

and still doesn't work

dim wedge
#

yeah but

#

format gui slot 22 of {_p} with iron horse armor named "&8AK-47 ▪ «30»" with lore "&71 Iron Bar & 2 Bullets to craft" to run:

#

whats up with that

azure parcel
#

Its what you can make??

#

Im not sure I made this script a while ago

#

but I know it used to work

#

so not sure whats wrong

dim wedge
#

yeah but your formatting a slot then on the same line

#

your doing "to run"?

#

oh wait

#

ur doing

#

i see

#

ahhhhh

#

huh I usually just have a different area with a click event

#

thought ig if it doesnt give any errors

#

its fine

#

still dont know why its not working

azure parcel
#

Yea me either

#

you don't need any addons?

dim wedge
#

if u needed addons it would give an error

azure parcel
#

oh

dim wedge
#

so when u place sticky piston nothing happens/

#

?

#

try:

  event-block is stone:
    broadcast "test"```
azure parcel
#

yup

dim wedge
#

just to see if that works

azure parcel
#

no

dim wedge
#

it doesnt work?

azure parcel
#

wait

#

it says block place

#

that means when you place the block

#

not right click it

dim wedge
#

yeah

azure parcel
#

I want it

#

so when you right click it

#

Is there anyway to make it into a command?

#

and then when you do the command it executes the gui

#

so when clicking a block it will execute that command

dim wedge
#

u said when u click it on the ground

#

thats why I did on block place:

azure parcel
#

Ohh Im sorry for the confusion I meant like when its on the ground or anywhere placed already and you right click it

dim wedge
#

ohhh ok

#

then do

#
  player's held item is sticky piston:
    broadcast "test"```
azure parcel
#

That works

#

You meant like delete the entire code

#

and just do that

#

right?

dim wedge
#

yeah

azure parcel
#

yup that works

dim wedge
#

then im guessing the issue is something in the function

azure parcel
#

is it possible to make it into a command tho?

dim wedge
#

wym make it into a cmd?

azure parcel
#

Like

#

When you type the command

dim wedge
#

like

  event-slot is 1:
    make player say "/test"```?
azure parcel
#

noo

#

like if you type

#

/workbe in chat or something

#

it will open that gui

dim wedge
#

oh

#

one sec

#

lemme try to find one of my gui skripts

azure parcel
#

okay

dim wedge
#
function gui(p: player):
    set {_gui} to a new chest inventory with 3 row with name "&cepik"
    set slot 0,1,2,3,4,5,6,7,8,9,10,11,12,14,15,16,17,18,19,20,21,22,23,24,25,26,27 of {_gui} to gray stained glass pane named "&cepik"
    set slot 13 of {_gui} to green stained glass pane named "&aStart"
    open {_gui} to {_p}

on inventory click:
    if name of event-inventory is "&cepik":
        cancel event
        make player say "/epik"
        stop

on right click:
  player's held item is sticky piston:
    gui(player)
#

@azure parcel

azure parcel
#

What about it?

dim wedge
#

oh

#

thats a skript

#

for

#

making it so that

#

when u click

#

in a specific gui

#

it makes u run a cmd

azure parcel
#

Oh

#

Still

#

do you know why the block wont work?

dim wedge
#

try that

#

I edited the msg

#

wait

#

one sec

dim wedge
#

copy that

#

and test that

azure parcel
dim wedge
#

yeha

#

so now rightclick a sticky piston

azure parcel
#

It works but I would like it so when I click a sticky piston that is already on the ground

dim wedge
#

ohhhhhhhhhhhhhh

azure parcel
#

and how do i add all of my crafting things

#

like for the AK

#

and stuff

dim wedge
#

I thought u meant

#

like

#

a thing u were holding

azure parcel
#

welli tried it both ways

#

and it didn't work

#

so Idk

dim wedge
#

but did the one I just sent work?

azure parcel
#

Yeah but now how do I add the crafting thingy that i had in mine?

#

Where if you have the materials you can make it

#

and stuff

dim wedge
#

oh

#

uh

#

just set it up in the gui

#

change stuff in gui