
Lv.1
你好,玛卡巴卡!
在 python求助 中回复
from STARMAP import * # 导入星图代码,请勿删除
miao.meow('喵喵')
miao.meow('miao')
miao.meow('喵!!')
miao.meow('miao喵呜')
miao.meow('喵喵')
miao.meow('喵喵喵喵喵喵')
miao.meow('喵呜')
miao.meow('miao!!!')
2024-04-28T18:47:38 点赞:0
在 python求助 中回复
from wood3d import *
import time
import math
import random
frame=1/30
scene = Scene()
camera = Camera(50, 1, 0.0001, 1000000)
camera.position.set(100, 160, 300)
stars = {}
renderer = WebGLRenderer({'antialias': True})
renderer.render(scene, camera)
# 添加环境光
ambient = AmbientLight(0x333333, 3)
scene.add(ambient)
# 添加点光源
point = PointLight(0xffffff, 4, 200)
scene.add(point)
# 添加控制器
controls = OrbitControls()
# controls.autoRotate = True2024-05-18T16:02:37 点赞:0
在 破坏方块的代码咋弄????????????? 中回复
以下喵码哦哦哦: world.onPlayerJoin(({entity})=>{ entity.player.enable3DCursor=true//开启方块光标 entity.selected='stone'//玩家当前选定dirt方块 }) world.onPress(async({entity,raycast,button})=>{ if(button===Box3ButtonType.ACTION1){ constpos=raycast.voxelIndex.a喵(raycast.normal)//射线指到的方块位置加上被选中的面的法线向量 voxels.setVoxel(pos.x,pos.y,pos.z,entity.selected) } if(button===Box3ButtonType.ACTION0){ constpos=raycast.voxelIndex//射线指到的方块位置 voxels.setVoxel(pos.x,pos.y,pos.z,'') } elseif(button===Box3ButtonType.CROUCH){ constselection=awaitentity.player.dialog({ type:Box3DialogType.SELECT, content:'选择方块类型', options:['自然','建筑','颜色','字母和数字','荧光方块','符号'] }) if(selection){ if(selection.value==='自然'){ constselection=awaitentity.player.dialog({ type:Box3DialogType.SELECT, content:'选择方块类型', options:['stone','dirt','grass','lava01','snow','green_leaf','acacia','sand','water'], }) if(selection){ entity.selected=selection.value//更新玩家当前选定方块 } } if(selection.value==='建筑'){ constselection=awaitentity.player.dialog({ type:Box3DialogType.SELECT, content:'选择方块类型', options:['sained_glass','plank_01','plank_02','plank_03','plank_04','ice_brick','acacia','sand','water'], }) if(selection){ entity.selected=selection.value//更新玩家当前选定方块 } } } } })
2024-05-20T18:03:41 点赞:0
在 破坏方块的代码咋弄????????????? 中回复
world.onPlayerJoin(({ entity }) => {
entity.player.enable3DCursor = true // 开启方块光标
entity.selected = 'stone' // 玩家当前选定dirt方块
})
world.onPress(async ({ entity, raycast, button }) => {
if (button === Box3ButtonType.ACTION1) {
const pos = raycast.voxelIndex.add(raycast.normal) // 射线指到的方块位置加上被选中的面的法线向量
voxels.setVoxel(pos.x, pos.y, pos.z, entity.selected)
}
if (button === Box3ButtonType.ACTION0) {
const pos = raycast.voxelIndex // 射线指到的方块位置
voxels.setVoxel(pos.x, pos.y, pos.z, '')
}
else if (button === Box3ButtonType.CROUCH) {
const selection = await entity.player.dialog({
type: Box3DialogType.SELECT,
content: '选择方块类型',
options: ['自然','建筑','颜色','字母和数字','荧光方块','符号']
})
if (selection) {
if(selection.value === '自然'){
const selection = await entity.player.dialog({
type: Box3DialogType.SELECT,
content: '选择方块类型',
options: ['stone','dirt','grass','lava01','snow','green_leaf','acacia','sand','water'],
})
if (selection) {
entity.selected = selection.value // 更新玩家当前选定方块
}
}
if(selection.value === '建筑'){
const selection = await entity.player.dialog({
type: Box3DialogType.SELECT,
content: '选择方块类型',
options: ['sained_glass','plank_01','plank_02','plank_03','plank_04','ice_brick','acacia','sand','water'],
})
if (selection) {
entity.selected = selection.value // 更新玩家当前选定方块
}
}
}
}
}) 2024-05-25T17:21:49 点赞:0
在 合作吧,路人喵ao.cn/e/8c60d1d93357ad9e4 中回复
链接:https://box3.codemao.cn/e/8c60d1d93357ad9e46a3?p=KDEh%2FH%2BWYBQ0tMhVfpISRngx1LRZEYjU8Tvi8KpA6AA4KG0HKGMgVndWVzdA%3D%3D
2024-06-30T20:46:09 点赞:0
在 合作吧,路人喵ao.cn/e/8c60d1d93357ad9e4 中回复
imgsrc="http://img.t.sinajs.cn/t4/appstyle/expression/ext/normal/6d/lovea_thumb.gif"alt="emotion_爱你"
2024-06-30T20:47:14 点赞:0
在 BOX3:视角 中回复
world.onPlayerJoin(({ entity }) => {
entity.player.cameraMode = Box3CameraMode.FPS;
});2024-07-04T20:29:30 点赞:1
在 神島不能發繁體字!? 中回复
喵人?imgsrc="https://static.codemao.cn/emoji/codemao/%E7%BC%96%E7%A8%8B%E7%8C%AB_%E7%BF%BB%E7%99%BD%E7%9C%BC.gif"alt="emotion_编程猫_翻白眼"
2024-07-26T14:40:19 点赞:0