실험적 기능
made by dorondo
BetterModel Compatibility
import:
org.joml.Vector3f
java.util.function.Supplier
kr.toxicity.model.api.BetterModel
kr.toxicity.model.api.util.function.FloatSupplier
function addBmHud(p:entity,id:string,location:vector,scale:number,model:string,animate:string):: object:
create section with {_pre} stored in {_pre::getAsFloat}:
return {_scale}
set {_pre} to new proxy instance of FloatSupplier using {_pre::*}
create section with {_spl} stored in {_m::get}:
return new Vector3f({_location}.x,-50000 + {_location}.y,{_location}.z)
set {_spl} to new proxy instance of Supplier using {_m::*}
set {_e} to addHud({_p},{_id},{_location},vector(0,0,0),stone)
set {_m} to BetterModel.model({_model}).orElse(null)
set {_r} to {_m}.create({_e})
set {_pipe} to {_r}.getPipeline()
if {_p} is a player:
loop all players where [input is not {_p}]:
{_pipe}.hide(loop-player)
{_pipe}.defaultPosition({_spl})
{_pipe}.scale({_pre})
{_r}.animate({_string})
return {_r}
Global Hud
1인칭 허드
Last updated