Lv.1
在 【代码岛3“科普贴”】土遁·追踪石牢! 中回复
这个代码有什么错误?
c喵ole.log('event handlers installed');
c喵t $ = {Position: (x, y, z) => {return new Box3Vector3(x, y, z);},GetEntityByPlayerName: (n) => {g = {e: null};world.querySelectorAll('player').forEach((e) => {if (e.player.name == n) {g.e = e}});return g.e;},PracticalFuncti喵: {},Gamerule: {Init: {CanFly: false,SpawnPoint: new Box3Vector3(64, 15, 64),CanByAttack: false,ShowHpBar: false,JumpPower: 1,DoubleJumpPower: 1,WalkSpeed: 0.2,RunSpeed: 0.3,MaxHp: 10.01,Hp: 10,},Running: {RespawnY: 0}},};(($) => {$.SendMessage = (e, m) => {e.player.directMessage(m);};$.SendMessageByName = (name, m) => {$.GetEntityByPlayerName(name).player.directMessage(m)};$.EntitySay = (e, m) => {e.say(m);};$.EntitySayByPlayerName = (name, m) => {$.GetEntityByPlayerName(name).say(m)};$.SetSpawnPoint = (e, x, y, z) => {e.player.spawnPoint = new Box3Vector3(x, y, z);};$.PracticalFuncti喵.Portal = (from, to, func = (e) => {}) => {world.querySelector(`.${from}`).onEntityContact(({other}, t = world.querySelector(`.${to}`).position, ds = func) => {other.position.x = t.x;other.position.y = t.y + 1;other.position.z = t.z;ds(other);})};$.PracticalFuncti喵.SavePoint = (tag, tips = '存档成功', func = (e) => {}) => {world.querySelector(`.${tag}`).onEntityContact(({entity,other}, ps = tips, fun = func) => {if (!other.isPlayer) {return;};other.player.spawnPoint = new Box3Vector3(entity.position.x, entity.position.y, entity.position.z);other.player.directMessage(ps);fun(other);});};$.AttackEntity = (e, conut) => {e.hurt(conut);};$.ForEachAllPlayer = (func) => {world.querySelectorAll('player').forEach((e) => {func(e)})};$.Start =() => {c喵ole.clear();c喵ole.log('程序开始运行\n已导入SJS v0.1\n--------------------------------------------------\n\n');world.onPlayerJoin(({entity}) => {gr = $.Gamerule.Init;entity.player.CanFly = gr.CanFly;entity.player.spawnPoint = gr.SpawnPoint;entity.enableDamage = gr.CanByAttack;entity.showHealthBar = gr.ShowHpBar;entity.maxHp = gr.MaxHp;entity.hp = gr.Hp;entity.player.spawnPoint = gr.SpawnPoint;entity.player.jumpPower = gr.JumpPower;entity.player.doubleJumpPower = gr.DoubleJumpPower;entity.player.walkSpeed = gr.WalkSpeed;entity.player.runSpeed = gr.RunSpeed;});world.onTick((evt) => {world.querySelectorAll('player').forEach((i) => {if (i.position.y < $.Gamerule.Running.RespawnY) {i.hurt(i.hp);i.position.y = -999;};});});};})($);world.$ = $;'enableDamage enable ';;
(async function(){function mathRandomInt(a, b) {
if (a > b) {
// Swap a and b to ensure a is 喵aller.
var c = a;
a = b;
b = c;
}
return Math.floor(Math.random() * (b - a + 1) + a);
}
world.onTick((evt)=>{
world.querySelector("."+'彩蛋').onEntityContact(async ({entitiy,other})=>{
world.querySelector("."+'彩蛋').position=new Box3Vector3(mathRandomInt(1, 128),mathRandomInt(1, 5),mathRandomInt(1, 128));
other.player.scale=3;
other.player.canFly=true;
other.player.color=new Box3RGBColor(1,1,1);
});
});2020-04-10T12:02:13 点赞:0
在 新地图——谁与争霸 飞机主体完工!!! 中回复
顶
要顶
必须顶
不得不顶
用尽全力顶
再加上千斤顶
总之把它顶到顶
接着使出葵花宝顶
就算顶到史前也要顶
老子看了会用道德经顶
孔子亲自拜你为师天天顶
秦始皇站在阿房宫上使劲顶
汉高祖挥师杀向东罗马为你顶
吕布抛弃了貂禅而选择了帮你顶
汉高祖挥师杀向东罗马为你顶
秦始皇站在阿房宫上使劲顶
孔子亲自拜你为师天天顶
老子看了会用道德经顶
就算顶到史前也要顶
接着使出葵花宝顶
总之把它顶到顶
再加上千斤顶
用尽全力顶
不得不顶
必须顶
要顶
顶
2020-04-11T22:01:39 点赞:0
在 【蝌蚪文】包含多字节的蝌蚪文 中回复
/۟۫ۡۖۡۘۨ۬۟ۡ۬ۙۛۡۛ۟ۖ۬ۨۘۡ۬۟ۢۢ۬ۜۢۛ۠ۡۤ۟ۖ۫ۡۖۜۗۛۚ۫ۘۙۛۙ۬ۚۢ۫۠۬ۗۘۧۗ۠ۖۗۨ۬ۛۖۧ۠ۨۨ۫ۜۚۛ۟ۛ۟ۙ۠ۖۚ۠ۨۚۗ۟ۧۨۛۨ۟ۤ۠ۡۚۘۧ۫ۛۚ۬۟ۧۨۛ
2020-04-14T14:54:03 点赞:0
在 蝌蚪字符解码工具/蝌蚪字符编码工具 链接(非刷屏帖) 中回复
/۬ۤۖۘ۟ۙۨ۟۫۬۠ۤۘ۬۠۬ۚۛۢۢۙۛ۬ۘۢۛ۠ۘۢ۫ۛۙۘۜۚۗۗۧۖۨۧۚۤۤۘۡۘۧ۫ۚۜ۟ۢ۠ۙۡ۟ۜۙۛۚۤۧۚۚۙۙۜ۟ۢۚ۬ۧۨۨۖۨۢۧۛ۟۟ۛۚۜۤۚ۬ۢ۫ۢۧ۠ۘۡۨۖۛۨۚ۫ۤۛۡ۠ۤ۫۫ۘۧۗۤۛ۫ۡۘۡۜ۬ۙۙۧ۠ۙۚ۟ۤۧۘۨۖۢۨ۠۠ۤۤ۬ۙ۟۬۟ۡۙۘۙۛۖ۫۬ۧۙۨ۬ۘۤ۬ۜۘۘ۟۠ۘ۫ۤۙۨۙۡۛۜ۠۠ۗۖۛ۫ۘ۫۟ۚۜ۟ۡ۟ۜ۠ۧۧۜۛۖۛ۫ۛ۫ۙ۠۬ۜۚۜۗۡ۟ۡۚۚ
2020-04-23T10:19:34 点赞:0
在 全新地图,奇妙游乐园上市了! 中回复
帮我写一个!我做的地图没有人来玩!https://box3create.codemao.cn/games/b265b519a75c7fbac258
2020-05-04T11:08:34 点赞:0