Lv.1
在 【教程】如何0金币购买素材 中回复
import requests
pic_url = 'https://static.codemao.cn/178/%E9%A3%9E%E6%9C%BA%E5%A4%A7%E6%88%98%E9%9F%B3%E4%B9%90_1522737709.mp3'
re = requests.get(pic_url)
#print(re.status_code) 200访问成功
with open("D:\\音乐1.MP3","wb") as f:
f.write(re.content)2022-11-26T12:24:04 点赞:0
在 【问题请教】 如何获得素材商城的 金币 ??? 中回复
1.找到想要的付费素材,点进去
2.同时按下Fn键和F12键
3.在代码中找到素材的网址
4.复制链接,在海龟编辑器输入以下代码,运行,把素材存到D盘
import requests
pic_url = '素材网址'
re = requests.get(pic_url)
#print(re.status_code) 200为访问成功
with open("D:\\自定义素材名+.后缀名","wb") as f:
f.write(re.content)
5.到源码编辑器找到我的分组
6.找到本地上传,找到D盘并上传文件,然后点击素材并添加2022-11-26T12:33:24 点赞:0
在 【教程】如何0金币购买素材 中回复
重新弄了一下
1.找到想要的付费素材,点进去
2.同时按下Fn键和F12键
3.在代码中找到素材的网址
4.复制链接,在海龟编辑器输入以下代码,运行,把素材存到D盘
import requests
pic_url = '素材网址'
re = requests.get(pic_url)
#print(re.status_code) 200为访问成功
with open("D:\\自定义素材名+.后缀名","wb") as f:
f.write(re.content)
5.到源码编辑器找到我的分组
6.找到本地上传,找到D盘并上传文件,然后点击素材并添加2022-11-26T12:34:18 点赞:0
在 【教程第三期】碰到岩浆喵、碰到风扇闪一下、闯许空掉血 中回复
world.onVoxelContact(({ voxel, entity }) => { if (voxel == voxels.id('lava01')) {//在引号里输入碰到的方块英文名称执行下面代码 entity.hurt(entity.maxHp)//喵 //entity.hp = entity.maxHp } if (voxel == voxels.id('lava02')) { entity.hurt(entity.maxHp) //entity.hp = entity.maxHp /*恢复满血*/ } if (voxel == voxels.id('fan')) { entity.hurt(entity.maxHp) entity.hp = entity.maxHp } })2022-12-03T15:10:33 点赞:0