Kotoshi

スポンサーリンク

フォーラムへの返信

4件の投稿を表示中 - 1 - 4件目 (全4件中)
  • 投稿者
    投稿
  • Kotoshi
    参加者

    もしお力になれることがあれば、ご協力しますよ!
    趣味程度ですが、こちらで統合版やJava版のデータパックなど作っています。

    https://minecraft-mcworld.com/author/9b5f2c86cb03cfbc6fe61c243ce5b6ebd94517dc/

    • この返信は3週、 2日前にKotoshiが編集しました。
    Kotoshi
    参加者

    すみません、お伝えできていないポイントありました。
    上記に関して、あらかじめattachables配下のJsonでis_first_personがtrueかどうかで分岐しておく必要がありましたので、お伝えいたします。
    先ほどの銃アドオンの場合、以下のようにする必要があります。

    {
    	"format_version": "1.10.0",
    	"minecraft:attachable": {
    		"description": {
    			"identifier": "myname:pistol",
    			"render_controllers": ["controller.render.item_default"],
    			"materials": {
    				"default": "entity_alphatest",
    				"enchanted": "entity_alphatest_glint"
    			},
    			"textures": {
    				"default": "textures/entity/attachable/pistol",
    				"enchanted": "textures/misc/enchanted_item_glint"
    			},
    			"geometry": {
    				"default": "geometry.pistol"
    			},
    			"animations": {
    				"first_person_hold": "animation.pistol.first_person_hold",
    				"third_person_hold": "animation.pistol.third_person_hold"
    			},
    			"scripts": {
    				"animate": [
    					{
    						"first_person_hold": "c.is_first_person"
    					},
    					{
    						"third_person_hold": "!c.is_first_person"
    					}
    				]
    			}
    		}
    	}
    }
    Kotoshi
    参加者

    animations\attachables 配下に、配置するJsonファイルにて、1人称の場合と3人称の場合で切り替えてtranslation,rotatonの位置を設定します。
    例えば、銃アドオンを作る際に、animations\attachables\pistol.animation.json というものを作成して、animation.pistol.first_person_holdとanimation.pistol.third_person_holdに分けて、宣言します。
    BlockBench の Minecraft Item Wizard というプラグインを活用すると、比較的簡単にできます。
    (first_person_holdとthird_person_holdを分けたJsonファイルは、簡単に作ってくれますが、ちょっと位置決めに癖があります)

    {
    	"format_version": "1.8.0",
    	"animations": {
    		"animation.pistol.first_person_hold": {
    			"loop": true,
    			"bones": {
    				"root_item": {
    					"rotation": [66, 60, -60],
    					"position": [3, 23, 4]
    				},
    				"root": {
    					"rotation": [-1.41363, 359.43715, 0.63802],
    					"position": [24, -2, 42]
    				}
    			}
    		},
    		"animation.pistol.third_person_hold": {
    			"loop": true,
    			"bones": {
    				"root_item": {
    					"rotation": [90, 0, 0],
    					"position": [0.5, 22.5, -0.5]
    				},
    				"root": {
    					"rotation": [179.97706, 0.00682, 180.2181],
    					"position": [-7, 10.5, -7],
    					"scale": 0.5
    				}
    			}
    		}
    	}
    }
    返信先: だれかキル検知アドオンを作って!#203600
    Kotoshi
    参加者

    もしよろしければ、こちらご活用ください。
     https://minecraft-mcworld.com/203598/

4件の投稿を表示中 - 1 - 4件目 (全4件中)
スポンサーリンク
クラフターズコロニー -マイクラの配布サイト-