Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodou8593 committed Jul 7, 2023
1 parent c159ea5 commit 4a03c59
Show file tree
Hide file tree
Showing 175 changed files with 208 additions and 3,012 deletions.
9 changes: 5 additions & 4 deletions data/math/functions/3vec/_coordto.mcfunction
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#math:3vec/_coordto
#转换函数:将执行坐标转换为3vec
#需要传入世界实体为执行者
#输入:执行坐标
#输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 转换函数:将执行坐标转换为3vec
# 需要传入世界实体为执行者
# 输入:执行坐标
# 输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}

tp @s ~ ~ ~
execute store result score 3vec_x int run data get entity @s Pos[0] 10000
execute store result score 3vec_y int run data get entity @s Pos[1] 10000
Expand Down
7 changes: 4 additions & 3 deletions data/math/functions/3vec/_dsp-ex.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#math:3vec/_dsp-ex
#扩展函数:对3vec进行球坐标属性扩展,并对3vec进行粒子显示
#需要传入世界实体为执行者
#输入:<particle,int>,3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_n,int>}
# 扩展函数:对3vec进行球坐标属性扩展,并对3vec进行粒子显示
# 需要传入世界实体为执行者
# 输入:<particle,int>,3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_n,int>}

function math:3vec/_ex-rot
function math:3vec/_dsp
7 changes: 4 additions & 3 deletions data/math/functions/3vec/_dsp.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#math:3vec/_dsp
#对3vec进行粒子显示
#需要传入世界实体为执行者
#输入:<particle,int>,3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_n,int>,<3vec_l,int>}
# 对3vec进行粒子显示
# 需要传入世界实体为执行者
# 输入:<particle,int>,3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_n,int>,<3vec_l,int>}

execute store result entity @s Pos[0] double 0.0001 run scoreboard players operation stemp0 int = 3vec_x int
execute store result entity @s Pos[1] double 0.0001 run scoreboard players operation stemp1 int = 3vec_y int
execute store result entity @s Pos[2] double 0.0001 run scoreboard players operation stemp2 int = 3vec_z int
Expand Down
6 changes: 3 additions & 3 deletions data/math/functions/3vec/_ex-len.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#math:3vec/_ex-rot
#扩展函数:对3vec进行长度属性扩展
#输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
#输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_l,int>}
# 扩展函数:对3vec进行长度属性扩展
# 输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_l,int>}

scoreboard players operation stempx int = 3vec_x int
scoreboard players operation stempy int = 3vec_y int
Expand Down
7 changes: 4 additions & 3 deletions data/math/functions/3vec/_ex-rot.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#math:3vec/_ex-rot
#扩展函数:对3vec进行球坐标属性扩展
#输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
#输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_rot0,int>,<3vec_rot1,int>,<3vec_l,int>}
# 扩展函数:对3vec进行球坐标属性扩展
# 输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_rot0,int>,<3vec_rot1,int>,<3vec_l,int>}

#获得单位方向向量以及朝向
execute store result entity @s Pos[0] double 0.0001 run scoreboard players get 3vec_x int
execute store result entity @s Pos[1] double 0.0001 run scoreboard players get 3vec_y int
Expand Down
7 changes: 4 additions & 3 deletions data/math/functions/3vec/_ex-xyz.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#math:3vec/_ex-xyz
#扩展函数:对3vec进行直角坐标属性扩展
#输入:3vec{<3vec_rot0,int>,<3vec_rot1,int>,<3vec_l,int>}
#输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_rot0,int>,<3vec_rot1,int>,<3vec_l,int>}
# 扩展函数:对3vec进行直角坐标属性扩展
# 输入:3vec{<3vec_rot0,int>,<3vec_rot1,int>,<3vec_l,int>}
# 输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_rot0,int>,<3vec_rot1,int>,<3vec_l,int>}

