2点間の障害物(ブロック)の有無を、低負荷でチェックしたい

やりたいこと: entityAからentityBに射線が通っているかを超低負荷でチェックしたい やってみたこと: blocks withinでブロックを取得し airを除外して 残ったブロックがあるかをチェック なければ射線が通っている という形で実装
set {_b} to "%blocks within {_e}'s head and {_target}'s head%"
replace all "and" in {_b} with ""
replace all "air" in {_b} with ""
replace all "," in {_b} with ""
replace all " " in {_b} with ""
length of {_b} <= 2
set {_b} to "%blocks within {_e}'s head and {_target}'s head%"
replace all "and" in {_b} with ""
replace all "air" in {_b} with ""
replace all "," in {_b} with ""
replace all " " in {_b} with ""
length of {_b} <= 2
結果: set {_b::*} to blocks within {_e}'s head and {_target}'s headだけでもくそ重いので おはなしにならない まとめ、質問: 実行ペースとしては、下手すりゃevery 2 tickくらいです その環境下で低負荷で動く演算方法をどなたかご存じないですか -# 補遺: sk info
No description
Solution:
んでbetweenなら一直線って記憶
Jump to solution
4 Replies
yukkina
yukkina2mo ago
withinって 直方体で取らなかったっけ
Solution
yukkina
yukkina2mo ago
んでbetweenなら一直線って記憶
月猫ch
月猫ch2mo ago
バカジャン俺 うわ~かるくなった^~
yukkina
yukkina2mo ago
おつ
Want results from more Discord servers?
Add your server