猫史档案馆


红绿j哥

红绿j哥

Lv.1

你好,玛卡巴卡!

获赞:110收藏:38浏览:643作品收藏:1
回复帖子评论
上一页1 页 / 共 1下一页

【box3】终极地形生成器! 中回复

收藏

 

2024-04-14T12:49:21 点赞:0

【box3】终极地形生成器! 中回复

收藏

2024-04-14T12:49:58 点赞:0

【神岛小调研】你们最需要什么教程? 中回复

整个代码岛的代码

 

2024-04-21T13:50:49 点赞:3

【box3】终极地形生成器! 中回复

沙发

2024-04-22T17:45:44 点赞:0

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

【每日一个岛3建图小技巧】可穿戴设备教程,给自己在地图里换个装吧! 中回复

穿不上

 

2024-04-30T19:00:54 点赞:0

【代码岛3】【教程】有限船的开船代码 中回复

怎么开???

2024-05-16T21:18:28 点赞: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 = True

2024-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

如何拥有全岛独一无二的皮肤? 中回复

center_image

2024-07-11T15:42:58 点赞:0

【求助】代码岛2.0怎么创建地形 中回复

考古

2024-07-16T12:13:12 点赞:0

神島不能發繁體字!? 中回复

喵人?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

【岛3 🎃万圣鬼马创作节!】送限量狼人皮肤 中回复

2024年8月1日前来考古

2024-08-01T15:22:03 点赞:0

有人想一起跟我做空城计的喵吗? 中回复

center_image

2024-08-04T14:17:32 点赞:0

【代码岛3.0编辑器更新!】添加999个实体,居然很流畅? 中回复

旧岛,你别离开我啊,不然我咋活啊!center_image

2025-02-22T20:44:56 点赞:0