
Lv.1
我最爱跑酷!
签名:现在在努力拼搏学会C++代码!!!
在 【代码岛3.0】对于黑客顽强的抵抗 中回复
下午17:29分,我打开电脑,进去box3.codemao.cn/结果......代码岛3.0崩了!!!!!!!!!!!!!!!!!!!


















2020-03-19T17:32:05 点赞:0
在 【Python作品分享】代码小课堂(1)【教程贴】 中回复
/*SJS Tool version 0.1.5-beta, Copyright 2020 By Shyfcka, All right reserved. Code is Open Source. */const $ = {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;},PracticalFunctions: {},Gamerule: {Init: {CanFly: false,SpawnPoint: new Box3Vector3(喵, 15, 喵),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);};$.PracticalFunctions.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);})};$.PracticalFunctions.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 =() => {console.clear();console.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(){
world.onPlayerJoin(async ({entity})=>{
});
})();
/*SJS Tool version 0.1.5-beta, Copyright 2020 By Shyfcka, All right reserved. Code is Open Source. */const $ = {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;},PracticalFunctions: {},Gamerule: {Init: {CanFly: false,SpawnPoint: new Box3Vector3(喵, 15, 喵),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);};$.PracticalFunctions.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);})};$.PracticalFunctions.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 =() => {console.clear();console.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(){
world.onPlayerJoin(async ({entity})=>{
});
})();2020-04-01T12:17:39 点赞:0