Chest Animation Plugin

Hey, there!

What i need is a plugin that can start a chest animation (and close animation)
on a command, (needs to work on a commandblock)
So something like:

  • /chestani create [name] {Creates a location}
  • /chestani on/off [name] {Sets a location on or off}
  • /chestani remove [name] {Removes a Location}
  • /chestani list {List of all Locations}

I hope somebody can help me

AncientPixel

Sadly chest animation is not possible in Sponge as far as I know (have not looked at api for 1.12).

It’d be possible, just maybe not with the current API.

Tapping into NMS, or using PacketGate might work for now.

That said, I’m not sure of how you would expose this in the API. Might be something for Data or Contextual Data? I realize it’s hooked into the amount of players looking at the chest, so maybe something with fake players opening it?

I realise it is possible using NMS but the amount of nms programmers vs spongeApi is much smaller as sponge plans to implement all of nms.

As for implementing it in the api. Maybe something like

Viewer.sendChestChange(Vector3i loc, boolean chest);

Or add it to chest TileEntity and then

Viewer.sendTileEntity(Vector3i loc, TileEntity tile);

That second way means you could also add the sending of specific text on a sign (i know you can do it with the blockstate version, but still)