#Bubble skript help

1 messages · Page 1 of 1 (latest)

lyric nova
#
    if event-block is magenta stained glass:
        cancel event
        remove 1 magenta stained glass from player's inventory
        ```
can anyone help me, im trying to make it the rest so it makes a kinda hill 5 blocks high and 7 blocks wide how u do that
#

pls

#

i need this

lyric nova
#

Anyone?

lofty obsidian
#

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

lyric nova
#

That really does nothing

#

it just sends success

lofty obsidian
#

That's a temp do what you want with it

wraith lava
#

Why cancel and remove? Save a line and set the block to air

lyric nova
#

so

#

can u cant or not?

lyric nova
bright kelp
#

when u place ur block it place others blocks

lyric nova
#

yea

#

for 30 seconds

#

and then it delets

bright kelp
#

in fact a 5 by 7 rectangle

lyric nova
#

not rectangle

#

like a hill

bright kelp
#

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

wraith lava
#

just set the blocks

lyric nova
#

yes

#

sorry i was afk

lyric nova
bright kelp
#

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

lyric nova
#

i dont know

bright kelp
#

i made it real quick

lyric nova
#

uhhh

#

how do i do this math thingy

bright kelp
#

just so u see how to do it

lyric nova
#

uhm ok

#

im bad at skript but ok 😄

bright kelp
#

actually that do not make a hill

#

just a square

#

for a hill u need abit of math in that poopoo thing

lyric nova
#

its ok

#

ill just do it myself

bright kelp
#

but ill let u do it cuz dont have the time x)

lyric nova
#

ill try

bright kelp
#

yeah ! if u have a question @ me !

lyric nova
#

ok

bright kelp
#

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

lyric nova
#

ok

#

idk anything about loop blocks

#

bt ok

bright kelp
#

not that hard, you just make a loop that take for arguments, every blocks in a radius of 7

#

around the block u placed

lyric nova
#

ok

bright kelp
#

and then u compare coordinates of looped blocks with the coordinates of the block u placed

lyric nova
#

alr thx

bright kelp
#

np

lyric nova
#

what timme is it for u

bright kelp
#

2H15

#

it's like

#

ee

#

am in english

#

i think

#

morning

#

2h at the morning

lyric nova
#

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

bright kelp
#

yeah yo

lyric nova
#

@bright kelp it works but it fills in the bubble

bright kelp
#

sry

lyric nova
#

look

bright kelp
#

in the bubble ?

lyric nova
#

it makes the bubble

#

look

#

i just want the outlines

#

they are perfect

bright kelp
#

the sphere u mean ?

lyric nova
#

yes

bright kelp
#

lemme read

#

what is ur actual code ?

lyric nova
#
    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
#

lemme read this

#

bro why all the thing is missindented

lyric nova
#

no

#

its correctly indented

#

also

#

line 10 and 15

bright kelp
#

ye ?

lyric nova
#

is empty config

bright kelp
#

wym ?

lyric nova
#

look

bright kelp
#

show me

lyric nova
bright kelp
#

yeah that bc it's missindented

lyric nova
#

ok

#

cn u is fix

bright kelp
#

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```
lyric nova
#

can u make it just a outline

bright kelp
#

might be good

lyric nova
#

also it doees it for every block

#

idk why

bright kelp
#

?

#

outlin e ?

#

outline

#

wait

#

actually

#

nvm

lyric nova
#

btw

#

indention error

bright kelp
#

yeah

#

that bc of discord

lyric nova
#

oh

bright kelp
#

hes removing my indentation

lyric nova
#

its the same thing

#

bro

bright kelp
#

here

lyric nova
#

also line 10 and 15

bright kelp
#

indentation might be good now

#

it may give u a square

#

5 by 7

lyric nova
#

but

#

its 8 spaces

#

not 24

bright kelp
#

?

lyric nova
#

line 8-19

#

only 8 spacces

bright kelp
#

why

lyric nova
#

idk

bright kelp
#

why would it be 8

lyric nova
#

it sayws in the error

bright kelp
#

oh

#

lemme see

#

the error

#

i think i know what u mean

lyric nova
bright kelp
#

yeah

#

that because

#

i used notes

#

so

#

actually what u need to do

lyric nova
#

lol

bright kelp
#

is delete the indentation and rewrite it by spamming ur escape bar

lyric nova
#

ok

bright kelp
#

cuz it dont accept auto indent with tab

#

it has to be space

lyric nova
#

uhh

bright kelp
#

im doing it

#

waitasec

lyric nova
#

9-18 no loop-vlock

bright kelp
#

might be better

lyric nova
#

brb

bright kelp
#

stupid minehut editor

#

so ?

lyric nova
#

ok

#

back

#

it worksk but it fills the bubble in

#

@bright kelp

bright kelp
#

ayo

lyric nova
lyric nova
#

pls

bright kelp
#

im thinking

lyric nova
#

oke

bright kelp
#

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

lyric nova
#

ok

#

it just doesnt work @bright kelp

#

it takes 1 away from me

#

