How to make a vector constant?

Discussion in 'Plugin Development' started by ChipDev, Dec 17, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ChipDev

    aye guys,
    I've (and hopefully you) have played Chrismas Chaos, for one ,fun, and the other, videos showing it and how awesome the falling blocks are constantly floating about 1 pixel above the surface of the block; floating!
    Is it negative vectors? thanks,
    me.
     
  2. Offline

    Webbeh

    Just set a null velocity to all the blocks you want every tick ?
     
  3. Offline

    ChipDev

    But fallingsand gains velocity.
     
  4. Offline

    Webbeh

    Are you sure those were fallingblocks ? You can go through fallingblocks. You can easily cancel the physics events of normal sand, just listen to BlockPhysicsEvent, and if the block is Sand, cancel the event. It'll fire a few times (5 iirc) and then just stop, but a block change next to that block will trigger other physics events.
     
  5. Offline

    Funergy

    Last edited: Dec 18, 2014
  6. Offline

    Mr_toaster111

    @ChipDev You could maybe set the falling block as a passenger of a mob such as a pig.
     
  7. Offline

    Funergy

  8. Offline

    ChipDev

  9. Offline

    Funergy

    @ChipDev :O
    Tried doing it with protocolLib?
     
  10. Offline

    ChipDev

    Nah, Ill try more :p
     
  11. Offline

    Funergy

    TwerkinCraft and ChipDev like this.
  12. Offline

    TwerkinCraft

    I think there was a way to do just what you were asking by creating a custom Falling block class extending EntityFallingBlock
     
  13. Offline

    Funergy

    @TwerkinCraft How that resource is working that I provided in a post.
    It spawns a bat and he makes it invisible with some NMS code he sets the passenger a falling block
    Make sure that the bat cant move (done by creating a custom entity that extends EntityBat)
     
Thread Status:
Not open for further replies.

Share This Page