1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Creating wings with particle?

Discussion in 'Development' started by korado531m7, Dec 31, 2016.

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

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
    hi. i want to create a wings with particle (like hyp*xel)
    How to write this code?
    Thank you for answering.
     
  2. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    can you kindly don't just say like XYZ, don't just assume everyone knows what XYZ is
    hint something like a picture/screenshot
     
    Sandertv likes this.
  3. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
  4. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
  5. korado531m7

    korado531m7 Slime

    Messages:
    77
    GitHub:
    korado531m7
    yes. i want to make this particle
     
  6. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    korado531m7 and jasonwynn10 like this.
  7. jasonwynn10

    jasonwynn10 Moderator Poggit Reviewer

    Messages:
    1,489
    GitHub:
    jasonwynn10
  8. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    It's not that hard. It's basically setting particles with for loops at a spacing. Best way is to use a config like this
    XPX
    XPX
    XPX
    XPX
    where, for example X is no particle and P is particle and you always put spaces between that. the real challenge will be aligning that to the back of the player
     
  9. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    You need to be good at math to do this.
     
  10. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    spawning the particles? no

    PHP:
    /** PSUEDO CODE */
    #imitating config
    $yay ="XPXXP
    XPXXP"
    ;
    $layout explode(PHP_EOL$yay);
    for(
    $y count($layout) + $startY$y >= $startY$y--){
      for(
    $x strlen($layout[$y]) + $startX$x >= $startX$x--){
        if(
    $layout[$y][$x $startX] == "P"){
        
    //spawn particle at x y (z)
        
    }
      }
    }
    that would only work for one direction though ( you have to use -x x z -z for the rotations)
     
    korado531m7 likes this.
  11. XenialDan

    XenialDan Baby Zombie

    Messages:
    141
    GitHub:
    thebigsmilexd
    Hell no, you don't. PHP calculates, you don't.
     
  12. XenialDan

    XenialDan Baby Zombie

    Messages:
    141
    GitHub:
    thebigsmilexd
    You wouldn't get any rotation stuff at all ;)
    You must be a genius to create it for any rotation.
     
    [deleted] likes this.
  13. Jack Noordhuis

    Jack Noordhuis Zombie Pigman Poggit Reviewer

    Messages:
    618
    GitHub:
    JackNoordhuis
     
  14. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    1. Nobody here wanted to steal any code!
    2. Says the guy who copied nearly a whole WorldEdit plugin
     
    Last edited: Jan 3, 2017
  15. archie426

    archie426 Baby Zombie

    Messages:
    130
    GitHub:
    archie426
    And also copied everything into C******* that was commited
     
    Muqsit, imYannic, Magicode and 2 others like this.
  16. robske_110 (Tim)

    robske_110 (Tim) Wither Skeleton Poggit Reviewer

    Messages:
    1,342
    GitHub:
    robske110
    Creating that for rotation isn't that hard. And you know what? Because you said you must be genius, I'll do it, publish it under MIT, and then I am supposedly a genius...
     
  17. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
  18. xBeastMode

    xBeastMode Shog Chips

    Messages:
    0
    It's supposed to be "GET REKT, M8"
     
    archie426, Muqsit, HBIDamian and 3 others like this.
  19. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Don't correct... Google doesn't like it when Google get's corrected. Google corrects you.
     
    xBeastMode, dktapps, Sandertv and 3 others like this.
  20. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Back to @korado531m7, you posted in the Plugin Development section. Do you have any progress, or anything that could help us help you? (Otherwise, this whole thread created a very dumb argument, and nothing else- And in the wrong section, at that!)
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.