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

StoneGenerator

Comments in 'Plugin Development' started by KubixQ, Jan 12, 2016.

  1. KubixQ
    Offline

    KubixQ Active Member

    Joined:
    Sep 13, 2015
    Posts:
    85
    Minecraft User:
    KubixQ
    Hey, I need StoneGenerator plugin for my server :p.
    What is StoneGenerator?
    See this bukkit plugin: http://dev.bukkit.org/bukkit-plugins/stone-generator/

    I want to write plugin for mcpe.
    Can anyone give me code for; when I place
    PHP:
    Item::END_STONE
    on EndStone plugin create stone, when I break stone, creating new stone (and so on).. ;)
  2. Tim // robske Büba
    Offline

    Tim // robske Büba Notable Member

    Joined:
    Feb 26, 2014
    Posts:
    606
    Minecraft User:
    robske_110
    So you want if a player places EndStone that on top of that stone is getting created and if the stone is broken the stone is created again
    Little idea:
    On PlayerBlockPlaceEvent
    if($event->getBlock()->getID() == "ID OF ENDSTONE")
    Create new Vector3 thingy and set an block above it
    On PlayerBlockBreakEvent
    if($event->getBlock()->getID() == "ID OF STONE")
    Create new Vector3 thingy and check if there block below is if(Vector3Stuff->getBlock()->getID() == "ID OF ENDSTONE) set an stone block above it
    KubixQ likes this.
  3. wolfdale
    Offline

    wolfdale Active Member Plugin Developer

    Joined:
    Dec 3, 2014
    Posts:
    276
    Plugins:
    1
    Minecraft User:
    ace
    Btw you posted in the wrong forum, you should post in "Plugin Requests"
    AndrewBit likes this.
  4. KubixQ
    Offline

    KubixQ Active Member

    Joined:
    Sep 13, 2015
    Posts:
    85
    Minecraft User:
    KubixQ
    Nope xD
  5. AndrewBit
    Offline

    AndrewBit Notable Member

    Joined:
    Jun 18, 2015
    Posts:
    435
    Minecraft User:
    AndrewBit4
    Use a repeating task.
    KubixQ likes this.
  6. XFuryMCPE
    Offline

    XFuryMCPE Active Member Plugin Developer

    Joined:
    Jun 19, 2015
    Posts:
    137
    Plugins:
    2
    Minecraft User:
    XFuriousMC
    Actually it should be in Plugin Requests, not Plugin Development

Share This Page

Advertisement