用户:
hecos查看:12 回复:6 评论:12 创建时间:2020-07-23T14:43:52
想要模型叛乱吗?
如果你按照下面的步骤做,就可以实现,并且对于你宝贵的图来说,没有损害!
下面,开始吧!
1、为了防止模型脱离控制,接管地球,请确保你的图里没有很多模型,并保证游戏正处于开始状态。
2、为了防止发生意外情况,请在自己的图里试验(在别人的图里要经过图主的允许)。
3、请输入以下代码:
world.onTick(()=>{world.querySelectorAll('*').forEach((e)=>{if(e.isPlayer){return;}e.fixed=false;e.position.set(Math.round(Math.random()*126),Math.round(Math.random()*126),Math.round(Math.random()*126))})})
4、等着看好戏吧!

想要更疯狂写就键入以下代码吧!
注:一定要在开启的时候键入!
world.onTick(()=>{for(let i=0;i<100;i++){voxels.setVoxel(Math.round(Math.random()*126),Math.round(Math.random()*126),Math.round(Math.random()*126),Math.round(Math.random()*300));}world.querySelectorAll('*').forEach((e)=>{if(e.isPlayer){return;}e.fixed=false;e.position.set(Math.round(Math.random()*126),Math.round(Math.random()*126),Math.round(Math.random()*126))})})点赞0
评论