加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
index.html 46.70 KB
一键复制 编辑 原始数据 按行查看 历史
编码喵 提交于 2023-08-26 15:36 . update pack.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="keywords" content="Blockly,blockly,BOX3 Blockly,神奇代码岛,代码岛,图形化">
<meta name="description" content="基于Blockly的第三方Box3图形化编辑器,帮助萌新学习API与JS">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=0.55, user-scalable=no">
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<title>BOX3 Blockly</title>
<!--<link rel="stylesheet" href="styles/material.indigo-pink.min.css">-->
<link rel="stylesheet" href="styles/index.css">
</head>
<body mode="maker">
<header class="header" id="header">
<div
style="float:left;height:50px;width:50px;background:url('images/logo.png');background-size:cover;position:absolute;top:0px;bottom:0px;margin:auto;margin-left:15px;">
</div>
<h1 class="h1">BOX3 Blockly</h1>
<div class="contentes">
<center>
<p class="p">文件</p>
</center>
<div style="border-radius:6px;box-shadow:3px 3px 10px grey;margin-top:8px;width:125px;">
<div class="select" style="border-top-left-radius:6px;border-top-right-radius:6px;width:125px;"
onclick="save();alert('保存成功!')">
<p style="font-size:13pt;line-height:2.4em;">保存</p>
</div>
<input type="file" id="files" style="display:none" onchange="openFile()" accept=".blk,.xml" />
<div class="select" style="width:125px;" onclick="document.getElementById('files').click()">
<p style="font-size:13pt;line-height:2.4em;">打开本地</p>
</div>
<div class="select" style="width:125px;"
onclick="downLoad(decodeURIComponent(xmlToDom()),'BLKProject.blk')">
<p style="font-size:13pt;line-height:2.4em;">下载blk</p>
</div>
<div class="select" style="border-bottom-left-radius:6px;border-bottom-right-radius:6px;width:125px;"
onclick="downLoad(document.getElementById('code').innerText,'BOX3 Blockly.js')">
<p style="font-size:13pt;line-height:2.4em;">下载js</p>
</div>
</div>
</div>
<div class="contentes">
<center>
<p class="p">关于</p>
</center>
<div style="border-radius:6px;box-shadow:3px 3px 10px grey;margin-top:8px;width:140px;">
<div class="select" style="border-top-left-radius:6px;border-top-right-radius:6px;width:140px"
onclick="about()">
<p style="font-size:13pt;line-height:2.4em;">关于...</p>
</div>
<div class="select" style="width:140px;" onclick="window.open('https://box3.codemao.cn')">
<p style="font-size:13pt;line-height:2.4em;">BOX3官网</p>
</div>
<div class="select" style="border-bottom-left-radius:6px;border-bottom-right-radius:6px;width:140px;"
onclick="window.open('https://docs.box3.codemao.cn')">
<p style="font-size:13pt;line-height:2.4em;">开发API</p>
</div>
</div>
</div>
<div class="contentes">
<center>
<p class="p">设置</p>
</center>
<div style="border-radius:6px;box-shadow:3px 3px 10px grey;margin-top:8px;width:130px;">
<div class="select" style="border-radius:6px;width:130px" onclick="setTheme()">
<p style="font-size:13pt;line-height:2.4em;">主题色</p>
</div>
</div>
</div>
<div name="login">
<div class="loginButton" id="loginButton">登录BOX3账号</div>
<div id="loginBox">
<div id="userName"></div>
<img id="userImg">
<div id="relog" class="select">退出登录</div>
</div>
</div>
</header>
<div class="loadBg" id="loadBg">
<center>
<h1 class="title">BOX3 Blockly</h1>
<img src="images/logo.png" style="position:fixed;border-radius:50%;margin-left:-48px;margin-top:10px;"
height="96px;"></img>
<div class="load"></div><br />
<p id="loadContent">加载中...</p>
</center>
</div>
<dialog id="login-dialog" class="wc-dialog">
<div class="wc-dialog-title">
登录<span class="times" onclick="document.getElementById('login-dialog').close()">&times;</span>
</div>
<div class="wc-dialog-content">
<div class="login-select login-selecting" style="float:left;margin-left:40px;" id="box-login-select">BOX3登录</div>
<div class="login-select login-unselecting" style="float:right;margin-right:40px;" id="codemao-login-select">编程猫</div>
<br/>
<div id="box-login">
<br/>
<span style="font-size:13pt;">账号:</span><input class="input" style="width:250px" placeholder="手机号/邮箱/代码岛BoxId" id="zh"/>
<div id="zh-error" style="color:red;font-size:12px;"></div>
<br/>
<span style="font-size:13pt;">密码:</span><input class="input" style="width:250px" placeholder="密码" id="ps" type="password"/>
<div id="pas-error" style="color:red;font-size:12px;"></div>
<br/><br/>
<button class ="wc-button2" style="width:100%;border-radius:50px;border:1px rgb(0,135,255) solid;padding:10px;background-color:white;cursor:pointer" onclick="window.open('https://box3.codemao.cn/me/')">注册BOX3账号</button>
</div>
<div id="codemao-login">
<br/>
<span style="font-size:13pt;">账号:</span><input class="input" style="width:250px" placeholder="手机号/用户名/邮箱" id="codemao-zh"/>
<div id="codemao-zh-error" style="color:red;font-size:12px;"></div>
<br/>
<span style="font-size:13pt;">密码:</span><input class="input" style="width:250px" placeholder="密码" id="codemao-ps" type="password"/>
<div id="codemao-pas-error" style="color:red;font-size:12px;"></div>
<br/><br/>
<button class ="wc-button2" style="width:100%;border-radius:50px;border:1px rgb(0,135,255) solid;padding:10px;background-color:white;cursor:pointer" onclick="window.open('https://shequ.codemao.cn')">注册编程猫账号</button>
</div>
</div>
<button class="wc-button wc-button1" id="login-">登录</button>
<button class="wc-button wc-button2" onclick="document.getElementById('login-dialog').close()">取消</button>
</dialog>
<div id="main">
<div class="blockly-editor">
<div id="blocklyDiv"
style="position:relative; width: 75%; height:100%;"></div>
<div>
<div id="code"></div>
<div id="copy">
<center style="margin-top:18px;">复制</center>
</div>
</div>
</div>
<xml id="toolbox" style="display:none;">
<category name="事件" colour="#0074FF">
<block type="whenStart"></block>
<block type="onPlayerJoin">
<value name="value">
<shadow type="joinEntity">
</shadow>
</value>
</block>
<block type="joinEntity"></block>
<block type="onPlayerLeave">
<value name="value">
<shadow type="leaveEntity">
</shadow>
</value>
</block>
<block type="leaveEntity"></block>
<block type="onInteract">
<value name="value">
<shadow type="interactEntity">
</shadow>
</value>
<value name="value1">
<shadow type="targetEntity">
</shadow>
</value>
</block>
<block type="interactEntity"></block>
<block type="targetEntity"></block>
<block type="onEntityContact">
<value name="value">
<shadow type="contactEntity">
</shadow>
</value>
<value name="value1">
<shadow type="other">
</shadow>
</value>
<value name="value2">
<shadow type="force">
</shadow>
</value>
<value name="value3">
<shadow type="axis">
</shadow>
</value>
</block>
<block type="contactEntity"></block>
<block type="other"></block>
<block type="force"></block>
<block type="axis"></block>
</category>
<category name="控制" colour="#40BCFF">
<block type="controls_repeat_ext">
<value name="TIMES">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="controls_whileUntil"></block>
<block type="controls_for">
<value name="BY">
<shadow type="math_number"></shadow>
</value>
<value name="FROM">
<shadow type="math_number"></shadow>
</value>
<value name="TO">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="controls_forEach">
</block>
<block type="controls_flow_statements"></block>
<block type="controls_if"></block>
<block type="controls_ifelse"></block>
<block type="note">
<field name="VALUE">一个注释</field>
</block>
<block type="sleep">
<value name="Number">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="output">
<value name="Text">
<block type="text">
<field name="TEXT">Hello,BOX3!</field>
</block>
</value>
</block>
<block type="clearConsole"></block>
<block type="outError">
<value name="Text">
<block type="text">
<field name="TEXT">Error:Hello,BOX3!</field>
</block>
</value>
</block>
<block type="outWarn">
<value name="Text">
<block type="text">
<field name="TEXT">Warn:Hello,BOX3!</field>
</block>
</value>
</block>
<block type="outDeBug">
<value name="Text">
<block type="text">
<field name="TEXT">Hello,BOX3!</field>
</block>
</value>
</block>
</category>
<category name="世界" colour="#CD40FF">
<block type="Box3World"></block>
<block type="projectName"></block>
<block type="url"></block>
<block type="anEntity">
<value name="Name">
<shadow type="text"></shadow>
</value>
</block>
<block type="worldQuerySelector">
<comment>http://docs.box3.codemao.cn/box3world.html#search-%E6%90%9C%E7%B4%A2</comment>
<field name="s">#实体</field>
</block>
<block type="allEntity">
<comment>将返回一个数组</comment>
</block>
<block type="WSay">
<value name="VALUE">
<shadow type="text">
<field name="TEXT">Hello,BOX3!</field>
</shadow>
</value>
</block>
<block type="gravity">
<value name="Number">
<shadow type="math_number">
<field name="NUM">-1.1</field>
</shadow>
</value>
</block>
<block type="airFriction">
<value name="number">
<shadow type="math_number">
<field name="NUM">0.001</field>
</shadow>
</value>
</block>
<block type="maxFog">
<value name="number">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="fogColor">
<value name="color">
<block type="rgbColor">
</block>
</value>
</block>
<block type="fogStartDistance">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="fogHeightOffset">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="fogUniformDensity">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="fogHeightFalloff">
<value name="number">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainSpeed">
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="rainColor">
<value name="color">
<block type="rgbaColor">
</block>
</value>
</block>
<block type="rainDirection">
<value name="direction">
<block type="vector3">
</block>
</value>
</block>
<block type="rainDensity">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainInterference">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainSizeLo">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="rainSizeHi">
<value name="num">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="snowColor">
<value name="color">
<block type="rgbaColor">
</block>
</value>
</block>
<block type="snowTexture">
</block>
<block type="snowDensity">
<value name="num">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="snowFallSpeed">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="snowSpinSpeed">
<value name="vector3">
<block type="vector3">
</block>
</value>
</block>
<block type="snowSizeLo">
<value name="num">
<shadow type="math_number">
</shadow>
</value>
</block>
<block type="snowSizeHi">
<value name="num">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="lightMode"></block>
<block type="sunFrequency">
<value name="number">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="sunPhase">
<comment>https://docs.box3.codemao.cn/box3world.html#worldsunphase</comment>
<value name="number">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="lunarPhase">
<comment>https://docs.box3.codemao.cn/box3world.html#worldlunarphase</comment>
<value name="number">
<shadow type="math_number">
<field name="NUM">0</field>
</shadow>
</value>
</block>
<block type="sunDirection">
<value name="vector">
<block type="vector3">
<value name="X">
<shadow type="math_number"></shadow>
</value>
<value name="Y">
<shadow type="math_number"></shadow>
</value>
<value name="Z">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="sunLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyLeftLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyRightLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyBottomLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyTopLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyFrontLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
<block type="skyBackLight">
<value name="rgb">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
</value>
</block>
</category>
<category name="实体" colour="#FF4281">
<block type="Box3Entity"></block>
<block type="entityObject">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityMesh">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="mesh">
<shadow type="text">
<field name="TEXT">mesh/实体.vb</field>
</shadow>
</value>
</block>
<block type="entityPosition">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="pos">
<block type="vector3"></block>
</value>
</block>
<block type="entityScale">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="scale">
<block type="vector3"></block>
</value>
</block>
<block type="entityColor">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="color">
<block type="rgbaColor"></block>
</value>
</block>
<block type="entityInvisible">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityEmissive">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="entityMetaIness">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="entityShininess">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="entityOffset">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="offset">
<block type="vector3"></block>
</value>
</block>
<block type="entityBounds">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityCollides">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityFixed">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityFriction">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityGravity">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityMass">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="entityRestitution">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityVelocity">
<comment>设置实体的移动方向</comment>
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="vector3">
<block type="vector3"></block>
</value>
</block>
<block type="entityContactForce">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entitySay">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="text">
<shadow type="text">
<field name="TEXT">Hello,BOX3!</field>
</shadow>
</value>
</block>
<block type="entityEnableInteract">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="entityInteractRadius">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number">
<field name="NUM">16</field>
</shadow>
</value>
</block>
<block type="entityInteractHint">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="hint">
<shadow type="text">
<field name="TEXT">npc</field>
</shadow>
</value>
</block>
<block type="entityInteractColor">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="color">
<block type="rgbColor"></block>
</value>
</block>
</category>
<category name="方块" colour="#30BF82">
<block type="Box3Voxels"></block>
<block type="setVoxel">
<value name="X">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">8</field>
</shadow>
</value>
<value name="Z">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<field name="VOXEL">dirt</field>
</block>
<block type="setVoxelId">
<value name="X">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">8</field>
</shadow>
</value>
<value name="Z">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="VOXEL">
<shadow type="math_number">
<field name="NUM"></field>
</shadow>
</value>
</block>
<block type="getVoxel">
<value name="X">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
<value name="Y">
<shadow type="math_number">
<field name="NUM">8</field>
</shadow>
</value>
<value name="Z">
<shadow type="math_number">
<field name="NUM">64</field>
</shadow>
</value>
</block>
<block type="voxelsId">
<value name="name">
<shadow type="text">
<field name="TEXT">dirt</field>
</shadow>
</value>
</block>
<block type="voxelsName">
<value name="id">
<shadow type="math_number">
<field name="NUM">2</field>
</shadow>
</value>
</block>
</category>
<category name="玩家" colour="#FF737D">
<block type="Box3Player"></block>
<block type="playerName">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
</block>
<block type="playerBoxId">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
</block>
<block type="playerUserKey">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
</block>
<block type="playerSpawnPoint">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
<value name="pos">
<block type="vector3"></block>
</value>
</block>
<block type="playerMovementBounds">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
<value name="pos">
<block type="vector3"></block>
</value>
</block>
<block type="playerDirectMessage">
<value name="entity">
<shadow type="Box3Entity">
</shadow>
</value>
<value name="chat">
<shadow type="text">
<field name="TEXT">Hello,BOX3!</field>
</shadow>
</value>
</block>
<block type="playerMuted">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerColor">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="color">
<block type="rgbColor"></block>
</value>
</block>
<block type="playerEmissive">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="playerInvisible">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerShowName">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerScale">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="scale">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
<block type="playerMetalness">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="playerShininess">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="num">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="playerCanFly">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerSpectator">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerEnableJump">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerEnableDoubleJump">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
</block>
<block type="playerWalkSpeed">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number">
<field name="NUM">0.22</field>
</shadow>
</value>
</block>
<block type="playerRunSpeed">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number">
<field name="NUM">0.4</field>
</shadow>
</value>
</block>
<block type="playerRunAcceleration">
<value name="entity">
<shadow type="Box3Entity"></shadow>
</value>
<value name="number">
<shadow type="math_number">
<field name="NUM">0.35</field>
</shadow>
</value>
</block>
</category>
<category name="文本" colour="%{BKY_TEXTS_HUE}">
<block type="text"></block>
<block type="text_join">
</block>
<block type="text_length"></block>
<block type="text_append"></block>
<block type="text_isEmpty"></block>
<block type="text_indexOf"></block>
<block type="text_charAt"></block>
</category>
<category name="运算" colour="%{BKY_MATH_HUE}">
<block type="math_number"></block>
<block type="math_arithmetic"></block>
<block type="math_single"></block>
<block type="math_trig"></block>
<block type="math_constant"></block>
<block type="logic_compare"></block>
<block type="logic_operation"> </block>
<block type="logic_boolean"></block>
<block type="math_number_property"></block>
</category>
<category name="向量" colour="#42FF42">
<block type="vector3">
<value name="X">
<shadow type="math_number"></shadow>
</value>
<value name="Y">
<shadow type="math_number"></shadow>
</value>
<value name="Z">
<shadow type="math_number"></shadow>
</value>
</block>
</category>
<category name="色彩" colour="%{BKY_RGB_HUE}">
<block type="rgbColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
</block>
<block type="rgbaColor">
<value name="R">
<shadow type="math_number"></shadow>
</value>
<value name="G">
<shadow type="math_number"></shadow>
</value>
<value name="B">
<shadow type="math_number"></shadow>
</value>
<value name="A">
<shadow type="math_number">
<field name="NUM">1</field>
</shadow>
</value>
</block>
</category>
<category name="变量" custom="VARIABLE" colour="%{BKY_VARIABLES_HUE}"></category>
<category name="数组" colour="#FFD300">
<block type="lists_create_with">
<mutation items="0"></mutation>
</block>
<block type="lists_create_with"></block>
<block type="lists_repeat">
<value name="NUM">
<shadow type="math_number">
<field name="NUM">5</field>
</shadow>
</value>
</block>
<block type="lists_length"></block>
<block type="lists_isEmpty"></block>
<block type="lists_indexOf">
<value name="VALUE">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_getIndex">
<value name="VALUE">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_setIndex">
<value name="LIST">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_getSublist">
<value name="LIST">
<block type="variables_get">
<field name="VAR">数组</field>
</block>
</value>
</block>
<block type="lists_split">
<value name="DELIM">
<shadow type="text">
<field name="TEXT">,</field>
</shadow>
</value>
</block>
<block type="lists_sort"></block>
</category>
<category name="函数" custom="PROCEDURE" colour="#FF7400"></category>
</xml>
<script src="scripts/blockly.min.js"></script>
<!--<script src="scripts/msg/zh-hans.js"></script>-->
<script src="scripts/blocks.js"></script>
<script src="scripts/custom_render.js"></script>
<script src="scripts/main.js"></script>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化