{"id":46296571,"url":"https://github.com/nea-c/markermotion","last_synced_at":"2026-03-04T10:02:00.769Z","repository":{"id":38451688,"uuid":"484746027","full_name":"nea-c/MarkerMotion","owner":"nea-c","description":"Markerを移動速度や重力、バウンド回数などを指定して動かすことができるライブラリデータパック。 ","archived":false,"fork":false,"pushed_at":"2025-11-19T10:42:53.000Z","size":278,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-19T12:22:47.400Z","etag":null,"topics":["minecraft","minecraft-command","minecraft-commands","minecraft-datapack"],"latest_commit_sha":null,"homepage":"","language":"mcfunction","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nea-c.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-23T12:50:11.000Z","updated_at":"2025-11-19T10:41:04.000Z","dependencies_parsed_at":"2023-10-03T07:13:29.811Z","dependency_job_id":null,"html_url":"https://github.com/nea-c/MarkerMotion","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/nea-c/MarkerMotion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nea-c%2FMarkerMotion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nea-c%2FMarkerMotion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nea-c%2FMarkerMotion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nea-c%2FMarkerMotion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nea-c","download_url":"https://codeload.github.com/nea-c/MarkerMotion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nea-c%2FMarkerMotion/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078306,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["minecraft","minecraft-command","minecraft-commands","minecraft-datapack"],"created_at":"2026-03-04T10:01:59.905Z","updated_at":"2026-03-04T10:02:00.748Z","avatar_url":"https://github.com/nea-c.png","language":"mcfunction","readme":"# MarkerMotion\n\nMarkerを移動速度や重力、バウンド回数などを指定して動かすことができるライブラリデータパック。\n\n## 最新\n\nv3.10\n\n## 動作要件\n\nMinecraftJE 1.21.10 ~\n\n## 過去バージョンについて\n\n過去バージョンのダウンロードは[Releases](https://github.com/nea-c/MarkerMotion/releases)からどうぞ。\n\n## 使用方法\n\n### 絶対事項\n\n* 実行者はMarkerであること。\n* `#marker_motion:`を実行すること。\n\n### 記述方法\n\nMarkerの召喚時や召喚後に以下のようなNBTを設定する。\n```mcfunction\n## 例\nsummon marker ~ ~ ~ {Tags:[\"A\"],data:{MarkerMotion:{speed:{amount:1.50,loss:{amount:0.950,type:\"*\"}},gravity:39.200,bounce:{count:2,e:0.950,g:1b,with:{hit:0b,block:1b}},stopwith:{hit:1b,block:1b}}}}\n```\n\n### 設定項目\n\n| 引数名 | 必須 | 型 | 説明 | デフォルト |\n| -: | :-: | :-: | :- | :-: |\n| speed.amount | o | double | 初期速度\u003cbr\u003e小数点2桁まで有効 | - |\n| speed.loss.amount | x | double | 毎tickの速度変更量\u003cbr\u003eこの値の有効数字は以下のspeed.loss.typeによって指定されます\u003cbr\u003e\"+\"：小数点2桁まで有効\u003cbr\u003e\"\\*\"：小数点3桁まで有効 | 0 |\n| speed.loss.type | x | string | \"+\"か\"\\*\"のどちらかを入力します\u003cbr\u003e\"+\"：加算で計算します\u003cbr\u003e\"\\*\"：乗算で計算します | \"+\" |\n| gravity | x | double | 重力加速度\u003cbr\u003e9.8の倍数がおすすめ\u003cbr\u003e小数点3桁まで有効 | 0 |\n| bounce.count | x | int | 跳ねる回数\u003cbr\u003e以下の2種の負数を指定すると特殊挙動に変更されます\u003cbr\u003e-1：無限に跳ねます\u003cbr\u003e-2：データ処理を行った後、通常の接触停止判定を行います | 0 |\n| bounce.e | x | double | 跳ねた時の速度変更量\u003cbr\u003e乗算で計算されます\u003cbr\u003e小数点3桁まで有効 | 1.0 |\n| bounce.g | x | boolean | 重力加速を考慮して跳ねるようにします | false |\n| bounce.with.hit | x | boolean | stopwith.hitがtrueでヒットしたエンティティがいた時、エンティティのヒットボックスを元に跳ねるか | false |\n| bounce.with.block | x | boolean | stopwith.blockがtrueの時、ブロックへの接触を元に跳ねるか | true |\n| stopwith.hit | x | boolean | ヒットしたエンティティがいた時、ヒット位置で停止するようにします | true |\n| stopwith.block | x | boolean | ブロックに衝突した時、衝突位置で停止するようにします | true |\n\n### 補足\n* `speed.amount`は`speed.loss`や`bounce.e`での変動時にデータが変更されます\n* `bounce.count`を-2にしたときの挙動は`#marker_motion_example:bounce/advanced`にて確認できます\n\n### 返りタグ\n* MarkerMotion.on_block\n```\nブロックに接触して停止した時 (跳ねた場合は付与されません)\n```\n* MarkerMotion.on_block.wall , MarkerMotion.on_block.y , MarkerMotion.on_block.[方角]\n```\nブロックに接触した停止した方角やカテゴリ (MarkerMotion.on_blockがない場合は付与されません)\n```\n* MarkerMotion.bounce\n```\n跳ねた瞬間だけ付与されるタグ\n```\n* MarkerMotion.speed.0\n```\nスピードが0以下になった時\n```\n* MarkerMotion.stopwith.hit\n```\n\"stopwith.hitがfalseでない\"かつ、hitタグを付与したエンティティがいた時\n```\n* MarkerMotion.stop\n```\nメイン処理が実行されないようになるタグ。\nMarkerMotion.on_block, MarkerMotion.speed.0, MarkerMotion.stopwith.hitのタグがあれば必ず付与されています。\n```\n\n### ダメージを与える飛び道具として扱う際のヒットボックス判定に関して\n\nこのライブラリを呼ぶ前に判定に入れたいエンティティに対し`MarkerMotion.target`タグを付与します。\n\ndistanceとかで範囲指定してあげた方が軽量になると思います。\n\n当たり判定はヒットボックスサイズで検知され、`MarkerMotion.hit`タグを返します。\n\n付与された、または付与したタグは必ず削除するようにしてください。\n\n\n### ヒットボックスをブロックとして扱う\n\n`MarkerMotion.as_block`タグを付与されたエンティティは、ヒットボックスがブロック判定として処理されるようになります。\n\n\n### #marker_motion:tag_remove\n\nこのライブラリを実行したMarkerに自動的に付与されるタグを全て剥がすfunction。\n\n`#marker_motion_example:bounce/advanced`にて確認できます\n\n\n### exampleに関して\n\n挙動の例をいくつか作成しています。参考程度に。\n\nMarkerMotion本体と一緒に導入することで実際に動かして確認できます。\n\n## ライセンス\n\n[MIT Licence](https://github.com/nea-c/MarkerMotion/blob/master/LICENSE)に基づく。\n\n### 参考\n* [Minecraft-JE-Technical-Note](https://github.com/MCJE-Tech-Shares/Minecraft-JE-Technical-Note) ([MIT Lisence](https://github.com/MCJE-Tech-Shares/Minecraft-JE-Technical-Note/blob/main/LICENSE) Copyright (c) 2023 Rusk_Eocssar)\n  * ブロック接触、エンティティヒット判定参考\n\n\n## 更新履歴\n\n* v3.10\n  * 1.21.10に対応\n  * 負荷が高かったため、分解能を低下\n\n* v3.6\n  * `bounce.with`のパラメータを追加\n  * `MarkerMotion.as_block`のタグがついたエンティティに対して、ブロックの接触判定が行われる挙動を追加\n  * `#marker_motion_example:bounce/hit`を追加\n\n* v3.5\n  * 対応バージョンを1.20.1に変更\n\n* v3.4\n  * ピストンヘッドの他ブロックへの浸食当たり判定が一部正しく動作しない問題の修正\n\n* v3.3\n  * コマンド数減少及び最適化\n  * `Move`を削除\n    * exampleのパーティクル表示方法を変更\n\n* v3.2\n  * `bounce.g`がオンの時の挙動が正常でない問題の修正、及びbounce.gがオンの時の挙動修正\n  * `#marker_motion_example:bounce/gravity`を追加\n  * 特定条件下で`Move.Rotation`の値が正常でない問題の修正\n  * `bounce.count`を-2にしたときの挙動を追加\n  * `speed.amount`が0になった時に停止しない問題の修正\n\n* v3.1\n  * 大きなドリップリーフの当たり判定が少し大きい問題の修正\n  * `Move.Rotation`に返却される値が後ろ向きな問題の修正\n\n* v3.0\n  * 別ディメンションにおいて、x:0,z:0付近から離れると正常に動作しない問題の修正\n  * xかzが特定座標を超えたときに正常に動作しない問題の修正\n  * ブロックの当たり判定を追加\n    * 階段やハーフなど、フルブロックより小さいブロックの隙間など細かい当たり判定で移動させることが可能になりました\n  * `#marker_motion:`,`#marker_motion:tag_remove`で利用できるように変更\n  * `speed.amount`の値を以前までの1/100で宣言するように変更\n  * `gravity`の値を以前までの1/10で宣言するように変更\n  * `speed.loss.type`の指定を`\"+\"`,`\"*\"`で指定するように変更\n  * `Motion`を削除\n    * 代替として`Move`を追加\n  * `stopwith.hit`のデフォルト値をtrueに変更\n\n* v2.3\n  * `data.MarkerMotion.speed.amount`が0になっても`data.MarkerMotion.gravity`が0.01以上であれば停止しないように変更\n  * exampleの召喚用functionを#marker_motion_example:...でそれぞれ呼び出せるように変更\n\n* v2.2\n  * `stopwith.block`の設定項目を追加\n\n* v2.1\n  * `speed.loss`の値で加速できるように変更\n  * 対応バージョンを1.19.2に変更\n  * exampleとMarkerMotion本体を分離\n\n* v2.0\n  * データパックの名称から`\"NeAc\"`を削除\n  * 動作要件に`MinecraftJE 1.18.2`と記載したにも関わらず`pack_format`が**9**でなかった問題を修正\n  * `data.MarkerMotion.speed.loss.type`が`\"multiply\"`でないときの動作が正常でなかった問題を修正\n  * 直接弄ったりしていたデータを一時ストレージに入れてから利用することでの微軽量化試み\n  * その他軽微な修正\n\n* v1.1\n  * いくつかの問題を修正\n\n* v1.0\n  * 初版","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnea-c%2Fmarkermotion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnea-c%2Fmarkermotion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnea-c%2Fmarkermotion/lists"}