#Orbital strike cannon using SKRIPT.

1 messages · Page 1 of 1 (latest)

muted holly
#

@stray pond

steep vigil
#

Can you send your current code, then I can assist you after that.

muted holly
#
on fishing rod reel in:

    if player's tool is not set:
        stop
    if name of player's tool does not contain "Stab shot":
        stop

    set {_target_block} to player's target block
    if {_target_block} is not set:
        stop

    set {_ground_loc} to location of {_target_block}
    set {_strike_loc} to {_ground_loc}
    add 0 to y-coordinate of {_strike_loc}

    set {_x} to x-coordinate of {_strike_loc}
    set {_y} to y-coordinate of {_strike_loc}
    set {_z} to z-coordinate of {_strike_loc}

    execute console command "summon tnt %{_x}% %{_y}% %{_z}% {fuse:0}"

    set player's tool to air

    if event-projectile is set:
        kill event-projectile

    play sound "minecraft:entity.item.break" at volume 1 at pitch 1 to player

#

This is the logic for the fishing rod reel in, target set, name check, and the fishing rod breaking logic

#

I have gotten this far and i dont rll wanna give up on this idea

#

For some reason, it only explodes 1 block. for example, if i do it near a grass block, it destroys everything near it like stone etc. but if i do it on a stone block, itll only do it for that one block

steep vigil
#

Let me do some testing, then I'll assist you

muted holly
#

I'm not really that good at skripting haha

#

thank you for ur time

steep vigil
rotund dock
#

you could take some logic from this video https://www.youtube.com/watch?v=ZxwEgx0fGs4

So I decided to make a Nuclear Orbital Strike cannon in addition to recreating the normal Orbital Strike Cannons using only command blocks in vanilla minecraft. Then I decide to use them on a well known youtuber in a pvp battle with maces. This is the one of the best creations I have made in minecraft so far!

World download is on my discord se...

â–¶ Play video
muted holly
#

itll only explode one stone

muted holly
#

and js spawned creepers

#

with armor stands

#

orbital creeper cannon 😭

rotund dock
#

or do this ```on fishing rod reel in:

if player's tool is not set:
    stop
if name of player's tool does not contain "Stab shot":
    stop

set {_target_block} to player's target block
if {_target_block} is not set:
    stop

set {_ground_loc} to location of {_target_block}
set {_strike_loc} to {_ground_loc}
add 0 to y-coordinate of {_strike_loc}

set {_x} to x-coordinate of {_strike_loc}
set {_y} to y-coordinate of {_strike_loc}
set {_z} to z-coordinate of {_strike_loc}

create explosion with force 20 at {_strike_loc}

set player's tool to air

if event-projectile is set:
    kill event-projectile

play sound "minecraft:entity.item.break" at volume 1 at pitch 1 to player``` this might be a bit much but try this
muted holly
#

oh

#

create explosion with force 20 at {_strike_loc}

rotund dock
#

hmh

muted holly
#

yes, but how r u able to loop it from strike loc > -64

steep vigil
# rotund dock or do this ```on fishing rod reel in: if player's tool is not set: ...

This method works fine


    if player's tool is not set:
        stop
    if name of player's tool does not contain "Stab shot":
        stop

    set {_target_block} to player's target block
    if {_target_block} is not set:
        stop

    set {_ground_loc} to location of {_target_block}
    set {_strike_loc} to {_ground_loc}
    add 0 to y-coordinate of {_strike_loc}

    set {_x} to x-coordinate of {_strike_loc}
    set {_y} to y-coordinate of {_strike_loc}
    set {_z} to z-coordinate of {_strike_loc}

    create explosion with force 20 at {_strike_loc}
    broadcast "&c&lTNT Stab Shot &7| &f%player% has thrown a TNT!"
    broadcast "&7Location: &fX:%{_x}% Y:%{_y}% Z:%{_z}%"

    set player's tool to air

    if event-projectile is set:
        kill event-projectile

    play sound "minecraft:entity.item.break" at volume 1 at pitch 1 to player

command /giverod:
    permission: mob.admin
    trigger:
        give player fishing rod named "&cStab shot" with lore "&7Right click to throw a TNT" with item flag hide additional tooltip
        send "&aYou have been given a Stab shot fishing rod!" to player
