Jump to content

Moving Blocks Skript


AngerYT

Recommended Posts

Please Note that this code is typed by my and it looks fimular to ohters:

 

function sBlock(l: location, type: material, collisions: boolean = true):
    set {_w} to world of {_l}
    set {_type} to "%{_type}%"
    replace all " " in {_type} with "_"
    spawn falling block at {_l} with nbt "{NoGravity:1b,BlockState:{Name:""minecraft:%{_type}%""},Time:1}"
    register(last spawned entity)

    set {_e} to last spawned entity
    stop if {_collisions} is not true
    spawn armor stand 1.95 below {_l} with nbt "{Invisible:1b,NoGravity:1b,Invulnerable:1b}"
    register(last spawned entity)

    set {_ar} to last spawned armor stand
    set block 1.5 above {_ar} to air
    spawn shulker at location(0, 0, 0, {_w}) with nbt "{NoAI:1b,Silent:1b,NoGravity:1b,Invulnerable:1b}"
    register(last spawned entity)
    apply potion of invisibility without any particles to last spawned entity for 10000 seconds
    set {_e2} to last spawned entity
    make {_e2} and {_e} ride {_ar}

 

 

Wanna Download The .sk? Please Wait till its updated! (I cant create one yet :/)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...