#获得单位方向向量
execute store result entity @s Rotation[0] float 0.0001 run scoreboard players get 3vec_rot0 int
execute store result entity @s Rotation[1] float 0.0001 run scoreboard players get 3vec_rot1 int
Expand Down
5 changes: 3 additions & 2 deletions data/math/functions/3vec/_ldsp.mcfunction
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#math:3vec/_ldsp
#对3vec进行无箭头粒子显示
#需要传入世界实体为执行者
# 对3vec进行无箭头粒子显示
# 需要传入世界实体为执行者

#输入:<particle,int>,3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>,<3vec_n,int>,<3vec_l,int>}
execute store result entity @s Pos[0] double 0.0001 run scoreboard players operation stemp0 int = 3vec_x int
execute store result entity @s Pos[1] double 0.0001 run scoreboard players operation stemp1 int = 3vec_y int
Expand Down
10 changes: 10 additions & 0 deletions data/math/functions/3vec/_polar.mcfunction
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
#math:3vec/_polar
# 规整化三维向量
# 输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 输出:正方体半边长到<stempd,int>
# 输出:规整化后的三维向量{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 输出:筛离出的平面表面坐标{<@s,3vec_x>,<@s,3vec_y>,<@s,3vec_z>}
# 为避免顶点或者边上的情况被规整化为(1,1,1)或(1,1,0),可以在外部使用以下命令:
# execute if score 3vec_x int = 3vec_z int run scoreboard players set 3vec_x int 0
# execute if score 3vec_x int = 3vec_y int run scoreboard players set 3vec_x int 0
# execute if score 3vec_y int = 3vec_z int run scoreboard players set 3vec_y int 0

execute store result score @s 3vec_x run scoreboard players operation stempx int = 3vec_x int
execute store result score @s 3vec_y run scoreboard players operation stempy int = 3vec_y int
execute store result score @s 3vec_z run scoreboard players operation stempz int = 3vec_z int
Expand Down
7 changes: 4 additions & 3 deletions data/math/functions/3vec/_posto.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#math:3vec/_posto
#转换函数:将执行者坐标转换为3vec
#输入:执行者坐标
#输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 转换函数:将执行者坐标转换为3vec
# 输入:执行者坐标
# 输出:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}

execute store result score 3vec_x int run data get entity @s Pos[0] 10000
execute store result score 3vec_y int run data get entity @s Pos[1] 10000
execute store result score 3vec_z int run data get entity @s Pos[2] 10000
Expand Down
7 changes: 4 additions & 3 deletions data/math/functions/3vec/_topos.mcfunction
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#math:3vec/_topos
#转换函数:将3vec转换为执行者坐标
#输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
#输出:执行者坐标
# 转换函数:将3vec转换为执行者坐标
# 输入:3vec{<3vec_x,int>,<3vec_y,int>,<3vec_z,int>}
# 输出:执行者坐标

scoreboard players operation stempx int = x int
scoreboard players operation stempy int = y int
scoreboard players operation stempz int = z int
Expand Down
47 changes: 0 additions & 47 deletions data/math/functions/4d/_dsp.mcfunction

This file was deleted.

39 changes: 0 additions & 39 deletions data/math/functions/4d/_init.mcfunction

This file was deleted.

6 changes: 0 additions & 6 deletions data/math/functions/4d/_title.mcfunction

This file was deleted.

9 changes: 0 additions & 9 deletions data/math/functions/4d/arrow.mcfunction

This file was deleted.

5 changes: 0 additions & 5 deletions data/math/functions/4d/arrow0.mcfunction

This file was deleted.

6 changes: 0 additions & 6 deletions data/math/functions/4d/arrow1.mcfunction

This file was deleted.

102 changes: 0 additions & 102 deletions data/math/functions/4d/buttons/facing.mcfunction

This file was deleted.

6 changes: 0 additions & 6 deletions data/math/functions/4d/buttons/reset.mcfunction

This file was deleted.

Loading

0 comments on commit 4a03c59

Please sign in to comment.