{"id":15143571,"url":"https://github.com/ivancraft623/fakeblocks","last_synced_at":"2025-07-27T21:33:51.083Z","repository":{"id":113922270,"uuid":"499339817","full_name":"IvanCraft623/fakeblocks","owner":"IvanCraft623","description":"A virion for PocketMine-MP to create and manage fake blocks","archived":false,"fork":false,"pushed_at":"2023-12-15T19:41:03.000Z","size":22,"stargazers_count":20,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T20:52:00.333Z","etag":null,"topics":["php","pmmp","pmmp-virion","pocketmine","pocketmine-mp","virion"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IvanCraft623.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2022-06-03T01:09:34.000Z","updated_at":"2024-11-11T22:44:24.000Z","dependencies_parsed_at":"2023-12-15T21:08:39.572Z","dependency_job_id":"d49f18a9-59b0-442a-a7b5-4310a5804c03","html_url":"https://github.com/IvanCraft623/fakeblocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanCraft623%2Ffakeblocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanCraft623%2Ffakeblocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanCraft623%2Ffakeblocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IvanCraft623%2Ffakeblocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IvanCraft623","download_url":"https://codeload.github.com/IvanCraft623/fakeblocks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237882172,"owners_count":19381176,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","pmmp","pmmp-virion","pocketmine","pocketmine-mp","virion"],"created_at":"2024-09-26T10:02:00.932Z","updated_at":"2025-02-08T22:32:04.355Z","avatar_url":"https://github.com/IvanCraft623.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e🧊 fakeblocks\u003c/h1\u003e\n  \u003cp\u003eCreate and manage fakeblocks\u003c/p\u003e\n\u003c/div\u003e\n\n## Description:\nA virion for PocketMine-MP to create and manage fake blocks. This virion indicates to the client that there is a block where there really isn't on the server side.\n\n## Usage\nImport `FakeBlockManager` class.\n```php\nuse IvanCraft623\\fakeblocks\\FakeBlockManager;\n```\n\n### Register\nThis virion needs to listen for events, so you will need to register it, we check that it is not registered in case some other plugin has already done it\n```php\nif (!FakeBlockManager::isRegistered()) {\n\tFakeBlockManager::register($plugin);\n}\n```\n`$plugin` is your `Plugin` object\n\nOnce registered you can do `FakeBlockManager::getInstance()` to get an instance\n\n### Create a FakeBlock\n```php\n$fakeblock = FakeBlockManager::getInstance()-\u003ecreate(VanillaBlocks::DIAMOND(), $position);\n```\n`$position` is a `Position` object\n\n`$fakeblock` will contain a `FakeBlock` object\n\n### Add a viewer for a fake block\nThis function adds a viewer for the fake block\n```php\n$fakeblock-\u003eaddViewer($player);\n```\n\n### Remove a viewer for a fake block\nThis function removes a viewer from the fake block\n```php\n$fakeblock-\u003eremoveViewer($player);\n```\n\n### Get all viewers of a fake block\n```php\n$fakeblock-\u003egetViewers();\n```\n\n### Destroy a fake block\nThis function will destroy the fake block and make it so the viewers can see the real block\n```php\nFakeBlockManager::getInstance()-\u003edestroy($fakeblock);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivancraft623%2Ffakeblocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fivancraft623%2Ffakeblocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fivancraft623%2Ffakeblocks/lists"}