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

Spawn item entity and check when it touches ground or another entity.

Comments in 'Plugin Development' started by Flabe, Jan 21, 2016.

  1. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    So what do you want to hear? That you are the coolest developer in the world and i am stupid noob tha
    thx)
  2. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    I would like to hear where exactly you got your code from.
    If it was from me, I would like to hear an apology with you admitting that you copied it, and see that you are learning, not copying.
    If it isn't, show me where you actually got it from. It is far too similar.
    Last edited: Jan 21, 2016
  3. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    i got this code from PmLearn its internet pocketmine school
  4. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    Never heard about that :D
  5. jojoe77777
    Offline

    jojoe77777 Notable Member Plugin Developer

    Joined:
    May 28, 2015
    Posts:
    653
    Plugins:
    1
    Minecraft User:
    jojoe77777
    He didn't say it was "pmlearn.com". He just said PmLearn.
  6. minebuilder0110
    Offline

    minebuilder0110 Notable Member

    Joined:
    Dec 8, 2014
    Posts:
    485
    Minecraft User:
    Apparitional
    It came out when I searched it up. Not that many results came out.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Since you know that so well, you should realize Item is a class, not a function.
    minebuilder0110 likes this.
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    As a matter of fact, where did you get that code you "wrote"? Everyone is just copying from how PocketMine implements entity spawning.
    CrazedMiner likes this.
  9. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    I just pointed out one 'mistake'. Unless you think Item(1) is correct, then learn SOME OOP.
    CrazedMiner and Vaivez66 like this.
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    I guess he meant this one. http://pmlearn.ru/about
    Also, next time please put your large attachments either in thumbnail form or in spoilers.
  11. Vaivez66
    Offline

    Vaivez66 Notable Member Plugin Developer

    Joined:
    Jun 10, 2015
    Posts:
    402
    Plugins:
    2
    I just know that you understand Russian language :D
  12. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Nope, you just knew that I use Google Chrome that auto translates the page.
    minebuilder0110 likes this.
  14. Skullex
    Offline

    Skullex Active Member

    Joined:
    Nov 14, 2015
    Posts:
    212
    Minecraft User:
    Skullex
    He didn't say he didn't know where it had to go. He wants corrections because it could not just be missing codes but a small error that he can't identify.
  15. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    thanks for understanding Skullex
    Skullex likes this.
  16. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Really? Can you stop saying, that you somehow implemented getDirectionVector(), while you dont event know what it is? getDirectionVector() is a function executing a formula with cosinus, sinus and more, it is also used to implement directional moving in 3D games. As I watched your code , I got it was a copy of aliuly's Scorched plugin. I mean I dont have any problems with people who are copying code to learn, so please learn how to use NBT. NBT seems to be something very difficault, but when you played about 2 hours with NBT entity code, ypu will exactly know how to use it (believe me :D), the last function Entity::createEntity() accepts at his first parameter not an object or anything else, it just accepts a string, so as you can see when ypu want to spawn a cow the string should be "Cow" or when you want to spawn a chicken just "Chicken", it is also really important to do $entity->spawnToAll(); or your entity is invisible. I hope I could help, by the way take a look at aliuly's ItemCasePE plugin
    Last edited: Feb 17, 2016
  17. Flabe
    Offline

    Flabe Active Member

    Joined:
    Nov 17, 2015
    Posts:
    147
    Minecraft User:
    Flabe231
    ARE YOU SERIOUSLY??!!I just don't know what the schorched plugin is , i just wrote this code with my friend (he teaches me how to code for pocketmine) so don't think every1 steal the code from each other's projects-_-
  18. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    Why dont you even know that string thing then?...

Share This Page

Advertisement