#Bubble skript help
1 messages · Page 1 of 1 (latest)
Anyone?
I think not know in new to script but I think its on block place cat:
I will give better advice give me 1sec
on block terracota place:
send "success" to player
That's a temp do what you want with it
Why cancel and remove? Save a line and set the block to air
im trying to make it the rest so it makes a kinda hill 5 blocks high and 7 blocks wide how u do that
like
when u place ur block it place others blocks
in fact a 5 by 7 rectangle
ehm
a hill is abit more complicated to do but yeah u can do it
that just formula
lemme show you
u want 7 in hight ?
@lyric nova
just set the blocks
yea
so
on block place:
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
set {_y} to y coordinate of event-block
set {_x} to x coordinate of event-block
set {_z} to z coordinate of event-block
loop blocks in radius 7 around event-block:
if y coordinate of loop-block < ({_y}+5):
if x coordinate of loop-block < {_x}+7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass
if x coordinate of loop-block < {_x}-7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass
something like that
i dont know
i made it real quick
just so u see how to do it
actually that do not make a hill
just a square
for a hill u need abit of math in that poopoo thing
but ill let u do it cuz dont have the time x)
ill try
yeah ! if u have a question @ me !
ok
but so in principe you loop blocks around the block u placed
and see if they are in a correct range
if they are u set them as a magenta stained glass
or whatever u want
not that hard, you just make a loop that take for arguments, every blocks in a radius of 7
around the block u placed
ok
and then u compare coordinates of looped blocks with the coordinates of the block u placed
alr thx
np
what timme is it for u
oj ok
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
set {_y} to y coordinate of event-block
set {_x} to x coordinate of event-block
set {_z} to z coordinate of event-block
loop blocks in radius 7 around event-block:
if y coordinate of loop-block < ({_y}+5):
if x coordinate of loop-block < {_x}+7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass
if x coordinate of loop-block < {_x}-7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass```
@bright kelp
how fix line 10 and 15
its not a error
empty config
also
it fills in the thing
it fills in the bubbl
yeah yo
@bright kelp it works but it fills in the bubble
sry
wym ?
look
in the bubble ?
the sphere u mean ?
yes
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
set {_y} to y coordinate of event-block
set {_x} to x coordinate of event-block
set {_z} to z coordinate of event-block
loop blocks in radius 7 around event-block:
if y coordinate of loop-block < ({_y}+5):
if x coordinate of loop-block < {_x}+7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass
if x coordinate of loop-block < {_x}-7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass```
ye ?
is empty config
wym ?
look
show me
yeah that bc it's missindented
yeah
sec
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
set {_y} to y coordinate of event-block
set {_x} to x coordinate of event-block
set {_z} to z coordinate of event-block
loop blocks in radius 7 around event-block:
if y coordinate of loop-block < ({_y}+5):
if x coordinate of loop-block < {_x}+7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass
if x coordinate of loop-block < {_x}-7:
if z coordinate of loop-block < {_z}+7:
set loop-block to magenta stained glass
if z coordinate of loop-block < {_z}-7:
set loop-block to magenta stained glass```
can u make it just a outline
might be good
oh
hes removing my indentation
also line 10 and 15
?
why
idk
why would it be 8
it sayws in the error
lol
is delete the indentation and rewrite it by spamming ur escape bar
ok
uhh
9-18 no loop-vlock
brb
Wth
ayo
hweo
im thinking
oke
try this
i think it's a thing with negative coordinates
boring
what ive send u isnt supposed to work
but should give u a different shape
just to verify smthng
but when you have somes negatives coordinates it freakd up the thing
like
reput the skript i gave
u
before the last one
and try to go on positive coordinates
and it should works
god
am i dumb or what
actally there is another way to do it
and seems more simple
u make a loop that increment x, y and z coordinates according to the shape you want
and just set a magenta block everytime u pass trought the loop
but can u make sphere
with
this plugin
the docs are
[vector ]sphere with radius %number%(,| and) density %number%
just loop blocks in radius of sphere
still fills in
sphere works no ?
ayo this thing going to piss me off
wym ?
pic ?
actually not a square
but it just goes 3-4 blocks up as a circle
thenn forms the sphere part
if u cant do it diff
then its ok just do like this
also i think i now how to fix
just make the same code but with air
so radious 6 air
it is
wym it's start forming
its fine
ill just go with it
can u make the inside air
with like radious 6 air
idk how rip
Just use a spherical vector and do the math yourself
Instead of am addon
idk how
wait
mistake
here
think it make the job
but if u just want a empty sphere for like a build
just use worldedit
with //hsphere
nope
for me it isnt
i kinda fixed it
can u help
@bright kelp
now its also going 7 blocks in the ground
how fix
or at least
make it so it doesnt override the grass
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
loop blocks in radius 7 around event-block:
set loop-block to magenta stained glass
loop blocks in radius 6 around event-block:
set loop-block to air
loop blocks in radius 5 around event-block:
set loop-block to air
loop blocks in radius 4 around event-block:
set loop-block to air
loop blocks in radius 3 around event-block:
set loop-block to air
loop blocks in radius 2 around event-block:
set loop-block to air
loop blocks in radius 1 around event-block:
set loop-block to air```
if u do manually
it works
but barely
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
loop blocks in radius 7 around event-block:
set loop-block to magenta stained glass
loop blocks in radius 6 around event-block:
set loop-block to air
loop blocks in radius 5 around event-block:
set loop-block to air
loop blocks in radius 4 around event-block:
set loop-block to air
loop blocks in radius 3 around event-block:
set loop-block to air
loop blocks in radius 2 around event-block:
set loop-block to air
loop blocks in radius 1 around event-block:
set loop-block to air```
Not if you do it correctly
it doesnt understand loop-block ?
theres no loop that matches loop-block
the loop "loop blocks" match loop block
it doesnt match
"loop blocks in a radius of 7 around event-block" loop
u need to be on this loop for this to work
i did
can u do
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
loop blocks in radius 7 around event-block:
set loop-block to magenta stained glass
loop blocks in radius 6 around event-block:
set loop-block to air
loop blocks in radius 5 around event-block:
set loop-block to air
loop blocks in radius 4 around event-block:
set loop-block to air
loop blocks in radius 3 around event-block:
set loop-block to air
loop blocks in radius 2 around event-block:
set loop-block to air
loop blocks in radius 1 around event-block:
set loop-block to air```
i tried
after set loop-block to magenta stained glass
oh
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
loop blocks in radius 7 around event-block:
set loop-block to magenta stained glass
if loop-block is grass:
if loop-block is lime teracotta:
loop blocks in radius 6 around event-block:
set loop-block to air
loop blocks in radius 5 around event-block:
set loop-block to air
loop blocks in radius 4 around event-block:
set loop-block to air
loop blocks in radius 3 around event-block:
set loop-block to air
loop blocks in radius 2 around event-block:
set loop-block to air
loop blocks in radius 1 around event-block:
set loop-block to air
```
@bright kelp
bro what is this thing
ik
yeah pass doesnt exist
i think there is an alternative for it
but dont remember it
if event-block is magenta stained glass:
cancel event
remove 1 magenta stained glass from player's inventory
loop blocks in radius 7 around event-block:
if loop-block is grass:
cancel event
set loop-block to magenta stained glass
loop blocks in radius 6 around event-block:
set loop-block to air
loop blocks in radius 5 around event-block:
set loop-block to air
loop blocks in radius 4 around event-block:
set loop-block to air
loop blocks in radius 3 around event-block:
set loop-block to air
loop blocks in radius 2 around event-block:
set loop-block to air
loop blocks in radius 1 around event-block:
set loop-block to air
```
i tried cancel event
no errors
but it still does it
when u do stop it dont work
missindented
everywhere bro
y have like 6 loops after that ignore the first one and replace dirt by air
this doesnt work
bro make an effort
it works
it's just that u have to replace name of blocks
that actually not grass
but grass block
and here u are
any errors?
what the hell is pass
ah nvm, lusk syntax
there's tons of wrong stuff here lol
what the f is that!
on block place:
if event-block is magenta stained glass:
cancel event
loop Sphere(7):
set {_loc} to location of event-block ~ loop-value
if block at {_loc} is not grass block:
set block at {_loc} to magenta stained glass
reduce item amount of player's tool by 1
function Sphere(radius:num) :: vectors:
loop 45 times:
loop 45 times:
add spherical vector radius {_radius}, yaw (loop-value-1 * 8), pitch (loop-value-2 * 8) to {_v::*}
return {_v::*}
@lyric nova :p
i apologize skript community for spoon feeding :d
lol
i dont like spoons, uncle jim shoved one up my butt and it hurts 😭
idk if its a spoon
its just something long and it hurts
UR A LEGEND
btw @autumn apex
how do u make it so it also doesnt do for lime terracotta
don't ping people
boi ain't no way thats still your name 😭
I forgot to change it 💀
then do it for lime terracotta!
use brain
ok, hint, its the of statement
Of?
if*
ok another hint
imma give an example
if player's tool is diamond sword **or** diamond pickaxe
if loop value = lime terracotta stop the loop