{"id":102,"date":"2024-09-02T20:02:37","date_gmt":"2024-09-02T12:02:37","guid":{"rendered":"https:\/\/wiki.waterport.cn\/?p=102"},"modified":"2024-09-02T20:02:37","modified_gmt":"2024-09-02T12:02:37","slug":"1-4%e9%80%9a%e7%94%a8%e5%8f%98%e9%87%8f-%e6%a0%87%e7%ad%be","status":"publish","type":"post","link":"https:\/\/wiki.waterport.cn\/index.php\/2024\/09\/02\/1-4%e9%80%9a%e7%94%a8%e5%8f%98%e9%87%8f-%e6%a0%87%e7%ad%be\/","title":{"rendered":"1.4\u901a\u7528\u53d8\u91cf-\u6807\u7b7e"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<figure class=\"wp-block-pullquote has-accent-one-color has-text-color has-link-color wp-elements-1\"><blockquote><p>\u201c\u53d8\u91cf\u662f\u4e00\u79cd\u9b54\u6cd5\uff0c\u5b83\u4eec\u8ba9\u4f60\u80fd\u591f\u7528\u4e00\u4e2a\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u89e3\u51b3\u590d\u6742\u7684\u95ee\u9898\u3002\u201d<\/p><cite>\u2014\u2014 \u7ea6\u7ff0\u00b7\u51af\u00b7\u8bfa\u4f0a\u66fc<\/cite><\/blockquote><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color has-x-large-font-size wp-elements-2 wp-block-paragraph\" style=\"color:#00b7ff\"><strong>\u4ec0\u4e48\u662f\u6807\u7b7e\uff1f<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-accent-one-color has-text-color has-link-color has-x-small-font-size wp-elements-3 wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-style:normal;font-weight:700;line-height:0\"><s>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/s><\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-4 wp-block-paragraph\" style=\"color:#c1c1c1\">\u5982\u679c\u4f60\u61c2\u7f16\u7a0b\u7684\u8bdd\uff0c\u90a3\u4e48\u53ef\u4ee5\u628a\u6807\u7b7e\u5f53\u4f5c\u4e00\u79cd<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">\u53d8\u91cf<\/mark>\u3002<br><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">(\u7531\u4e8e\u5b98\u65b9\u5bf9\u4e8e\u6807\u7b7e\u7684\u63cf\u8ff0\u5bf9\u56fd\u4eba\u6765\u8bb2\u8f83\u4e3a\u542b\u7cca\uff0c\u56e0\u6b64\u672c\u90e8\u5206\u5c06\u63d2\u5165\u5f88\u591a\u6211\u7684\u4e2a\u4eba\u89c1\u89e3\uff0c\u5982\u6709\u5f02\u8bae\u6b22\u8fce<\/mark><\/em><a href=\"https:\/\/tool.gljlw.com\/qqq\/?qq=3436382884\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">\u70b9\u6211<\/mark><\/a><a href=\"https:\/\/tool.gljlw.com\/qqq\/?qq=3436382884\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-primary-color\">\u53cd\u9988<\/mark><\/a><em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-secondary-color\">\uff01)<\/mark><\/em><\/p>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-5 wp-block-paragraph\" style=\"color:#c1c1c1\">\u5b9e\u9645\u4e0a\u5728\u4e4b\u524d\u6211\u4eec\u5df2\u7ecf\u7528\u5230\u8fc7\u4e86\u6807\u7b7e(\u6709\u5417\uff1f\u6211\u4e5f\u5fd8\u4e86)\uff0c<br>\u8fd9\u662f\u4e00\u4e2a\u5f88\u7b80\u5355\u7684\u4f8b\u5b50\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-accent-two-color has-text-color has-link-color wp-elements-6\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&lt;player.name&gt;<\/mark><\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-7 wp-block-paragraph\" style=\"color:#c1c1c1\">\u7136\u540e\u6211\u4eec\u5728\u4ee5\u4e0b\u4ee3\u7801\u4e2d\u7528\u5230\u4e86\u5b83\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-border-color has-primary-border-color has-accent-two-color has-text-color has-link-color wp-elements-8\"><code>example_task:\n    type: task\n    script:\n<em>    - narrate <\/em>\"Hi!<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&lt;player.name&gt;<\/mark>\"<\/code><\/pre>\n\n\n\n<p class=\"has-text-color has-link-color wp-elements-9 wp-block-paragraph\" style=\"color:#c1c1c1\">\u5047\u5982\u6267\u884c\u7684\u73a9\u5bb6\u540d\u79f0\u4e3a\u201cCAT\u201d\u8fd9\u6bb5\u811a\u672c\u8fd0\u884c\u540e\u5c06\u4f1a\u8f93\u51fa\u201cHi!CAT\u201d\u3002<br>\u4e5f\u5c31\u662f\u8bf4\u8fd9\u91cc<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&lt;player.name&gt;<\/mark>\u4ee3\u8868\u4e86\u73a9\u5bb6\u540d\uff0c\u5982\u679c\u60f3\u8981\u5b9e\u73b0\u81ea\u52a8\u8bc6\u522b\u73a9\u5bb6\u540d\u5e76\u8f93\u51fa\uff0c\u800c\u4e0d\u662f\u5e94\u5bf9\u6bcf\u4e00\u4e2a\u73a9\u5bb6\u6765\u505a\u4e00\u4e2a\u5355\u72ec\u7684\u811a\u672c\uff0c\u90a3\u4e48\u6807\u7b7e\u7684\u4f5c\u7528\u5c31\u5341\u5206\u660e\u663e\u4e86\u3002<br>\u4e0d\u8fc7\uff0c\u6807\u7b7e\u7684\u4f5c\u7528\u5176\u5b9e\u8fdc\u4e0d\u6b62\u4e8e\u6b64\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color has-x-large-font-size wp-elements-10 wp-block-paragraph\" style=\"color:#00b7ff\"><strong>\u5e38\u89c1\u7684\u6807\u7b7e<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-accent-one-color has-text-color has-link-color has-x-small-font-size wp-elements-11 wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-style:normal;font-weight:700;line-height:0\"><s>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/s><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u5e38\u7528\u7684\u6807\u7b7e\u662f\u989c\u8272\u6807\u7b7e(colors)\uff0c\u4e5f\u51e0\u4e4e\u662fDenizen\u4e2d\u6700\u7b80\u5355\u7684\u6807\u7b7e\u3002\u60a8\u53ef\u80fd\u719f\u6089minecraft\u4e2d\u7684\u57fa\u672c\u989c\u8272\u4ee3\u7801\u7cfb\u7edf<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&amp;<\/mark>(\u6216\u8005<mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffffa0\" class=\"has-inline-color\">\u00a7<\/mark>\uff0c\u5728\u57fa\u5ca9\u7248\u4e2d\u5e38\u89c1)\uff0c\u4f8b\u5982\u201c<em><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffffa0\" class=\"has-inline-color\">&amp;<\/mark>4\u55b5\u55b5\u55b5<\/em>\u201d\u5728\u6e38\u620f\u4e2d\u5c06\u663e\u793a\u4e3a\u201c<mark style=\"background-color:rgba(0, 0, 0, 0);color:#c30000\" class=\"has-inline-color\"><em>\u55b5\u55b5\u55b5<\/em><\/mark>\u201d\u3002\u81f3\u4e8e\u4e3a\u4ec0\u4e48\u5728JAVA\u7248\u4e2d\u662f\u201c<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&amp;<\/mark>\u201d\u7b26\u53f7\uff0c\u8fd9\u91cc\u4e5f\u63a8\u8350\u4f7f\u7528<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&amp;<\/mark>\u800c\u4e0d\u662f<mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffffa0\" class=\"has-inline-color\">\u00a7<\/mark>\uff0c\u8fd9\u662f\u56e0\u4e3a\u201c<mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffffa0\" class=\"has-inline-color\">\u00a7<\/mark>\u201d\u7b26\u53f7\u5728\u7535\u8111\u4e2d\u5f88\u96be\u6253\u51fa\u6765\uff0c\u800c\u201c<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">&amp;<\/mark>\u201d\u5728\u5927\u591a\u6570\u952e\u76d8\u4e0a\u90fd\u5f88\u5bb9\u6613\u6253\u51fa\u6765\uff09\u3002<br><br>\u4e0d\u8fc7\u5728Denizen\u7684\u811a\u672c\u4e2d\u8fd8\u53ef\u4ee5\u8fd9\u4e48\u5199\uff0c\u7ed9\u989c\u8272\u4ee3\u7801\u52a0\u4e0a&lt;> \u4f8b\u5982\uff1a&lt;&amp;4>\u55b5\u55b5\u55b5<br><br>\u5047\u8bbe\u6211\u60f3\u8981\u7ed9Denizen\u4e2d\u8f93\u51fa\u7684\u811a\u672c\u6807\u4e3a\u7070\u8272\uff0c\u90a3\u4e48\u8fd9\u91cc\u5c31\u53ef\u4ee5\u5199\uff1a\u201c&lt;&amp;7>\u4f60\u7684\u6587\u672c\u201d<br>(\u5177\u4f53\u7684\u989c\u8272\u4ee3\u7801\u53c2\u6570\u8bf7\u53c2\u8003<a href=\"https:\/\/minecraft.fandom.com\/zh\/wiki\/%E6%A0%BC%E5%BC%8F%E5%8C%96%E4%BB%A3%E7%A0%81\">\u8fd9\u91cc<\/a>)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u7684\u4e0d\u540c\u5199\u6cd5\u7684\u6548\u679c\u4e5f\u662f\u4e00\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-border-color has-contrast-border-color\"><code>\u00a77\u55b5\u55b5\u55b5\n&amp;7\u55b5\u55b5\u55b5\n&lt;&amp;7>\u55b5\u55b5\u55b5\n&lt;gray>\u55b5\u55b5\u55b5\n&lt;&amp;color&#91;gray]>\u55b5\u55b5\u55b5\n&lt;element&#91;\u55b5\u55b5\u55b5].color&#91;gray]><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color has-x-large-font-size wp-elements-12 wp-block-paragraph\" style=\"color:#00b7ff\"><strong>\u6807\u7b7e\u7684\u5b9e\u9645\u4f7f\u7528<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-accent-one-color has-text-color has-link-color has-x-small-font-size wp-elements-13 wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-style:normal;font-weight:700;line-height:0\"><s>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/s><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u4e2a\u7b80\u5355\u7684\u6807\u7b7e\u53ef\u80fd\u662f\u5c06\u73a9\u5bb6\u4f20\u9001\u5230\u67d0\u4e2a\u5750\u6807\uff0c\u6216\u662f\u5c06\u67d0\u4e2aNPC\u4f20\u9001\u5230\u81ea\u5df1\u7684\u4f4d\u7f6e<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>teleport &lt;npc> &lt;player.location><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\uff0c\u6807\u7b7e\u5c31\u8fd9\u4e48\u7b80\u5355\uff1fNONONO\uff0c\u622a\u6b62\u76ee\u524d\u4e3a\u6b62\u6240\u8bb2\u7684\u5185\u5bb9\u7684\u786e\u975e\u5e38\u7b80\u5355\uff0c\u4f46\u6807\u7b7e\u7684\u5b9e\u9645\u5e94\u7528\u53ef\u80fd\u4f1a\u975e\u5e38\u590d\u6742\uff0c\u4f8b\u5982\u8fd9\u6837\u7684\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- teleport &lt;player.location.find_entities&#91;living].within&#91;&lt;&#91;range]>]> &lt;player.cursor_on&#91;&lt;&#91;distance]>].if_null&#91;&lt;player.location.forward&#91;&lt;&#91;distance]>]>]><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0d\u8fc7\u4e00\u822c\u90fd\u4e0d\u4f1a\u89c1\u5230\u8fd9\u4e48\u957f\u7684\u6807\u7b7e\uff0c\u8bf7\u4e0d\u8981\u62c5\u5fc3\uff01\u8fd9\u91cc\u53ea\u662f\u663e\u5f97\u6545\u610f\u5197\u957f\u800c\u590d\u6742LOL<br>\u53ea\u662f\u4e3a\u4e86\u8ba9\u60a8\u4f53\u9a8c\u4e00\u4e0b Tag \u5728\u6709\u7ecf\u9a8c\u7684\u7528\u6237\u624b\u4e2d\u62e5\u6709\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u57fa\u672c\u811a\u672c\u51e0\u4e4e\u4e0d\u9700\u8981\u8fd9\u4e48\u957f\u65f6\u95f4\u7684\u6807\u7b7e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6240\u4ee5\u8bf7\u8bb0\u4f4f\uff0c\u5728Denizen\u4e2d\uff0c\u552f\u4e00\u7684\u9650\u5236\u53ea\u6709\u811a\u672c\u7f16\u5199\u8005\u7684\u60f3\u8c61\u529b\uff01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color has-x-large-font-size wp-elements-14 wp-block-paragraph\" style=\"color:#00b7ff\"><strong>\u90a3\u4e48\uff0c\u5982\u4f55\u5236\u4f5c\u6807\u7b7e\u5462\uff1f<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-accent-one-color has-text-color has-link-color has-x-small-font-size wp-elements-15 wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-style:normal;font-weight:700;line-height:0\"><s>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/s><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b63\u5982\u60a8\u53ef\u80fd\u5df2\u7ecf\u731c\u5230\u7684\u90a3\u6837\uff0c\u67e5\u770b\u4e0a\u9762\u7684\u8f83\u957f\u793a\u4f8b\u65f6\uff0c\u6807\u7b7e\u4e0d\u4ec5\u9650\u4e8e\u6211\u4eec\u63d0\u4f9b\u7684\u9884\u9009\u6807\u7b7e\u5217\u8868\u3002\u6807\u8bb0\u7531\u811a\u672c\u7f16\u5199\u8005\u4ece\u591a\u4e2a\u90e8\u5206<em><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">\u6784\u5efa<\/mark><\/em>\uff0c\u4ee5\u6ee1\u8db3\u5176\u9700\u6c42\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-16\" style=\"color:#00b7ff\">\u6807\u7b7e\u7684\u7ec4\u6210\u90e8\u5206<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u6709\u4e24\u79cd\u57fa\u672c\u7684<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">\u7c7b\u578b<\/mark>\u6807\u7b7e\u53ef\u7528\u4f5c\u811a\u672c\u7f16\u5199\u8005\u7684\u6784\u5efa\u5757\u3002\u8fd9\u4e9b\u7c7b\u578b\u5305\u62ec\uff1a<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">Base(\u57fa\u672c)\u6807\u7b7e<\/mark><\/strong>\u548c<strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-accent-three-color\">Sub(\u5b50)\u6807\u7b7e<\/mark><\/strong>\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-17\" style=\"color:#00b7ff\">Base\u6807\u7b7e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u60f3\u8c61\u4e00\u4e2a\u6811\u7ed3\u6784\uff0cBase\u5c31\u662f\u6811\u7684\u6811\u5e72\u90e8\u5206\uff0c\u4efb\u4f55\u60c5\u51b5\u4e0bBase\u90fd\u5e94\u8be5\u4f4d\u4e8e\u6807\u7b7e\u7684\u6700\u9876\u7aef\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-18\" style=\"color:#00b7ff\">Sub\u6807\u7b7e<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Base\u662f\u6811\u7684\u6811\u5e72\u90e8\u5206\uff0c\u800cSub\u5219\u662f\u6811\u5ef6\u4f38\u51fa\u7684\u679d\u53f6\u90e8\u5206\u3002Sub\u6807\u7b7e\u7684\u5b58\u5728\u662f\u5728Base\u6807\u7b7e\u4e4b\u4e0a\u5efa\u7acb\u7684\uff0cBase\u6807\u7b7e\u5305\u542b\u4e86\u5176\u4e0b\u6240\u6709\u7684Sub\u6807\u7b7e\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-19\" style=\"color:#00b7ff\"><a href=\"https:\/\/guide.denizenscript.com\/guides\/first-steps\/tags.html#id9\">\u66f4\u957f\u7684<\/a>\u6807\u7b7e\u94fe<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5\u6807\u7b7e\u8fd4\u56de\u73a9\u5bb6\u6b63\u5728\u67e5\u770b\u7684\u4efb\u4f55\u5b9e\u4f53\u3002\u5982\u679c\u60a8\u5728\u67e5\u770b\u5176\u4ed6\u73a9\u5bb6\u65f6\u4f7f\u7528\u6b64\u9009\u9879\uff0c\u5219\u5c06\u8fd4\u56de\u8be5\u73a9\u5bb6\u7684\u540d\u79f0\u3002<br>(\u7531\u4e8e\u5927\u9646\u5730\u533a\u8bbf\u95eeDenizen\u624b\u518c\u7f51\u7ad9\u5f02\u5e38\uff0c\u672c\u90e8\u5206\u5c06\u5728\u65e5\u540e\u8fdb\u884c\u8865\u5145)<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/guide.denizenscript.com\/_images\/howtagsfittogether.gif\" alt=\"..\/..\/_images\/howtagsfittogether.gif\"\/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color has-x-large-font-size wp-elements-20 wp-block-paragraph\" style=\"color:#00b7ff\"><strong>A PlayerTag Is A Player In A Tag<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-accent-one-color has-text-color has-link-color has-x-small-font-size wp-elements-21 wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-style:normal;font-weight:700;line-height:0\"><s>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/s><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(\u7531\u4e8e\u5927\u9646\u5730\u533a\u8bbf\u95eeDenizen\u624b\u518c\u7f51\u7ad9\u5f02\u5e38\uff0c\u672c\u90e8\u5206\u5c06\u5728\u65e5\u540e\u8fdb\u884c\u8865\u5145)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"has-text-align-center has-text-color has-link-color has-x-large-font-size wp-elements-22 wp-block-paragraph\" style=\"color:#00b7ff\"><strong>\u5e26\u6709\u8f93\u5165\u503c\u7684\u6807\u7b7e<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-center has-accent-one-color has-text-color has-link-color has-x-small-font-size wp-elements-23 wp-block-paragraph\" style=\"margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0;font-style:normal;font-weight:700;line-height:0\"><s>\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014\u2014<\/s><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u67d0\u4e9b\u6807\u7b7e\u9700\u8981\u8f93\u5165\u503c\u3002\u4f8b\u5982\uff0c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;util.random.int&#91;&lt;#>].to&#91;&lt;#>]><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5\u6807\u7b7e\u91c7\u7528\u4e24\u4e2a\u7b80\u5355\u7684\u6570\u5b57\u8f93\u5165\u503c\uff08\u201cfrom\u201d\u548c\u201cto\u201d\uff09\uff0c\u5e76\u8fd4\u56de\u4e24\u8005\u4e4b\u95f4\u7684\u968f\u673a\u6570\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u6700\u57fa\u672c\u7684\u60c5\u51b5\u4e0b\uff0c\u8fd9\u4e9b\u8f93\u5165\u53ef\u4ee5\u7b80\u5355\u5730\u586b\u5145\u4ed6\u4eec\u671f\u671b\u7684\u4efb\u4f55\u7c7b\u578b\u7684\u503c\u3002\u56e0\u6b64\uff0c\u60a8\u53ef\u4ee5\u5728\u6e38\u620f\u5185\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\uff0c\u5b83\u4f1a\u6309\u9884\u671f\u4ece 1 \u5230 10 \u53d9\u8ff0\u4e00\u4e2a\u968f\u673a\u6570\u3002\u5982\u679c\u4f60\u91cd\u590d\u8fd9\u4e2a\u547d\u4ee4\u51e0\u6b21\uff0c\u4f60\u6bcf\u6b21\u90fd\u4f1a\u5f97\u5230\u4e00\u4e2a\u4e0d\u540c\u7684\u968f\u673a\u6570\uff08\u9664\u975e\u5b83\u91cd\u590d\uff0c\u56e0\u4e3a\u771f\u6b63\u7684\u968f\u673a\u6027\u6709\u65f6\u4f1a\u8fd9\u6837\u505a\uff09\u3002\/ex narrate<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"977\" height=\"668\" src=\"https:\/\/wiki.waterport.cn\/wp-content\/uploads\/2024\/09\/image.png\" alt=\"\" class=\"wp-image-115\" srcset=\"https:\/\/wiki.waterport.cn\/wp-content\/uploads\/2024\/09\/image.png 977w, https:\/\/wiki.waterport.cn\/wp-content\/uploads\/2024\/09\/image-300x205.png 300w, https:\/\/wiki.waterport.cn\/wp-content\/uploads\/2024\/09\/image-768x525.png 768w\" sizes=\"auto, (max-width: 977px) 100vw, 977px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading has-text-color has-link-color wp-elements-24\" style=\"color:#00b7ff\"><strong>\u6807\u7b7e\u4f5c\u4e3a\u6807\u7b7e\u7684\u8f93\u5165\uff1f\uff01<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u7b80\u5355\u7684\u503c\u8f93\u5165\u975e\u5e38\u9002\u5408\u6d4b\u8bd5\uff0c\u4f46\u5728\u5b9e\u9645\u4f7f\u7528\u4e2d\uff0c\u60a8\u901a\u5e38\u4f1a\u627e\u5230\u5c06\u52a8\u6001\u503c\u653e\u5165\u6807\u7b7e\u8f93\u5165\u4e2d\u7684\u7406\u7531\u3002\u4e0b\u9762\u662f\u4e00\u4e2a\u6709\u8da3\u7684\u793a\u4f8b\u811a\u672c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code has-border-color has-primary-border-color has-accent-two-color has-text-color has-link-color has-small-font-size wp-elements-25\"><code>slowly_dying:\n    type: task\n    script:\n    - narrate \"You think you're so special with &lt;player.health> health left?!\"\n    - hurt &lt;player> &lt;util.random.decimal&#91;0].to&#91;&lt;player.health.div&#91;2]>]>\n    - narrate \"Hah! Take that, &lt;player.name>! Now you only have &lt;player.health> health left!\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6bcf\u6b21\u8fd0\u884c\u6b64\u793a\u4f8b\u811a\u672c\u65f6\uff0c\u73a9\u5bb6\u5c06\u635f\u5931\u968f\u673a\u6570\u91cf\u7684\u751f\u547d\u503c\uff0c\u6700\u9ad8\u53ef\u8fbe\u5176\u751f\u547d\u503c\u7684\u4e00\u534a\uff0c\u901a\u5e38\u66f4\u5c11\u3002\u5b83\u8fd8\u4f1a\u544a\u8bc9\u4ed6\u4eec\u53d7\u5230\u4f24\u5bb3\u4e4b\u524d\u548c\u4e4b\u540e\u7684\u5065\u5eb7\u72b6\u51b5\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">(\u7531\u4e8e\u5927\u9646\u5730\u533a\u8bbf\u95eeDenizen\u624b\u518c\u7f51\u7ad9\u5f02\u5e38\uff0c\u672c\u7bc7\u76ee\u5c06\u5728\u65e5\u540e\u8fdb\u884c\u8865\u5145)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u4e00\u8282\uff0c\u6211\u4eec\u5c06\u7ee7\u7eed\u8fdb\u884c\u4e16\u754c\u811a\u672c\u7684\u6559\u5b66\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201c\u53d8\u91cf\u662f\u4e00\u79cd\u9b54\u6cd5\uff0c\u5b83\u4eec\u8ba9\u4f60\u80fd\u591f\u7528\u4e00\u4e2a\u7b80\u5355\u7684\u8868\u8fbe\u5f0f\u89e3\u51b3\u590d\u6742\u7684\u95ee\u9898\u3002\u201d \u2014\u2014 \u7ea6\u7ff0\u00b7\u51af\u00b7\u8bfa\u4f0a\u66fc \u4ec0\u4e48\u662f\u6807\u7b7e\uff1f \u2014\u2014 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/comments?post=102"}],"version-history":[{"count":3,"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/posts\/102\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/media?parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/categories?post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wiki.waterport.cn\/index.php\/wp-json\/wp\/v2\/tags?post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}