Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Create wings with particles

Comments in 'Plugin Development' started by MCPEPIG, Mar 23, 2016.

  1. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    As of a look into the code they will not spawn in front of the player.
    I did meant it. Because I coded the plugin already. The whole thread (threat would fit also.) is "Can someone steal the idea of this coder?"
    Ritch likes this.
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    From an objective view, if you don't release the plugin, this thread is an academic discussion of possible methods of implementation of a certain visual effect through a certain network protocol. If you made the plugin but you didn't release it, it is as good as never made because we don't know about it at all. About ideas, I don't really care, because I'm pretty sure that almost every idea that ever existed is copied from somewhere. But now, this thread is discussing about creating patterns through particles, not only about your plugin, so please stop bragging or arguing.
    applqpak and Tim // robske Büba like this.
  3. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Same
    applqpak likes this.
  4. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    As you may have read, i released the plugin.
    And all the shit you just talked can be told shortly: "May you tell us how to spawn the particles"
    Ritch likes this.
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Ideas are in the public domain.
    applqpak likes this.
  6. Ritch
    Offline

    Ritch Active Member

    Joined:
    Oct 4, 2015
    Posts:
    184
    Minecraft User:
    anonymous
    Plugin ? Please
  7. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    Do you not realize that this is Plugin Development, not Request?
  8. xBeastMode
    Offline

    xBeastMode Active Member

    Joined:
    Nov 27, 2015
    Posts:
    292
    applqpak and Survingo like this.
  9. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    No offense but you are just talking nonsense. You keep emphasizing that you have made this plugin and that you have released it but you didn't mention or link to it in this thread at all.
    MyNameIsTriXz and applqpak like this.
  10. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Get the tomatoes of your blind eyes.
    "I cant publish it because @isoz and me had a contract"
    Ritch likes this.
  11. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    So that means it isn't available to us... So why are you mentioning it here at all?
    applqpak likes this.
  12. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Its my profile picture we are talking about.
    And the question is dumb, due its obvious:
    I already coded the plugin and have the knowledge.
    Also i amready asking @isoz if i may upload it to the forums.
    It would be duplicated work if someone else tries to code it
    Ritch likes this.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Then why were you in the first place so hostile to me, someone who simply tried to point out a possible method of implementation of this plugin?
  14. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Wait, so I can convert simple pictures to text using ASCii text makers. Awesome!
  15. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    What about helping him, instead of saying the whole time how nice your plugin is?
  16. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    I tried your code but it doesnt seem to work for me, particle->x is 0 same as particle->z, can you help me please?


    PHP:
    <?php

    namespace ASCiiText;

    use 
    pocketmine\event\Listener;

    use 
    pocketmine\plugin\PluginBase;

    use 
    pocketmine\event\player\PlayerChatEvent;
    use 
    pocketmine\event\player\PlayerMoveEvent;
    use 
    pocketmine\event\player\PlayerQuitEvent;
    use 
    pocketmine\event\player\PlayerKickEvent;
    use 
    pocketmine\event\player\PlayerDeathEvent;
    use 
    pocketmine\event\player\PlayerInteractEvent;
    use 
    pocketmine\event\player\PlayerDropItemEvent;
    use 
    pocketmine\event\block\BlockBreakEvent;


    use 
    pocketmine\event\entity\EntityDamageEvent;
    use 
    pocketmine\event\entity\ProjectileLaunchEvent;
    use 
    pocketmine\event\entity\ProjectileHitEvent;
    use 
    pocketmine\event\entity\EntityDamageByEntityEvent;
    use 
    pocketmine\event\block\SignChangeEvent;

    use 
    pocketmine\level\Position;
    use 
    pocketmine\level\particle\FlameParticle;
    use 
    pocketmine\utils\Config;
    use 
    pocketmine\item\Item;
    use 
    pocketmine\block\Block;

    use 
    pocketmine\entity\Arrow;
    use 
    pocketmine\entity\Entity;





    use 
    pocketmine\nbt\tag\IntTag;
    use 
    pocketmine\nbt\tag\CompoundTag;

    use 
    pocketmine\math\Vector2;
    use 
    pocketmine\math\Vector3;


    class 
    Main extends PluginBase implements Listener{

    public function 
    onEnable(){
    $this->getServer()->getScheduler()->scheduleRepeatingTask(new Task($this), 20);

    $this->map = [];
    $handle fopen($this->getDataFolder()."pic.map""a+");
    $lines explode("\n"rtrim(stream_get_contents($handle)));
    var_dump($lines);
    fclose($handle);

    $height count($lines);
    foreach(
    $lines as $lineNumber => $line){
      
    $len strlen($line);
      for(
    $i 0$i $len; ++$i){
        if(
    $line{$i} === "X"){
          
    $this->map[] = new Vector2($i$height $lineNumber 1);
        }
      }
    }

    }




    public function 
    Second(){
    foreach(
    $this->getServer()->getOnlinePlayers() as $player){
    $scale 0.2;
    $particle = new FlameParticle(new Vector3);
    $yaw $player->yaw 180 M_PI;
    $xFactor = -sin($yaw) * $scale;
    $zFactor cos($yaw) * $scale;
    foreach(
    $this->map as $vector){
      
    $particle->$vector->y;
      
    $particle->$xFactor $vector->x;
      
    $particle->$zFactor $vector->x;
      
    var_dump($particle->x);
      
    $player->getLevel()->addParticle($particle);
      
    $player->getLevel()->addParticle(new FlameParticle(new Vector3($player->x$player->2$player->z)));
    }}


    }


    }
  17. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Good one :D
  18. MCPEPIG
    Offline

    MCPEPIG Notable Member

    Joined:
    Jun 22, 2014
    Posts:
    349
    Minecraft User:
    MCPEPIG
    Same here.
    applqpak likes this.
  19. Intyre
    Offline

    Intyre Staff Member PocketMine Team

    Joined:
    Aug 24, 2013
    Posts:
    118
    Minecraft User:
    Intyre
  20. thebigsmileXD
    Offline

    thebigsmileXD Banned

    Joined:
    May 19, 2015
    Posts:
    845
    Plugins:
    1
    Minecraft User:
    XenialDan
    Lol, nice idea!

    OH MAN READ THE CONVERSATION. I AM NOT ALLOWED TO POST ANY CODE BECAUSE I HAD A CONTRACT!
    IF THAT WOULDNT BE A FACT I WOULD EVEN UPLOAD IT TO MY GITHUB REPO! DON'T YOU GET THE POINT?!

    Yea. As i said :)
    @PEMapModder 's code cant work.

    Well. Chill this thread for a week. I'll discuss with @isoz if i could make mine public.

    Then you have a working code base already.

Share This Page

Advertisement