#ifndef Player_X
#define Player_X
#include <stdio.h>
#include <iostream>
#include "jpeg.h"
FILE* file1 = nullptr;
string infilename_1;
void Construct_Player() {
for (int i = 0; i < 128; i++) {
fprintf(file1,"setblock %d 2 0 minecraft:beacon\n",i);
}
}
void construct_video() {
for (int asdasdasd = 1; asdasdasd < 6602; asdasdasd++) {
infilename_1 = to_string(asdasdasd);//读取的文件名
wstring infilename_2 = strToStdWString(infilename_1.c_str());
Get_Image_pixel_RGB(infilename_2);//调用RGB函数
for (int y = 0; y < 96; y++) {
for (int x = 0; x < 128; x++) {
if (y > 0) {
if (loaded_Image_pixel_data[y][x].IPDR > 150 && loaded_Image_pixel_data[y][x].IPDG > 150 && loaded_Image_pixel_data[y][x].IPDB > 150 && loaded_Image_pixel_data[y - 1][x].IPDR < 150 && loaded_Image_pixel_data[y - 1][x].IPDG < 150 && loaded_Image_pixel_data[y - 1][x].IPDB < 150) {
fprintf(file1, "execute if score NaruseShiroha Timer matches %d run setblock %d %d 0 minecraft:gray_stained_glass\n", asdasdasd, x, y+4);
}//白色
else if (loaded_Image_pixel_data[y][x].IPDR < 150 && loaded_Image_pixel_data[y][x].IPDG < 150 && loaded_Image_pixel_data[y][x].IPDB < 150 && loaded_Image_pixel_data[y - 1][x].IPDR > 150 && loaded_Image_pixel_data[y - 1][x].IPDG > 150 && loaded_Image_pixel_data[y - 1][x].IPDB > 150) {
fprintf(file1, "execute if score NaruseShiroha Timer matches %d run setblock %d %d 0 minecraft:white_stained_glass\n", asdasdasd, x, y+4);
}//黑色
}
else {
if ((loaded_Image_pixel_data[y][x].IPDR > 150 && loaded_Image_pixel_data[y][x].IPDG > 150 && loaded_Image_pixel_data[y][x].IPDB > 150 && L_loaded_Image_pixel_data[y][x].IPDR <= 150 && L_loaded_Image_pixel_data[y][x].IPDG <= 150 && L_loaded_Image_pixel_data[y][x].IPDB <= 150) || (loaded_Image_pixel_data[y][x].IPDR <= 150 && loaded_Image_pixel_data[y][x].IPDG <= 150 && loaded_Image_pixel_data[y][x].IPDB <= 150 && L_loaded_Image_pixel_data[y][x].IPDR > 150 && L_loaded_Image_pixel_data[y][x].IPDG > 150 && L_loaded_Image_pixel_data[y][x].IPDB > 150)) {
if (loaded_Image_pixel_data[y][x].IPDR > 150 && loaded_Image_pixel_data[y][x].IPDG > 150 && loaded_Image_pixel_data[y][x].IPDB > 150) {
fprintf(file1, "execute if score NaruseShiroha Timer matches %d run setblock %d %d 0 minecraft:gray_stained_glass\n", asdasdasd, x, y+4);
}//白色
else if (loaded_Image_pixel_data[y][x].IPDR < 150 && loaded_Image_pixel_data[y][x].IPDG < 150 && loaded_Image_pixel_data[y][x].IPDB < 150) {
fprintf(file1, "execute if score NaruseShiroha Timer matches %d run setblock %d %d 0 minecraft:white_stained_glass\n", asdasdasd, x, y+4);
}//黑色
}
}
}
}
L_loaded_Image_pixel_data = loaded_Image_pixel_data;
std::cout << asdasdasd << endl;
}
}
#endif
没有合适的资源?快使用搜索试试~ 我知道了~
C++我的世界实体播放器.zip
共9个文件
h:5个
md:2个
keep:1个
需积分: 9 0 下载量 189 浏览量
2022-12-26
11:17:46
上传
评论
收藏 6KB ZIP 举报
温馨提示
C++我的世界实体播放器,C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器C++我的世界实体播放器
资源推荐
资源详情
资源评论
收起资源包目录
我的世界实体播放器.zip (9个子文件)
Minecraft-entity-player-master
库
player.h 2KB
beacon_player.h 3KB
jpeg.h 2KB
.keep 0B
construct_player.h 923B
.gitee
ISSUE_TEMPLATE.zh-CN.md 79B
PULL_REQUEST_TEMPLATE.zh-CN.md 182B
beacon_player.h 3KB
.gitignore 270B
共 9 条
- 1
资源评论
不安分的小女孩
- 粉丝: 9998
- 资源: 2394
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功