0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

頭がビニールハウスでも分かれ!Figuraでアイテム・防具を表示させる方法

Posted at
Page 1 of 2

さて、この記事はfiguraでカスタムモデルにアイテムを持たせたり、防具を着せたりするための記事である。

さて、あなたがFiguraのモデルを作ったときに
vanilla_model.ALL.setVisible(false)
というScriptを書かなかっただろうか。これを書かなければあなたの元々のスキンとあなたの作ったfiguraモデルが重なり合った状態になってしまっていただろう。これはvannila_model.ALL、すなわち元々のスキンのすべてを完全に非表示にするコードである。そして、防具やアイテムなどはその"すべて"に含まれている。すなわち、プレイヤーだけを非表示にしてあげれば良いのである。これを
vanilla_model.PLAYER.setVisible(false)
というふうに書き換えてあげれば、あなたのモデルはアイテムを持ち、防具を着れるようになるはずだ。しかし、である。スティーブの形から大きく逸脱したものは防具やアイテムの位置がずれてしまっているだろう。防具に関しては諦めて非表示にし、(vanilla_model.ARMOR.setVisible(false)を追記することで可能である)
https://github.com/Moonlight-MC/Figura/wiki/Blockbench-Keywords
こちらの公式wikiを参照してアイテム、オウムなどの位置を表す特定の名前のフォルダー(右手に持ったアイテムであればRIGHT_HELD_ITEMなど)を腕の子オブジェクトとして追加してあげれば動作するはずだ。(未検証)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?