{"id":1041309,"date":"2024-12-31T12:48:20","date_gmt":"2024-12-31T04:48:20","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1041309.html"},"modified":"2024-12-31T12:48:23","modified_gmt":"2024-12-31T04:48:23","slug":"%e5%a6%82%e4%bd%95%e7%94%a8python%e5%81%9a%e6%88%91%e7%9a%84%e4%b8%96%e7%95%8cmod","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1041309.html","title":{"rendered":"\u5982\u4f55\u7528python\u505a\u6211\u7684\u4e16\u754cmod"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/7cf897aa-cc56-463f-acf0-f6b86586439b.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"\u5982\u4f55\u7528python\u505a\u6211\u7684\u4e16\u754cmod\" \/><\/p>\n<p><p> <strong>\u8981\u7528Python\u5236\u4f5c\u300a\u6211\u7684\u4e16\u754c\u300bMod\uff0c\u9996\u5148\u9700\u8981\u5177\u5907\u4e00\u5b9a\u7684\u7f16\u7a0b\u77e5\u8bc6\u3001\u7406\u89e3\u300a\u6211\u7684\u4e16\u754c\u300bMod\u7684\u7ed3\u6784\u3001\u4f7f\u7528Minecraft Forge API\u3001\u7f16\u5199\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002<\/strong> \u5176\u4e2d\uff0c\u4e86\u89e3Minecraft Forge API\u662f\u975e\u5e38\u5173\u952e\u7684\u4e00\u6b65\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u521b\u5efa\u548c\u7ba1\u7406Mod\u6240\u9700\u7684\u6240\u6709\u5de5\u5177\u548c\u5e93\u3002Minecraft Forge\u5141\u8bb8\u5f00\u53d1\u8005\u6dfb\u52a0\u65b0\u7684\u529f\u80fd\u3001\u4fee\u6539\u6e38\u620f\u673a\u5236\u4ee5\u53ca\u521b\u5efa\u81ea\u5b9a\u4e49\u5185\u5bb9\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u7528Python\u5236\u4f5c\u300a\u6211\u7684\u4e16\u754c\u300bMod\u7684\u6b65\u9aa4\u548c\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6\u548c\u5de5\u5177<\/h3>\n<\/p>\n<p><p>\u5728\u5f00\u59cb\u7f16\u5199\u4ee3\u7801\u4e4b\u524d\uff0c\u9700\u8981\u5148\u5b89\u88c5\u4e00\u4e9b\u5fc5\u8981\u7684\u8f6f\u4ef6\u548c\u5de5\u5177\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>Java Development Kit (JDK)<\/strong>\uff1aMinecraft\u548cMinecraft Forge\u90fd\u662f\u7528Java\u7f16\u5199\u7684\uff0c\u56e0\u6b64\u9700\u8981\u5b89\u88c5JDK\u3002\u63a8\u8350\u4f7f\u7528JDK 8\uff0c\u56e0\u4e3aMinecraft Forge\u5bf9\u4e8e\u8fd9\u4e2a\u7248\u672c\u7684\u517c\u5bb9\u6027\u6700\u597d\u3002<\/li>\n<li><strong>Minecraft Forge<\/strong>\uff1a\u4e0b\u8f7d\u5e76\u5b89\u88c5Minecraft Forge\u3002Forge\u662f\u4e00\u4e2a\u5f00\u6e90\u7684\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u6a21\u5757\uff0c\u5b83\u4f7f\u4f60\u80fd\u591f\u8fd0\u884c\u548c\u521b\u5efaMod\u3002<\/li>\n<li><strong>Python<\/strong>\uff1a\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86Python\uff0c\u5e76\u4e14\u719f\u6089Python\u7684\u57fa\u672c\u8bed\u6cd5\u548c\u7f16\u7a0b\u6982\u5ff5\u3002<\/li>\n<li><strong>Py4J<\/strong>\uff1aPy4J\u662f\u4e00\u4e2a\u5141\u8bb8Python\u7a0b\u5e8f\u52a8\u6001\u8bbf\u95eeJava\u5bf9\u8c61\u7684\u5e93\uff0c\u8fd9\u5bf9\u4e8e\u5728Python\u4e2d\u8c03\u7528Minecraft Forge API\u81f3\u5173\u91cd\u8981\u3002<\/li>\n<\/ol>\n<p><h3>\u4e8c\u3001\u8bbe\u7f6e\u5f00\u53d1\u73af\u5883<\/h3>\n<\/p>\n<ol>\n<li><strong>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u5de5\u4f5c\u76ee\u5f55<\/strong>\uff1a\u5728\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\uff0c\u7528\u4e8e\u5b58\u653e\u4f60\u7684Mod\u9879\u76ee\u3002<\/li>\n<li><strong>\u914d\u7f6eMinecraft Forge<\/strong>\uff1a\u4e0b\u8f7dMinecraft Forge\u7684MDK\uff08Mod Development Kit\uff09\uff0c\u89e3\u538b\u5230\u4f60\u521a\u624d\u521b\u5efa\u7684\u5de5\u4f5c\u76ee\u5f55\u4e2d\u3002\u8fd9\u4e2aMDK\u5305\u542b\u4e86\u6240\u6709\u4f60\u9700\u8981\u7684\u5de5\u5177\u548c\u5e93\u6765\u5f00\u53d1\u4e00\u4e2aMod\u3002<\/li>\n<li><strong>\u8bbe\u7f6ePy4J<\/strong>\uff1a\u5c06Py4J\u5e93\u6dfb\u52a0\u5230\u4f60\u7684\u9879\u76ee\u4e2d\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7pip\u5b89\u88c5Py4J\uff1a\n<pre><code class=\"language-shell\">pip install py4j<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e09\u3001\u7406\u89e3Minecraft Forge API<\/h3>\n<\/p>\n<p><p>\u4e3a\u4e86\u7528Python\u7f16\u5199Mod\uff0c\u4f60\u9700\u8981\u7406\u89e3Minecraft Forge API\u7684\u57fa\u672c\u6982\u5ff5\u3002Forge API\u63d0\u4f9b\u4e86\u8bb8\u591a\u7c7b\u548c\u65b9\u6cd5\u6765\u5e2e\u52a9\u4f60\u521b\u5efa\u548c\u7ba1\u7406\u6e38\u620f\u4e2d\u7684\u5404\u79cd\u5143\u7d20\uff0c\u4f8b\u5982\u65b9\u5757\u3001\u7269\u54c1\u3001\u751f\u7269\u7b49\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u65b9\u5757\uff08Blocks\uff09<\/strong>\uff1a\u65b9\u5757\u662fMinecraft\u4e16\u754c\u7684\u57fa\u672c\u6784\u9020\u5355\u4f4d\u3002Forge API\u5141\u8bb8\u4f60\u521b\u5efa\u81ea\u5b9a\u4e49\u7684\u65b9\u5757\uff0c\u5e76\u5b9a\u4e49\u5b83\u4eec\u7684\u884c\u4e3a\u548c\u5c5e\u6027\u3002<\/li>\n<li><strong>\u7269\u54c1\uff08Items\uff09<\/strong>\uff1a\u7269\u54c1\u662f\u73a9\u5bb6\u53ef\u4ee5\u6301\u6709\u548c\u4f7f\u7528\u7684\u5bf9\u8c61\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u65b0\u7684\u7269\u54c1\uff0c\u5b9a\u4e49\u5b83\u4eec\u7684\u5c5e\u6027\u548c\u4f7f\u7528\u6548\u679c\u3002<\/li>\n<li><strong>\u5b9e\u4f53\uff08Entities\uff09<\/strong>\uff1a\u5b9e\u4f53\u662f\u6e38\u620f\u4e2d\u6240\u6709\u52a8\u6001\u7684\u5bf9\u8c61\uff0c\u4f8b\u5982\u73a9\u5bb6\u3001\u751f\u7269\u3001\u7269\u54c1\u6389\u843d\u7b49\u3002\u4f60\u53ef\u4ee5\u521b\u5efa\u65b0\u7684\u5b9e\u4f53\u7c7b\u578b\uff0c\u5e76\u5b9a\u4e49\u5b83\u4eec\u7684\u884c\u4e3a\u3002<\/li>\n<\/ol>\n<p><h3>\u56db\u3001\u7f16\u5199Python\u4ee3\u7801<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521d\u59cb\u5316Mod<\/strong>\uff1a\u521b\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff0c\u7528\u4e8e\u521d\u59cb\u5316\u4f60\u7684Mod\u3002\u5728\u8fd9\u4e2a\u6587\u4ef6\u4e2d\uff0c\u4f60\u9700\u8981\u5b9a\u4e49Mod\u7684\u57fa\u672c\u4fe1\u606f\uff0c\u4f8b\u5982Mod ID\u3001\u540d\u79f0\u3001\u7248\u672c\u7b49\u3002\u4f60\u8fd8\u9700\u8981\u521d\u59cb\u5316Minecraft Forge\uff0c\u5e76\u6ce8\u518c\u4f60\u7684Mod\u5230\u6e38\u620f\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from py4j.java_gateway import JavaGateway<\/p>\n<h2><strong>\u521d\u59cb\u5316Java Gateway<\/strong><\/h2>\n<p>gateway = JavaGateway()<\/p>\n<h2><strong>\u83b7\u53d6Minecraft Forge API<\/strong><\/h2>\n<p>forge_api = gateway.entry_point.getForgeAPI()<\/p>\n<h2><strong>\u5b9a\u4e49Mod\u57fa\u672c\u4fe1\u606f<\/strong><\/h2>\n<p>mod_id = &quot;examplemod&quot;<\/p>\n<p>mod_name = &quot;Example Mod&quot;<\/p>\n<p>mod_version = &quot;1.0.0&quot;<\/p>\n<h2><strong>\u6ce8\u518cMod<\/strong><\/h2>\n<p>forge_api.registerMod(mod_id, mod_name, mod_version)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u65b9\u5757<\/strong>\uff1a\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u65b9\u5757\u7c7b\uff0c\u5e76\u6ce8\u518c\u5230Minecraft Forge\u4e2d\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Python\u7c7b\u6765\u5b9a\u4e49\u65b9\u5757\u7684\u5c5e\u6027\u548c\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class CustomBlock:<\/p>\n<p>    def __init__(self, name, material):<\/p>\n<p>        self.name = name<\/p>\n<p>        self.material = material<\/p>\n<p>    def onBlockAdded(self, world, pos, state):<\/p>\n<p>        print(f&quot;Block {self.name} added at {pos}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u65b9\u5757\u5b9e\u4f8b<\/strong><\/h2>\n<p>custom_block = CustomBlock(&quot;example_block&quot;, &quot;stone&quot;)<\/p>\n<h2><strong>\u6ce8\u518c\u81ea\u5b9a\u4e49\u65b9\u5757<\/strong><\/h2>\n<p>forge_api.registerBlock(custom_block)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u7269\u54c1<\/strong>\uff1a\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u7269\u54c1\u7c7b\uff0c\u5e76\u6ce8\u518c\u5230Minecraft Forge\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class CustomItem:<\/p>\n<p>    def __init__(self, name):<\/p>\n<p>        self.name = name<\/p>\n<p>    def onItemUse(self, world, player, pos, hand):<\/p>\n<p>        print(f&quot;Item {self.name} used by {player} at {pos}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u7269\u54c1\u5b9e\u4f8b<\/strong><\/h2>\n<p>custom_item = CustomItem(&quot;example_item&quot;)<\/p>\n<h2><strong>\u6ce8\u518c\u81ea\u5b9a\u4e49\u7269\u54c1<\/strong><\/h2>\n<p>forge_api.registerItem(custom_item)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u5b9e\u4f53<\/strong>\uff1a\u5b9a\u4e49\u4e00\u4e2a\u65b0\u7684\u5b9e\u4f53\u7c7b\uff0c\u5e76\u6ce8\u518c\u5230Minecraft Forge\u4e2d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class CustomEntity:<\/p>\n<p>    def __init__(self, name):<\/p>\n<p>        self.name = name<\/p>\n<p>    def onEntityUpdate(self, world, entity):<\/p>\n<p>        print(f&quot;Entity {self.name} updated in {world}&quot;)<\/p>\n<h2><strong>\u521b\u5efa\u81ea\u5b9a\u4e49\u5b9e\u4f53\u5b9e\u4f8b<\/strong><\/h2>\n<p>custom_entity = CustomEntity(&quot;example_entity&quot;)<\/p>\n<h2><strong>\u6ce8\u518c\u81ea\u5b9a\u4e49\u5b9e\u4f53<\/strong><\/h2>\n<p>forge_api.registerEntity(custom_entity)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u4e94\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5<\/h3>\n<\/p>\n<ol>\n<li>\n<p><strong>\u7f16\u8bd1\u548c\u8fd0\u884cMod<\/strong>\uff1a\u786e\u4fdd\u6240\u6709\u4ee3\u7801\u7f16\u5199\u6b63\u786e\u540e\uff0c\u7f16\u8bd1\u5e76\u8fd0\u884c\u4f60\u7684Mod\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Minecraft Forge\u63d0\u4f9b\u7684Gradle\u811a\u672c\u6765\u7f16\u8bd1\u548c\u6253\u5305\u4f60\u7684Mod\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-shell\">gradlew build<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u52a0\u8f7d\u548c\u6d4b\u8bd5Mod<\/strong>\uff1a\u542f\u52a8Minecraft\u5ba2\u6237\u7aef\uff0c\u52a0\u8f7d\u4f60\u7684Mod\uff0c\u5e76\u5728\u6e38\u620f\u4e2d\u6d4b\u8bd5\u5176\u529f\u80fd\u3002\u786e\u4fdd\u6240\u6709\u81ea\u5b9a\u4e49\u5185\u5bb9\u548c\u884c\u4e3a\u90fd\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h3>\u516d\u3001\u53d1\u5e03\u548c\u5206\u4eab<\/h3>\n<\/p>\n<ol>\n<li><strong>\u6253\u5305Mod<\/strong>\uff1a\u5c06\u4f60\u7684Mod\u6253\u5305\u6210\u4e00\u4e2aJAR\u6587\u4ef6\uff0c\u786e\u4fdd\u5305\u542b\u6240\u6709\u5fc5\u8981\u7684\u8d44\u6e90\u548c\u914d\u7f6e\u6587\u4ef6\u3002<\/li>\n<li><strong>\u53d1\u5e03Mod<\/strong>\uff1a\u4f60\u53ef\u4ee5\u5c06\u4f60\u7684Mod\u4e0a\u4f20\u5230Minecraft Mod\u7684\u793e\u533a\u7f51\u7ad9\uff0c\u4f8b\u5982CurseForge\u6216Planet Minecraft\uff0c\u4e0e\u5176\u4ed6\u73a9\u5bb6\u5206\u4eab\u4f60\u7684\u521b\u4f5c\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u7528Python\u5236\u4f5c\u4e00\u4e2a\u7b80\u5355\u7684\u300a\u6211\u7684\u4e16\u754c\u300bMod\u3002\u5c3d\u7ba1\u5927\u591a\u6570\u300a\u6211\u7684\u4e16\u754c\u300bMod\u662f\u7528Java\u7f16\u5199\u7684\uff0c\u4f46\u901a\u8fc7\u4f7f\u7528Py4J\u5e93\uff0cPython\u5f00\u53d1\u8005\u4e5f\u53ef\u4ee5\u53c2\u4e0e\u5230Mod\u7684\u5f00\u53d1\u4e2d\u6765\u3002\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u4f60\u5728Mod\u5f00\u53d1\u7684\u65c5\u7a0b\u4e2d\u53d6\u5f97\u6210\u529f\uff01<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5f00\u59cb\u4f7f\u7528Python\u5f00\u53d1\u6211\u7684\u4e16\u754cmod\uff1f<\/strong><br \/>\u8981\u5f00\u59cb\u4f7f\u7528Python\u5f00\u53d1\u6211\u7684\u4e16\u754cmod\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5\u9002\u5408\u7684\u5f00\u53d1\u73af\u5883\u3002\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528Minecraft Forge\u6216Fabric\u7b49\u6846\u67b6\uff0c\u786e\u4fdd\u4f60\u6709\u76f8\u5e94\u7684Minecraft\u7248\u672c\u3002\u5b89\u88c5\u76f8\u5173\u7684Python\u5e93\uff0c\u5982pyminecraft\u6216mcpi\uff0c\u4e5f\u80fd\u5e2e\u52a9\u4f60\u4e0eMinecraft\u8fdb\u884c\u4ea4\u4e92\u3002\u9605\u8bfb\u76f8\u5173\u7684\u6587\u6863\u548c\u6559\u7a0b\uff0c\u5b66\u4e60\u5982\u4f55\u521b\u5efa\u57fa\u672c\u7684mod\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002<\/p>\n<p><strong>Python\u5728\u6211\u7684\u4e16\u754cmod\u5f00\u53d1\u4e2d\u6709\u54ea\u4e9b\u4f18\u52bf\uff1f<\/strong><br \/>\u4f7f\u7528Python\u8fdb\u884c\u6211\u7684\u4e16\u754cmod\u5f00\u53d1\u6709\u51e0\u4e2a\u4f18\u52bf\u3002Python\u7684\u8bed\u6cd5\u7b80\u6d01\u6613\u61c2\uff0c\u9002\u5408\u521d\u5b66\u8005\u5165\u95e8\u3002\u6b64\u5916\uff0cPython\u62e5\u6709\u4e30\u5bcc\u7684\u5e93\u548c\u6846\u67b6\uff0c\u80fd\u52a0\u5feb\u5f00\u53d1\u901f\u5ea6\u3002\u901a\u8fc7Python\u7f16\u5199\u7684\u811a\u672c\u80fd\u591f\u4e0eMinecraft\u7684API\u8fdb\u884c\u826f\u597d\u7684\u4ea4\u4e92\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u5b9e\u73b0\u5404\u79cd\u521b\u610f\u529f\u80fd\u3002<\/p>\n<p><strong>\u6211\u5e94\u8be5\u5b66\u4e60\u54ea\u4e9bPython\u6a21\u5757\u4ee5\u4fbf\u66f4\u597d\u5730\u5f00\u53d1\u6211\u7684\u4e16\u754cmod\uff1f<\/strong><br \/>\u5728\u5f00\u53d1\u6211\u7684\u4e16\u754cmod\u65f6\uff0c\u5efa\u8bae\u5b66\u4e60\u4e00\u4e9b\u7279\u5b9a\u7684Python\u6a21\u5757\u3002\u4f8b\u5982\uff0c<code>mcpi<\/code>\u6a21\u5757\u53ef\u4ee5\u7528\u4e8e\u4e0eMinecraft\u8fdb\u884c\u7b80\u5355\u7684\u4ea4\u4e92\uff0c\u9002\u5408\u8fdb\u884c\u5feb\u901f\u539f\u578b\u8bbe\u8ba1\u3002\u4e86\u89e3<code>pygame<\/code>\u6a21\u5757\u4e5f\u6709\u52a9\u4e8e\u521b\u5efa\u66f4\u590d\u6742\u7684\u6e38\u620f\u673a\u5236\u3002\u6b64\u5916\uff0c\u719f\u6089\u9762\u5411\u5bf9\u8c61\u7f16\u7a0b\u5c06\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7ba1\u7406mod\u7684\u7ed3\u6784\u548c\u529f\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u7528Python\u5236\u4f5c\u300a\u6211\u7684\u4e16\u754c\u300bMod\uff0c\u9996\u5148\u9700\u8981\u5177\u5907\u4e00\u5b9a\u7684\u7f16\u7a0b\u77e5\u8bc6\u3001\u7406\u89e3\u300a\u6211\u7684\u4e16\u754c\u300bMod\u7684\u7ed3\u6784\u3001\u4f7f\u7528Mine [&hellip;]","protected":false},"author":3,"featured_media":1041316,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041309"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1041309"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041309\/revisions"}],"predecessor-version":[{"id":1041317,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1041309\/revisions\/1041317"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1041316"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1041309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1041309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1041309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}