Skip to content
Discussion options

You must be logged in to vote

假设你问的是 1.12.2
ItemCompass 的构造函数里调用了 addPropertyOverride 来计算角度
对应的 ResourceLocation"angle"
对应的物品模型是 \assets\minecraft\models\item\compass.json
你可以看到穷举了一些角度
如果你需要改变这个行为 只需要重新提交一个 ResourceLocation"angle"IItemPropertyGetter
apply 函数中计算角度
注意 SideOnly

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@qyl27
Comment options

@NekoCaffeine
Comment options

@qyl27
Comment options

Answer selected by SeraphJACK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants