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

Playing with Boats

Comments in 'Plugin Development' started by aliuly, Apr 21, 2015.

  1. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Since I am not one of those coolkids playing with Minecraft 0.11 betas, I figured I could make my own boat implementation using PocketMine 1.4.

    EvolSoft, HotFireyDeath, Falk and 2 others like this.
  2. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    Nice guy !
  3. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    You are really a good plugin dev! I love all your plugins...
    HotFireyDeath likes this.
  4. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    that will happen if two boats crossed? xD
  5. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    They would crash.... XD
  6. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    It was just a test... I just wanted to know if it could be done... I probably will just shelve it until MCPE0.11 goes out of beta.
    Legoboy0215 and Praxthisnovcht like this.
  7. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    Great anyway!

    Did you add the source to github? like how it is done
  8. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Looks like it can be done...
  9. aliuly
    Offline

    aliuly Notable Member Plugin Developer

    Joined:
    Feb 8, 2014
    Posts:
    1,086
    Plugins:
    17
    Doesn't work very well, on Android it would crash the client. On iOS it would work but the player needs to be flying (otherwise they fall through the boat :))

    Anyway, the idea was not so much of a boat but to move block models.

    It is in my github bad-plugins repo. Since it was just a test there are no docs. If you can't figure it out on your own you shouldn't be messing with it.

    There is a file called "model.pmc" which is the little boat. You can create the pmc file using my hacked WorldEditor. (Copy/Cut to clipboard and //save file to save the clipboard).

    There are four functions of interest:

    • loadmodel - loads the model.pmc file
    • W_render - places the model
    • W_remove - removes the model
    • W_move - moves the model
    Note that a lot of the code in there is just from a template, so it is not used.
  10. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Interested in our Vehicles plugin? https://github.com/LegendOfMCPE/Vehicles

    BTW you can try using packets for minecarts meanwhile.
  11. Praxthisnovcht
    Offline

    Praxthisnovcht Notable Member Plugin Developer

    Joined:
    Mar 10, 2014
    Posts:
    699
    Plugins:
    4
    Minecraft User:
    PraxHellTag
    Thank :p

Share This Page

Advertisement