{"action":"created","issue":{"url":"https://api.github.com/repos/PEMapModder/PocketMine-Plugin-Tutorials/issues/16","labels_url":"https://api.github.com/repos/PEMapModder/PocketMine-Plugin-Tutorials/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/PEMapModder/PocketMine-Plugin-Tutorials/issues/16/comments","events_url":"https://api.github.com/repos/PEMapModder/PocketMine-Plugin-Tutorials/issues/16/events","html_url":"https://github.com/PEMapModder/PocketMine-Plugin-Tutorials/issues/16","id":68800249,"number":16,"title":"Generator","user":{"login":"Ivanzar","id":8067818,"avatar_url":"https://avatars.githubusercontent.com/u/8067818?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivanzar","html_url":"https://github.com/Ivanzar","followers_url":"https://api.github.com/users/Ivanzar/followers","following_url":"https://api.github.com/users/Ivanzar/following{/other_user}","gists_url":"https://api.github.com/users/Ivanzar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivanzar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivanzar/subscriptions","organizations_url":"https://api.github.com/users/Ivanzar/orgs","repos_url":"https://api.github.com/users/Ivanzar/repos","events_url":"https://api.github.com/users/Ivanzar/events{/privacy}","received_events_url":"https://api.github.com/users/Ivanzar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":23,"created_at":"2015-04-15T22:23:47Z","updated_at":"2015-04-16T13:03:17Z","closed_at":null,"body":"how to make my generation of the world, so that some part of world hung in the air? I used Generator but not understood it"},"comment":{"url":"https://api.github.com/repos/PEMapModder/PocketMine-Plugin-Tutorials/issues/comments/93728777","html_url":"https://github.com/PEMapModder/PocketMine-Plugin-Tutorials/issues/16#issuecomment-93728777","issue_url":"https://api.github.com/repos/PEMapModder/PocketMine-Plugin-Tutorials/issues/16","id":93728777,"user":{"login":"Ivanzar","id":8067818,"avatar_url":"https://avatars.githubusercontent.com/u/8067818?v=3","gravatar_id":"","url":"https://api.github.com/users/Ivanzar","html_url":"https://github.com/Ivanzar","followers_url":"https://api.github.com/users/Ivanzar/followers","following_url":"https://api.github.com/users/Ivanzar/following{/other_user}","gists_url":"https://api.github.com/users/Ivanzar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ivanzar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ivanzar/subscriptions","organizations_url":"https://api.github.com/users/Ivanzar/orgs","repos_url":"https://api.github.com/users/Ivanzar/repos","events_url":"https://api.github.com/users/Ivanzar/events{/privacy}","received_events_url":"https://api.github.com/users/Ivanzar/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T13:03:17Z","updated_at":"2015-04-16T13:03:17Z","body":"вот ```php\r\n<?php\r\nnamespace Ivanzar\\TheTwoTowerns;\r\n\r\nuse pocketmine\\level\\generator\\Generator;\r\nuse pocketmine\\level\\ChunkManager;\r\nuse pocketmine\\utils\\Random;\r\n\r\nuse pocketmine\\math\\Vector3;\r\nuse pocketmine\\block\\Block;\r\n\r\nclass TWWGenerator extends Generator{\r\n\t\r\n\tprivate $random,$level;\r\n\t\r\n\tpublic function __construct(array $settings=array()){\r\n\t\treturn $settings = array();\r\n}\r\n\t\r\n\r\n\tpublic function getName(){\r\n\t\treturn \"tww\";\r\n\t\t\r\n\t}\r\n\r\n\tpublic function getSettings(){\r\n\t\t\r\n\t}\r\n\r\n\tpublic function getSpawn(){\r\n\t\treturn new Vector3(128, 64, 128);\r\n\t}\r\n\r\n\tpublic function init(ChunkManager $level,Random $random){\r\n\t\t$this->random = $random;\r\n\t\t$this->level = $level;\r\n\t\t\r\n\t}\r\n\t\r\n\tpublic function generateChunk($chunkX,$chunkZ){\r\n\t\t\r\n\t\t$chunk = $this->level->getChunk($chunkX, $chunkZ);\r\n\t\t$startX = min($selection[0][0] = 0, $selection[1][0] = 128);\r\n\t\t$endX = max($selection[0][0] = 0, $selection[1][0] = 128);\r\n\t\t$startY = min($selection[0][1] = 0, $selection[1][1] = 128);\r\n\t\t$endY = max($selection[0][1] = 0, $selection[1][1] = 128);\r\n\t\t$startZ = min($selection[0][2] = 0, $selection[1][2] = 128);\r\n\t\t$endZ = max($selection[0][2] = 0, $selection[1][2] = 128);\r\n\t\tfor($x = $startX; $x < $endX; ++$x){\r\n\t\t\t\tfor($y = $startY; $y < $endY; ++$y){\r\n\t\t\t\tfor($z = $startZ; $z < $endZ; ++$z){\r\n\t\t\t$chunk->setBlockId($x,$y,$z,1);\r\n\t\t}\r\n\t\t}\r\n\t\t}\r\n\t}\r\n\r\n\tpublic function populateChunk($chunkX,$chunkZ){\r\n\t\t\r\n\t}\r\n\r\n}"}}