Search
Setup for Free
⛄R/S
⛄ R74n / Sandboxels
•
2y ago
popular-magenta
I need to know how to look for water and a shock
I need to know how to look for water and a shock
⛄ R74n / Sandboxels
Join
Sandboxels: Experiment with 500+ elements in your web browser. Chat about all R74n projects here!
13,895
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
T
then-purple
•
5/2/24, 8:11 PM
look at sensor or smth idk
P
popular-magenta
OP
•
5/2/24, 8:11 PM
And pixel function from my potato chips I assume
G
guzzo86
I need to know how to look for water and a shock
N
nousernamefound
•
5/2/24, 8:13 PM
iterate either over squareCoords or adjacentCoords
, check pixelmap element for water
N
nousernamefound
•
5/2/24, 8:13 PM
then do the same but for elements that have a conduct value and set their charge to 1
S
sacred-rose
then do the same but for elements that have a conduct value and set their charge...
P
popular-magenta
OP
•
5/2/24, 8:21 PM
ermm what
S
sacred-rose
then do the same but for elements that have a conduct value and set their charge...
P
popular-magenta
OP
•
5/2/24, 8:22 PM
wait can I make the generator conduct the first bit of electricity
P
popular-magenta
OP
•
5/2/24, 8:22 PM
?
?
?
N
nousernamefound
•
5/2/24, 8:22 PM
you could also set the charge of itself to 1 yes
P
popular-magenta
OP
•
5/2/24, 8:22 PM
Oo ok
!
P
popular-magenta
OP
•
5/2/24, 8:22 PM
wait what would I do for that
?
N
nousernamefound
•
5/2/24, 8:23 PM
pixel
.charge
= 1
P
popular-magenta
OP
•
5/2/24, 8:23 PM
Kk
!
P
popular-magenta
OP
•
5/2/24, 8:23 PM
:DD
S
sacred-rose
pixel.charge = 1
P
popular-magenta
OP
•
5/2/24, 8:25 PM
How can I make
. anew category
?
N
nousernamefound
•
5/2/24, 8:26 PM
just type it in like usual
N
nousernamefound
•
5/2/24, 8:26 PM
category
:
"AAAAH
" makes a new category called AAAAH
P
popular-magenta
OP
•
5/2/24, 8:28 PM
Kk
P
popular-magenta
OP
•
5/2/24, 8:28 PM
OH ALR
S
sacred-rose
category: "AAAAH" makes a new category called AAAAH
P
popular-magenta
OP
•
5/2/24, 8:31 PM
How can I make a variable inside of an element
P
popular-magenta
OP
•
5/2/24, 8:31 PM
like for that specific element
P
popular-magenta
OP
•
5/2/24, 8:31 PM
preferably in a tick function
S
sacred-rose
category: "AAAAH" makes a new category called AAAAH
P
popular-magenta
OP
•
5/2/24, 8:34 PM
but tysm
P
popular-magenta
OP
•
5/2/24, 8:39 PM
How can I make a variable in an element
P
popular-magenta
How can I make a variable in an element
C
clean-aquamarine
•
5/2/24, 8:40 PM
Huh
P
popular-magenta
OP
•
5/2/24, 8:40 PM
like custom per each pixel of an element
C
clean-aquamarine
Huh
P
popular-magenta
OP
•
5/2/24, 8:41 PM
a variable in an element
P
popular-magenta
OP
•
5/2/24, 8:41 PM
like custom to each pixel
C
clean-aquamarine
•
5/2/24, 8:41 PM
uh
C
clean-aquamarine
•
5/2/24, 8:41 PM
Huh
?
?
?
?
?
C
clean-aquamarine
•
5/2/24, 8:42 PM
Idk
P
popular-magenta
OP
•
5/2/24, 8:44 PM
Hmm
P
popular-magenta
OP
•
5/2/24, 8:44 PM
me wither
N
nousernamefound
•
5/2/24, 8:53 PM
pixel
.variable
= value
S
sacred-rose
pixel.variable = value
P
popular-magenta
OP
•
5/2/24, 8:58 PM
Oo
P
popular-magenta
OP
•
5/2/24, 8:58 PM
do i just put pixel
.variable
=
?
P
popular-magenta
OP
•
5/2/24, 9:00 PM
like
S
sacred-rose
pixel.variable = value
P
popular-magenta
OP
•
5/2/24, 9:01 PM
elements.gas_generator = { color: "#FFDD0D", pixel.variable = 0, }
elements.gas_generator = { color: "#FFDD0D", pixel.variable = 0, }
P
popular-magenta
OP
•
5/2/24, 9:01 PM
How do I use it correctly
?
N
nousernamefound
•
5/2/24, 9:01 PM
my brother in christ
N
nousernamefound
•
5/2/24, 9:01 PM
you cant define variables IN AN OBJECT
N
nousernamefound
•
5/2/24, 9:01 PM
STOP DOING THAT
N
nousernamefound
•
5/2/24, 9:02 PM
if you want it to be something it default spawns with
, do this
:
properties
:
{
variable
: 0
,
}
S
sacred-rose
if you want it to be something it default spawns with, do this: properties: { va...
P
popular-magenta
OP
•
5/2/24, 9:08 PM
Ohhh
S
sacred-rose
my brother in christ
P
popular-magenta
OP
•
5/2/24, 9:08 PM
Accurate start for ppl to be annoyed by me
S
sacred-rose
if you want it to be something it default spawns with, do this: properties: { va...
P
popular-magenta
OP
•
5/2/24, 9:09 PM
Can I rename variable
?
N
nousernamefound
•
5/2/24, 9:10 PM
yes
S
sacred-rose
yes
P
popular-magenta
OP
•
5/2/24, 9:14 PM
How
?
N
nousernamefound
•
5/2/24, 9:14 PM
wdym how
.
P
popular-magenta
OP
•
5/2/24, 9:14 PM
and how do I call upon said variable
N
nousernamefound
•
5/2/24, 9:14 PM
just dont type variable
Next page
elements.gas_generator = {
color: "#FFDD0D",
pixel.variable = 0,
}
elements.gas_generator = {
color: "#FFDD0D",
pixel.variable = 0,
}