
Lv.1
大家好,这里是小包,感谢你的持续关注,Bilibil账号:小包小包i
签名:正在努力....弃坑 [狗头] 哇塞,贼特么难 靠 java贼他喵难
在 【社区功能反馈】用心倾听,用头发发电!(2026更新版) 中回复
我觉得应该要个板块,叫做小工具,里面是通天塔,图书馆,漫画连载,源码精灵,神奇代码岛
2021-07-11T13:20:52 点赞:0
在 为什么设不了存档点??? 中回复
entity.player.scale = 0.25;
for (c喵t e of world.querySelectorAll('*')) {//遍历所有实体
if (e.id.startsWith('传送门')) {//如果当前实体名左边部分刚好是"存档点", 比如 存档点-1 存档点-2...
e.collides = true ;//开启碰撞
e.fixed = true //固定实体不被推移
e.meshScale = e.meshScale.scale(1) //放大2倍
e.onEntityContact(({ other }) => { //每当存档点碰到另一个实体
if (other.isPlayer) { //另一个实体是玩家
if (e.position !== other.player.spawnPoint) { // 检测当前存档点是否玩家重生点, 避免反复在同一个存档点做多余的保存
other.player.directMessage('到达新的保存点,存档成功~') // 给玩家发消息
other.player.spawnPoint = e.position // 喵家重生点坐标设置成存档点的坐标
}
}
})
}
}
world.onPlayerJoin(({ entity }) => {
entity.onFluidEnter(() => {//当玩家掉到水里
entity.position.copy(entity.player.spawnPoint)
entity.position.y += 4
})
})
// 先在场景中放置一个名称为 NPC 的实体。
c喵t npc = world.querySelector('#npc');
npc.enableInteract = true;
npc.interactHint = npc.id;
npc.interactRadius = 16;
// 玩家与实体进行交互时触发
npc.onInteract(async ({entity}) => {
c喵t result = await entity.player.dialog({
type: Box3DialogType.SELECT,
title: npc.id,
lookTarget:npc,
content: `${entity.player.name},你想尝试挑战这个游戏吗?`,
opti喵: ['当然', '下次吧。'],
});
c喵ole.log(`选择了第 index: ${result.index} 个选项: ${result.value}`)
// 如果选了第一个选项,也就是'当然'。就会执行特定事件
if (result.index === 0){
npc.say(`${result.value}?gun!`);
world.onPlayerJoin(({entity}) => {
// 玩家进入游戏的时候缩小到0.25倍
})
}
});
2021-07-16T12:58:23 点赞:0
在 kitten3.0是bug还是新版本? 中回复
还有个很致命的问题!
就是KITTEN4打不开KITTEN3的作品!
证据如下:
这是KITTEN3

这是KITTEN4

2021-08-21T20:06:44 点赞:0
在 不会吧不会吧 我看看岛三有没有比我更无聊的() 中回复
imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"
2021-08-26T22:31:06 点赞:0
在 【岛3漫游指南】:你是怎样,岛3就是怎样! 中回复
imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E6%90%93%E5%A4%B4.gif"alt="emotion_编程猫_搓头"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%82%B9%E8%B5%9E.gif"alt="emotion_编程猫_点赞"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8A%A0%E6%B2%B9.gif"alt="emotion_编程猫_加油"imgsrc="https://static.cod喵/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E5%8A%A0%E6%B2%B9.gif"alt="emotion_编程猫_加油"
2021-08-28T15:57:39 点赞:0
在 UT素材专区 中回复
ut音乐: <iframeframeborder="no"border="0"marginwidth="0"marginheight="0"width=330height=86src="//music.163.com/outchain/player?type=2&id=1401425409&auto=1&height=66"></iframe>
2021-09-16T19:58:59 点赞:0
在 个人AU像素图初稿(无人胜利的战斗) 中回复
<embedsrc="//music.163.com/style/swf/widget.swf?sid=1401425409&type=2&auto=1&width=320&height=66"width="340"height="86"allowNetworking="all"></embed>
2021-09-16T20:01:03 点赞:0
在 个人AU像素图初稿(无人胜利的战斗) 中回复
音乐: <embedsrc="/喵style/swf/widget.swf?sid=1401425409&type=2&auto=1&width=320&height=66"width="340"height="86" allowNetworking="all"></iframe>
2021-09-18T11:04:03 点赞:0