!警告!此模组为实验性版本。渲染内容不会持久保存。如果你离开一个世界,它们将会消失,你需要重新创建它们。
使用此模组,你可以渲染实体、物品、矩形和文本。
执行命令时,聊天消息现在仅在 gamerule commandblockoutput 设置为 true 时显示。
1. 渲染实体:
要渲染实体,你需要以下命令:
/render add entity <id> <entity> <x> <y> <depth> <yaw> <pitch> <roll> <scale>
- id: ID 用于修改或删除此条目的条目
- entity: 要渲染的实体
- x: 屏幕上的 x 坐标
- y: 屏幕上的 y 坐标
- depth: 屏幕上的深度。默认值:-50
- roll: 实体的翻滚角度。默认值:0
- scale: 实体的缩放比例。默认值:30
2. 渲染物品:
要渲染物品,你需要以下命令:
/render add item <id> <item> <x> <y> <depth> <yaw> <pitch> <roll> <scale>
- id: ID 用于修改或删除此条目的条目
- item: 要渲染的物品
- x: 屏幕上的 x 坐标
- y: 屏幕上的 y 坐标
- depth: 屏幕上的深度。默认值:-150
- yaw: 实体的偏航角。默认值:0
- pitch: 实体的俯仰角。默认值:0
- roll: 实体的翻滚角度。默认值:0
- scale: 实体的缩放比例。默认值:16
3. 渲染矩形:
要渲染矩形,你需要以下命令:
/render add rect <id> <x1> <y1> <x2> <y2> <depth> <r> <g> <b>
- id: ID 用于修改或删除此条目的条目
- x1: 屏幕上的第一个 x 坐标
- y1: 屏幕上的第一个 y 坐标
- x2: 屏幕上的第二个 x 坐标
- y2: 屏幕上的第二个 y 坐标
- depth: 屏幕上的深度。默认值:0
- r: 红色颜色值
- g: 绿色颜色值
- b: 蓝色颜色值
4. 渲染文本:
要渲染文本,你需要以下命令:
/render add text <id> "<text>" <x> <y> <depth> <angle> <scale> <r> <g> <b>
- id: ID 用于修改或删除此条目的条目
- x: 屏幕上的 x 坐标
- y: 屏幕上的 y 坐标
- depth: 屏幕上的深度。默认值:0
- angle: 文本的角度。默认值:0
- scale: 文本的缩放比例。默认值:1
- r: 红色颜色值
- g: 绿色颜色值
- b: 蓝色颜色值
5. 删除条目
要删除条目,你需要以下命令(它将移除所有具有此 ID 的条目):
/render delete <id>
6. 修改条目:
要修改条目,你需要以下命令:
/render modify <id> <entry> <value>
- id: 要修改的条目
- entry: 要修改的内容。(例如 x 坐标:x)
- value: 要写入的值。(例如 x 坐标:10。如果要修改文本,需要写成 "<value")
7. 将值存储到条目中:
要将值存储到条目中,你需要以下命令(由于模组尚未完成,目前仅实现了记分板功能):
/render store <id> <entry> <scoreboard_name> "<type>"
- id: 要存储到的 ID
- entry: 要存储到的内容(例如 x 坐标:x)
- scoreboard name: 要从其读取值的记分板名称
- type: 要存储的类型。(如果你想以文本形式写入值,需要使用 "String";如果要以数字形式写入,如 x 坐标,则需要使用 "Number")
如有任何问题或发现错误,请发表评论。
!WARNING! THIS MOD IS EXPERIMENTAL. RENDERS WILL NOT BE PERSISTENT. IF YOU LEAVE A WORLD, THEY WILL GO AWAY AND YOU NEED TO CREATE THEM NEW.
With this Mod, you can render entitys, items, rectangles and text.
Chat messages (when executing the commands) are now only shown, if gamerule commandblockoutput is ture
1. Render entitys:
To render entitys, you need this Command:
/render add entity <id> <entity> <x> <y> <depth> <yaw> <pitch> <roll> <scale>
id: The Id is used to modify or delete entrys of this entry
entity: The entity that is rendered
x: The x Coordinate of the screen
y: The y Coordinate of the Screen
depth: The depth on the screen. default: -50
roll: roll of the entity. default: 0
scale: scale of the entity. default: 30
2. Render items:
To render items, you need this Command:
/render add item <id> <item> <x> <y> <depth> <yaw> <pitch> <roll> <scale>
id: The Id is used to modify or delete entrys of this entry
item: The item that is rendered
x: The x Coordinate of the screen
y: The y Coordinate of the Screen
depth: The depth on the screen. default: -150
yaw: yaw of the entity. default: 0
pitch: pitch of the entity. default: 0
roll: roll of the entity. default: 0
scale: scale of the entity. default: 16
3. Render rectangle:
To render rectangles, you need this command:
/render add rect <id> <x1> <y1> <x2> <y2> <depth> <r> <g>
id: The Id is used to modify or delete entrys of this entry
x1: First x on screen
y1: First y on Screen
x2: Second x on Screen
y2: Second y on Screen
depth: The depth on the screen. default: 0
r: Color of Red
g: Color of Green
b: Color of Blue
4. Render text:
To render text, you need this Command:
/render add text <id> "<text>" <x> <y> <depth> <angle> <scale> <r> <g>
id: The Id is used to modify or delete entrys of this entry
x: x on Screen
y: y on Screen
depth: depth on Screen. default: 0
angle: angle of Test. default: 0
scale: scale of text. default: 1
r: Color of Red
g: Color of Green
b: Color of Blue
5. Delete entry
To delete an entry, you need this Command (it removes EVERY entry with this ID):
/render delete <id>
id: entrys to delete
6. Modify entry:
To modify an entry, you need this Command:
/render modify <id> <entry> <value>
id: entry to be modified
entry: Thing to be modified. (For example the x Coordinate: x)
value: Thing to be written. (For example the x Coordinate: 10. If you want to modify a text, you need to write "<value")
7. Store values to an entry:
To store values to an entry, you need this Command (Because the mod is not finished yet, only scoreboards are implemented):
/render store <id> <entry> <scoreboard_name> "<type>"
id: Id to be stored to
entry: Thing to be stored to (For example the x Coordinate: x)
scoreboard name: name of Scoreboard to be stored from
type: type to be stored. (If you want to write the Value as a text, you need "String", if you want it as a Number, like the x Coordinate, you need "Number")
For any questions or bugs, please write a Comment.
评论 0
登录后参与评分
还没有评论,来抢沙发吧