Effect.MOBSPAWNER_FLAMES is enormous! Why?

Discussion in 'Plugin Development' started by phondeux, Dec 17, 2011.

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

    phondeux

    I thought it would be cool to grab that Effect.MOBSPAWNER_FLAMES and have it over my admins heads as a crown of fire ... but the effect is enormous and not the size you see in a spawner! Did I do something wrong?

    Here's the line in my code calling it;
    Code:
    aPlayer.getWorld().playEffect(haloLoc, Effect.MOBSPAWNER_FLAMES, 20);
    
    Where 'haloLoc' is the x,y,z right above the players head. I chose smaller numbers for the third parameter but it just seemed to set how long the effect lasted and not its size.
     
  2. Offline

    Chiller

    Thats what also happens to me... The flame is huge...
     
  3. Offline

    nickrak

  4. Offline

    Chiller

  5. Offline

    DrBowe

    @Chiller

    How big are we talking here? Can I get a screenshot, out of curiosity?
     
  6. Offline

    Chiller

    Yup here you go:
    [​IMG]
     
  7. Offline

    DrBowe

    r3Fuze, Chiller, Borch and 1 other person like this.
  8. Offline

    Borch

    .playEffect(entity.getLocation(), Effect.MOBSPAWNER_FLAMES, 0);
    works just fine here...
     
  9. Offline

    Chiller

    I tried 0 and didn't show anything...
     
  10. Offline

    phondeux

    Ditto.

    What are the extra parameters supposed to do to the effect, anyway? I've not seen it listed anywhere in the documentation.
     
  11. Offline

    RazorFlint

    Wait... This would be awesome.
     
  12. Offline

    Chiller

    Code:
    void org.bukkit.World.playEffect    (Location location, Effect effect, int data, int radius)
    Plays an effect to all players within a given radius around a location.
    
    Parameters:
    location:    the Location around which players must be to hear the effect
    effect:    the Effect
    data:    a data bit needed for the RECORD_PLAY, SMOKE, and STEP effects
    radius:    the radius around the location
    What would?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  13. Offline

    RazorFlint

    To have an Admin crown, Reminds me of RuneScape :/
     
    Icyene likes this.
  14. Offline

    Chiller

    Hahahaha
     
    RazorFlint likes this.
  15. Offline

    phondeux

    Well fuck me, that's awesome!

    As it is, just having it be a big miasma cloud works well; combined with vanish my admins are now angry clouds of flame that scare that shit out of players on first sight.
     
  16. Offline

    Chiller

    Hahahaha!
     
  17. Offline

    phondeux

    Is there a way to constrain the cloud of flames down to one block? I've tried the alternate call on playeffect and it works down to passing a radius of 3 blocks, then fails to produce anything at 2 or less.
     
Thread Status:
Not open for further replies.

Share This Page