muted holly
#

ah yes with force 20 at strike location BUT it doesnt go all the way to -64 (bedrock). thats what im trying to figure out

steep vigil
#

ohh

rotund dock
#

    if player's tool is not set:
        stop
    if name of player's tool does not contain "Stab shot":
        stop

    set {_target_block} to player's target block
    if {_target_block} is not set:
        stop

    set {_ground_loc} to location of {_target_block}
    set {_strike_loc} to {_ground_loc}
    add 0 to y-coordinate of {_strike_loc}

    set {_x} to x-coordinate of {_strike_loc}
    set {_y} to y-coordinate of {_strike_loc}
    set {_z} to z-coordinate of {_strike_loc}

    loop blocks below {_strike_loc}:
        if y-coord of loop-value > -64:
            create explosion with force 20 at loop-value
        else:
            exit 1 loop
    set player's tool to air

    if event-projectile is set:
        kill event-projectile

    play sound "minecraft:entity.item.break" at volume 1 at pitch 1 to player```
muted holly
#

i see

#

whatever height i set it to though

#

it doesnt reach bedrock

#

the level i want to reach

#

it takes 2 nukes

#

to reach bedrock

muted holly
#

i set it to -6000, same thing

#

yes

#

that one

#

which i find weird

rotund dock
#

hm

#

strange

muted holly
#

it stops at a certain height

#

which is

#

9

steep vigil
# muted holly

Cause it destroys 251 blocks for me (553 blocks in the air)

muted holly
#

why not more though

#

why doesnt it explode to bedrock

steep vigil
#

It does explode to bedrock

#

The height limit is below 253 I believe

muted holly
#

but

#

im exploding from 112

steep vigil
#

Let me try something for you

muted holly
#

okay

muted holly
#

i could loop it 3x?

steep vigil
#

That's what I thought, but it didn't work still

muted holly
#

loop the explosion from the location it ends

#

and start there

#

again

#

with no delay

#

ohj

#

repeat 2 times:
loop {_i} from {_lastY} down to -64:
create explosion with force 5 at location({_x}, {_i}, {_z})

#

this doesnt work

#

repeat

#

💔

#

it should work

#

right

#

@steep vigil

#

i might be the goat

#

works perfectly

#

try it

muted holly
#

@rotund dock

#

create explosion with force 5 at {_strike_loc} this right

#

is there a way to change the damage

#

of the explosion force?

rotund dock
#

Up the force or multiple tnts

muted holly
stray pond
#

unfortunately I was sleeping

#

did these two manage to help you?

#

do you still need help with anything?

wispy saffron
#

@muted holly Ivehad this for a while and I use it to troll sometimes, it makes a pretty perfect huge circle and it can cause some lag depending on the server, I just use tnt minecarts for more radius & damage.

#

You can also change the size of the rings as it makes a ring of tnt every whatever number there so currently everything in 105 blocks would be destroyed (bigger since it's tnt minecarts and not tnt)

#
command /nuclearmissile:
    permission: op
    trigger:
        set {_center} to location of player
        loop all players in radius 80 around player:
            send "&c&l NUCLEAR MISSILE INCOMING!!!!!!" to loop-player
        set {_rings::*} to 3, 6, 9, 12, 15, 18, 21, 24, 27, 30, 33, 36, 39, 42, 45, 48, 51, 54, 57, 60, 63, 66, 69, 72, 75, 78, 81, 84, 87, 90, 93, 96, 99, 102, 105
        loop {_rings::*}:
            wait 2 ticks
            set {_radius} to loop-value
            loop 80 times: 
                set {_angle} to loop-number * (360 / 50)
                set {_x} to {_radius} * cos({_angle})
                set {_z} to {_radius} * sin({_angle})
                set {_spawnloc} to {_center} offset by vector({_x}, 5, {_z}) 
                spawn minecart with tnt at {_spawnloc}



#

The warning is uh, not really needed lol since it instantly blows up I just added it to look cool

#

I know there's better ways instead of manually writing out every number.

steep vigil
wispy saffron
steep vigil
wispy saffron
#

But no I've had this for some time now

rotund dock
#

you could use sperical vectors btw