searching for the beacon effect

Discussion in 'Plugin Development' started by Sehales, Nov 6, 2012.

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


    Hi, is there a way to create the light beam of the beacon at one position? I think it is possible over net.minecraft.server but I can't find something useful...

  2. Offline


    I am looking for this as well, I would really love it if Bukkit set us up with an API method for this.
  3. Offline


    This definitely needs a bump.
  4. Offline


    Are there entities involved?

    You can place a beacon and try getting all entities on that chunk. See if it gives any.
    Maybe try checking Notch entities if none found.
    ZeusAllMighty11 likes this.
  5. Offline


    It's totally client-side I think. Pretty sure it will just occur whenever there's a beacon?
  6. Offline


    I was curious when it first came out, never looked into it, but I don't believe so, since there can be a beacon built, but turned off.
  7. Offline


    Looking at the source code, it doesn't look like the rendered effect is transmitted in any way. The method that will determine if a beacon can be activated or not will save the result to a private variable, which is not transmitted in the tile entity.

    But there's a simpler way of figuring this out. Just send a fake block change to the client, breaking the beacon pyramid. If the effect is still visible, then you know it's server-side. If it disappears, even though the potion effects are still active, it's client side.

    I used BlockPatcher in my simple experiment. Here's the result:

    That looks pretty definitive to me. :)
Thread Status:
Not open for further replies.

Share This Page