but it doesnt work

bright kelp
#

ay

#

so basically

#

that because i compare with > and < operands

lyric nova
#

so can u fix it

#

or

bright kelp
#

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

lyric nova
#

i did

#

but its not

bright kelp
#

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

lyric nova
#

ok

#

can u do ?

#

bc i suck with loops

bright kelp
#

yeye ill make it real quick

#

if it dont take too much time

#

ok

lyric nova
#

@bright kelp

#

sorry

bright kelp
lyric nova
#

but can u make sphere

#

with

#

this plugin

#

the docs are

#

[vector ]sphere with radius %number%(,| and) density %number%

bright kelp
#

?

#

u want sphere ?

lyric nova
#

ex:
set {_sphere::*} to sphere with radius 1 and density 5

#

yes

bright kelp
#

just loop blocks in radius of sphere

lyric nova
#

idk how

#

i just need a sphere

bright kelp
#

for a rectangle

lyric nova
#

i need sperher tho

#

:sad:

bright kelp
#

this

#

make a sphere with a radius of 7

#

not that hard

lyric nova
#

it just makes big wall

lyric nova
#

i think

lyric nova
bright kelp
#

sphere works no ?

lyric nova
#

its kinda a sphere

#

but not spherre im looking for

bright kelp
bright kelp
lyric nova
#

basically

#

its like 3-4 blocks up in a square box, then it starts forming a sphere

bright kelp
#

pic ?

lyric nova
#

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

bright kelp
#

?

#

like

#

half a sphere ?

#

u want ?

lyric nova
#

ig

#

if theres no other option

#

if u can make it a full sphere then pls. do

bright kelp
#

it is

lyric nova
#

nope

#

its 3 blocks up

#

3-4

#

then it starts forming

bright kelp
#

wym it's start forming

lyric nova
#

actually

#

its good

bright kelp
#

like side of the sphere are flat ?

#

ayo

lyric nova
#

its fine

#

ill just go with it

#

can u make the inside air

#

with like radious 6 air

#

idk how rip

stable phoenix
#

Instead of am addon

bright kelp
#

oh like it's air inside

#

ahem

bright kelp
#

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

lyric nova
#

@stable phoenix

#

wwait how

lyric nova
#

howw

#

@bright kelp

bright kelp
#

no

#

the inside is air

lyric nova
#

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```
bright kelp
#

uh u want so id doesnt break grass ?

#

just add a
if loop-block is grass:
pass

lyric nova
#

ok

#

but

#

there is like 1 million blocks in my thing

#

bruhhhhh

stable phoenix
#

Then only use 1 loop

#

Easy

lyric nova
#

no

#

it will still override with the ground

stable phoenix
#

Not if you do it correctly

lyric nova
#

wdym

#

it dont matter if u do

lyric nova
#

theres no loop that matches loop-block

bright kelp
lyric nova
#

it doesnt match

bright kelp
#

"loop blocks in a radius of 7 around event-block" loop

#

u need to be on this loop for this to work

lyric nova
#

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

bright kelp
#

??

#

where did u even placed it

lyric nova
#

idk why

#

i deleted

bright kelp
#

oh

lyric nova
#
    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

bright kelp
bright kelp
lyric nova
#

ik

lyric nova
#

cant understand pas @bright kelp

#

pass

bright kelp
#

yeah pass doesnt exist

#

i think there is an alternative for it

#

but dont remember it

lyric nova
#
    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

bright kelp
#

that bc of ur 1000 loops after

#

they ignore the first one

lyric nova
#

when u do stop it dont work

bright kelp
#

missindented

lyric nova
#

when u do 1 it doesnt work

#

no

#

where

bright kelp
#

everywhere bro

#

y have like 6 loops after that ignore the first one and replace dirt by air

lyric nova
#

can u fix then?

#

bc

lyric nova
bright kelp
#

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

lyric nova
#

doesnt work tho

#

but ok

#

nope

#

doesnt work

#

ima see if skunity can help

autumn apex
#

any errors?

autumn apex
#

ah nvm, lusk syntax

#

there's tons of wrong stuff here lol

autumn apex
#
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

lyric nova
#

lol

lyric nova
#

idk if its a spoon

#

its just something long and it hurts

lyric nova
#

btw @autumn apex

#

how do u make it so it also doesnt do for lime terracotta

hushed stirrup
#

don't ping people

small stream
#

boi ain't no way thats still your name 😭

lyric nova
autumn apex
lyric nova
#

Yo

#

Idk how

autumn apex
#

use brain

lyric nova
#

lol

#

nah

#

I have like a million blocks 😭

autumn apex
#

ok, hint, its the of statement

lyric nova
#

Of?

autumn apex
#

if*

lyric nova
#

Ik

#

but

#

Wouldn’t it keep indenting

#

Like

#

A billion times

autumn apex
#

ok another hint

#

imma give an example

#
if player's tool is diamond sword **or** diamond pickaxe
lyric nova
#

what does that

#

Have to do

#

With anything

olive grove
#

if loop value = lime terracotta stop the loop