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

Fill Inventory With 1 Block

Comments in 'Plugin Development' started by Tethered_, Nov 24, 2014.

  1. Tethered_
    Offline

    Tethered_ Active Member Plugin Developer

    Joined:
    Jun 24, 2014
    Posts:
    178
    Plugins:
    2
    Minecraft User:
    Frostbyte58
    How can I fill a player's inventory with a single block, so that each slot has 1 block? Is this even possible?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    $item blah;
    for(
    $i 0$i 36$i++){
      
    $player->getInventory()->setSlot(clone $item);
    }
  3. Tethered_
    Offline

    Tethered_ Active Member Plugin Developer

    Joined:
    Jun 24, 2014
    Posts:
    178
    Plugins:
    2
    Minecraft User:
    Frostbyte58
    Just the inventory shown at the bottom of the screen, I mean. The hotbar?
  4. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Protocol limitations. It is not possible in the current MCPE version. It is bad with the hotbar.
  5. Tethered_
    Offline

    Tethered_ Active Member Plugin Developer

    Joined:
    Jun 24, 2014
    Posts:
    178
    Plugins:
    2
    Minecraft User:
    Frostbyte58
    There is NO possible way to edit the items in that bar at the bottom of the screen?
  6. xFlare
    Offline

    xFlare Active Member Plugin Developer

    Joined:
    Sep 28, 2014
    Posts:
    199
    Plugins:
    1
    Minecraft User:
    xFlare
    He just said "Protocol limitations". There is no way. MCPE's client is very limited compared to the PC client, but thats a good thing it forces developers to be more creative!
    PEMapModder and Tethered_ like this.
  7. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    On the bright side, it forces innovation, like to have to brainstorm new ideas instead of spending/wasting time to port Bukkit plugins because they are not possible. #MCPEInnovation
    On the dark side, it encourages people to "create" things to make MCPE as PC-like as possible, which diminishes the exclusiveness of our MCPE community.

Share This Page

Advertisement