#Its not working any ideas?
1 messages · Page 1 of 1 (latest)
I click the sticky Piston and nothing Happens
mabye add some debug code like:
broadcast "test"
player's group is "sd":
broadcast "test2"
Workbench(player)```
No It Doesn't work 😦 Do I need a special Script addon or something of the sorts
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:```
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
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 \
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)
?
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
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
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
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
if u needed addons it would give an error
oh
so when u place sticky piston nothing happens/
?
try:
event-block is stone:
broadcast "test"```
yup
just to see if that works
no
it doesnt work?
wait
it says block place
that means when you place the block
not right click it
yeah
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
right here
u said when u click it on the ground
thats why I did on block place:
Ohh Im sorry for the confusion I meant like when its on the ground or anywhere placed already and you right click it
yeah
yup that works
then im guessing the issue is something in the function
is it possible to make it into a command tho?
wym make it into a cmd?
like
event-slot is 1:
make player say "/test"```?
okay
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
What about it?
oh
thats a skript
for
making it so that
when u click
in a specific gui
it makes u run a cmd
ok here
copy that
and test that
It works but I would like it so when I click a sticky piston that is already on the ground
ohhhhhhhhhhhhhh
that explains why it wsant working
I thought u meant
like
a thing u were holding
but did the one I just sent work?