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

GrabBag 2.3.0

Collection of miscellaneous commands and listener modules

  1. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    i wish i can change blood particles
  2. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Yes, will fix in the next version.
  3. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    For the moment it is all hard-coded... It is all in github so you could just fork and roll your own.

    If you ask me, particles are hard to get right, so I am not looking to make that part of the code customizable yet.
  4. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    well, just tell me what to change on the blood.php, all I want is to change it to Critical particle, or you give me a blood php which is setted to critical? unless of redstone
  5. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Download the source code and do a search for Redstone...
  6. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    <?php
    /**
    ** MODULE:blood-particles
    ** Display particles when a player gets hit
    **
    **/
    namespace aliuly\grabbag;

    use pocketmine\plugin\PluginBase as Plugin;
    use pocketmine\event\Listener;

    use pocketmine\event\entity\EntityDamageEvent;
    use pocketmine\Player;
    use pocketmine\level\Position;
    use pocketmine\level\particle\CriticalParticle;
    use pocketmine\math\Vector3;

    use aliuly\grabbag\common\mc;

    class BloodMgr implements Listener {
    public $owner;

    protected static function randy($p,$r,$o) {
    return $p+(mt_rand()/mt_getrandmax())*$r-$o;
    }
    protected static function randVector(Vector3 $center) {
    return new Vector3(self::randy($center->getX(),0.5,-0.25),
    self::randy($center->getY(),2,0),
    self::randy($center->getZ(),0.5,-0.25));
    }
    public function __construct(Plugin $plugin) {
    $this->owner = $plugin;
    $this->owner->getServer()->getPluginManager()->registerEvents($this, $this->owner);
    }
    /**
    * @priority MONITOR
    */
    public function onDamage(EntityDamageEvent $ev) {
    if ($ev->isCancelled()) return;
    $damage = $ev->getDamage();
    $player = $ev->getEntity();
    if (!($player instanceof Player)) return;

    for ($i=0;$i<$damage;$i++) {
    $player->getLevel()->addParticle(new CriticalParticle(self::randVector($player),(mt_rand()/mt_getrandmax())*2));
    }
    }

    }

    did this, but crit now showing still
  7. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    That looks right to me.

    But as I was saying earlier. Particles (at least to me) are hard to get right.

    So far, all my attempts to do particles have never done what I would expect to do, so a lot of trial and error is involved.

    Anyway, good luck, and report back once you figured out how to make it work. ;)
  8. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    aliuly updated GrabBag with a new update entry:

    More updates

    Read the rest of this update entry...
  9. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    So did anybody tried the latest GrabBag release?

    I think the particle effects are particularly nice, worth checking out. I implemented the following:

    • RedStone particles when hit (blood spatters... )
    • Dust when people die (ashes to ashes...)
    • Particles when people teleport or transfer to another server.
    Oh, I think I will make a quick video later.

    Also the following new commands were added:

    • perm - for people who don't want to use a full permission plugin, are happy with ops/non-ops, but want to do one small permission tweak.
    • reg - shows how many players are registered in your servers (bragging rights, no?)
    • clearhotbar - for those neat freaks, you can start from scratch when organizing your hot bar.
    • crash - lets you clean-up your crash dumps
    • plugingmanager - so enable/disable plugins at any time. You can also load plugins without copying them to your plugin folder.
    There are really a lot of goodies. I am surprised the low download numbers and few reviews.
    Legoboy0215 likes this.
  10. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17

    OMG the Dust thing when player died I REQUESTED THAT TY TY TY TY
  11. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
  12. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    I have this feature ready for the next version of GrabBag:

  13. matthww
    Offline

    matthww Active Member

    Joined:
    May 13, 2014
    Posts:
    91
    Minecraft User:
    Matthww
    Whut? That is amazing :D
  14. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    it lags when many players joined the server because of the dust thing, pls add the dust "only" when players died :) make it brown pls we are not alien :)
  15. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    nvm, it was my server that lags.
  16. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
  17. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
  18. CaptainKenji17
    Offline

    CaptainKenji17 Active Member

    Joined:
    Apr 22, 2014
    Posts:
    252
    Minecraft User:
    CaptainKenji17
    add /ping :) it just shows your ping
  19. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    That's pending a pull request on the raklib. Until that is merged no Ping is possible.
  20. Goerick
    Offline

    Goerick Active Member

    Joined:
    Jan 24, 2014
    Posts:
    250
    Minecraft User:
    goerick
    Ping is dangerous, have you heard of "Ping Of Death"?


    Also is this how you do permission nodes?

    GrabBag.command.spawn

Share This Page

Advertisement