Jump to content

Movable blocks lol


Death_Source

Recommended Posts

They move cause yeah

Also collisions so yeah fun

image.thumb.png.cd4d258010334a268e204916f2f1510c.png

Snippet:


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}

Download from the file here or check out the spigot link lol https://www.spigotmc.org/resources/augmentedblocks-skripted-movable-falling-blocks-with-collisions.94570/

AGBlocks-1.0.sk

  • Thanks 1
Link to comment
Share on other sites

  • 10 months later...

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...