Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]
- ダウンロード商品¥ 1,500
VRChatワールド用の、同期する鉱石採掘キット。VRではツルハシを実際に振り、デスクトップではクリックで岩をたたきます。たたくたびにひびが広がり、岩は土けむりと鉱石の色の火花とともに砕けて鉱物を飛ばします。鉱物は近づくだけで拾え、プレイヤーに向かって飛んできます。岩は時間がたつとまた育ち、所持数はカウンターに記録されて次に来たときも残ります。鉱石8種、ヘビーツルハシ、リストカウンター、ショップのサンプル、サウンド58種。プレハブを置くだけで使え、自作のショップやクラフトにつなげるAPI付き。
Terms of Service
・個人・商用を問わず、自分のVRChatワールドで何個でも使用できます(依頼を受けて作るワールドも可)。自分のワールド用の改変も自由です ・キットやその一部の再配布・共有・転売は禁止です(改変の有無、有料・無料を問いません) ・クレジット表記は任意です:「Ore Mining Kit by Burrow Studio」
Update information
内容:鉱石の岩のプレハブ8種、ツルハシ、ヘビーツルハシ、カウンター、リストカウンター、ショップのサンプル、UdonSharpスクリプト一式とエディターツール、8種の鉱石とツルハシのモデル・テクスチャ・マテリアル、Ore Rock シェーダー、土けむり・リング・火花・破片のエフェクト、サウンド58種、デモシーン、マニュアル(英語・日本語)、変更履歴、ライセンス。 含まれないもの:本格的なショップ、クラフト、インベントリのシステム(カウンターに接続用のメソッドがあり、ショップのサンプルが使い方を示します)。 バージョン 1.0.0。インポート先:Assets/BurrowStudio/OreMining
鉱石 8種
・パイライト、石炭、鉄、銅、スズ、ミスリル、銀、金。それぞれ岩の形・色・音・数値が違います ・砕けるまでの回数/鉱物の数/育つまでの時間 石炭:4回/8個/20秒 パイライト:5回/8個/25秒 鉄・銅・スズ:6回/8個/30秒 銀:8回/6個/40秒 金:9回/6個/45秒 ミスリル:10回/5個/60秒 ・数値は岩ごとに自由に変更できます ・鉱石ごとにプレハブが1つ(OreMining_Rock_<Ore>)。使いたいものだけシーンに置けます ・自分の鉱石も追加できます(カウンターのリストに名前を足して、岩のプレハブを複製するだけ)
ツルハシ
・VR:実際に振ってたたきます。先端が 2.2 m/s 以上で岩に当たるとヒット。当たったときと、岩が砕けたときにコントローラーが振動します ・とても強い振り(5 m/s)は1回多く数えます ・デスクトップ:持った状態でクリックすると、振るアニメーションとともに、見ている岩(2.4 m まで)をたたきます ・VRC Object Sync で同期 ・机に置く、壁に掛ける、岩に立てかけるなど、置いた姿勢のまま待機します。手を離すと物理で落ち、30秒後に元の場所へ戻ります(秒数は変更可) ・振る音、鉱石以外に当たったときの音、育っている途中の岩をたたいたときの音があります
ヘビーツルハシとティア
・ヘビーツルハシ:同じツルハシを大きくして、青みのある鋼にしたもの。ティア1、1振りで2回分 ・岩には必要なティアを設定できます(Required Tier)。弱いツルハシは金属音とともに弾かれます ・ツルハシの強さは Tier と Hit Power(1振りで1〜3回分)で決められます ・レアな岩をヘビーツルハシ専用にして、プレイヤーへのごほうびにできます
ひびと破砕
・たたくたびに岩にひびが広がります ・たたくたびに岩が揺れ、土ぼこり・かけら・火花が出ます ・岩は、土けむり・リング・鉱石の色の火花とともに砕けて、物理の破片になります ・砕いた一撃で鉱物が飛び出します(たたくたびに落とす設定もできます)
鉱物
・近づくだけで拾えます(距離は変更可、オフにもできます)。Interact でも拾えます ・拾った鉱物はプレイヤーに向かって飛び、続けて拾うと音の高さが上がっていきます ・誰のものになるかは岩ごとに3通りから選べます:砕いた一撃を入れたプレイヤー(全員に見えますが、拾えるのはその人だけ)/誰でも(先に拾った人のもの)/その岩をたたいた全員に、たたいた回数に応じて分ける ・物理で飛び出し、ほかの岩・机・床に当たって跳ね、落ちた場所に残ります。落ちる向きと広がりも設定できます ・拾われなかった鉱物は60秒で消えます(秒数は変更可)
岩の再生
・砕けた岩は、6秒たつと新しい岩が育ち始め、鉱石ごとに20〜60秒で元の大きさに戻ります(どちらも変更可) ・小さな状態から元の大きさまで育ち、100%になるまで掘れません ・育ちきると、小さく弾み、きらめきと音で知らせます ・育っている岩を見るか、たたくと、進み具合(%)とバーが出ます(プレイヤーごとの表示)
サウンド 58種
・打撃音と破砕音は3系統:金属(ほとんどの鉱石)、石(石炭)、結晶(ミスリル) ・破砕音は「砕ける音・崩れ落ちる音・低い衝撃音」の重ねがけ ・鉱物が落ちる音、拾う音、育ちきった音、ツルハシを振る音と外した音 ・岩ごとにオーディオソースが3つ(打撃・破砕・取得)あり、音同士が途切れません ・クリップのリストはすべて岩にあり、自分の音に差し替えられます
カウンター・リストカウンター・セーブ
・カウンター:鉱石ごとの所持数を表示するパネル。プレイヤーごとのローカルな値です ・所持数は次に来たときも残ります(VRChat PlayerData を使用。オフにもできます) ・リストカウンター(任意):プレイヤーについてくる小さな所持数表示。VRでは左手首の上にあり、腕時計のように手首を上げると表示されます。デスクトップでは、所持数が変わると視界の左下に出て、数秒後に消えます ・パネルは省略でき、数だけを保持して自作の表示に任せることもできます
ショップのサンプルとAPI
・ショップのサンプル(任意):1種類の鉱石で支払う値札。足りていれば、そのプレイヤーにだけ何かを解放します(オブジェクトを表示する・隠す、ピックアップを持てるようにする)。購入は次回の訪問時にも残ります ・デモでは、鉄10個でヘビーツルハシを売っています ・スクリプトは短くコメント付きなので、自作のショップやクラフト台の出発点として使えます ・自作スクリプト用API:AddMineral(type, amount) / GetMineral(type) / SpendMineral(type, amount) ・イベント(任意):岩が砕けたとき・育ちきったとき、所持数が変わったときに自作スクリプトへ通知 ・岩の状態も読めます:GetHits() / IsBroken() / Growth()
同期
・各岩のオーナーだけが状態を決めます:たたいた回数、砕けたかどうか、どの鉱物が誰のものか、どれが拾われたか ・一撃ごとにネットワークイベントが送られ、全員に揺れ・土ぼこり・音が再生されます ・鉱物を拾う要求はオーナーに送られ、オーナーは送ったプレイヤーを確認してから「拾われた」と記録します ・後から入ったプレイヤーには、いまの状態(たたいた回数、砕けている/育っている、落ちている鉱物)が届きます ・岩のオーナーが退出しても、別のプレイヤーが引き継いで動き続けます ・ツルハシの音、リストカウンター、ショップのサンプルは、プレイヤーごとのローカルな処理です
セットアップ・動作環境
・Tools > Ore Mining Kit > Add Counter / Add Ore Rock / Add Pickaxe で各パーツを追加。お好みで Add Heavy Pickaxe / Add Wrist Counter / Add Shop Example ・岩とカウンターの接続はキットが自動で行います(ビルドの直前にも実行) ・Tools > Ore Mining Kit > Wire And Check Scene:岩をカウンターに接続し、確認が必要な点を一覧で表示します(カウンターのない岩、名前のない鉱石、岩のレイヤーに届かないツルハシ、シーン内のツルハシより高いティアを求める岩など) ・マテリアルは、ひびを描くキット専用シェーダー(Burrow Studio/Ore Mining Kit/Ore Rock、Standard 相当)。Tools > Ore Mining Kit > Materials で VRChat/Mobile/Standard Lite に切り替え、元に戻すこともできます ・すべて設定済みのデモシーン付き ・Unity 2022.3.22f1(VRChat Creator Companion) ・VRChat SDK Worlds 3.10.6 以降(UdonSharp 同梱) ・Built-in レンダーパイプライン ・プラットフォーム:PC
クレジット
Design, code and production: Burrow Studio
English
Synced ore mining for your VRChat world. - 8 ores, each with its own rock shape, color, sounds and values: Pyrite, Coal, Iron, Copper, Tin, Mithril, Silver, Gold. One prefab per ore: drop in the ones you want - Hits to break / minerals / grows back in: Coal 4 / 8 / 20 s · Pyrite 5 / 8 / 25 s · Iron, Copper, Tin 6 / 8 / 30 s · Silver 8 / 6 / 40 s · Gold 9 / 6 / 45 s · Mithril 10 / 5 / 60 s. Change them freely on each rock - Pickaxe: in VR you swing it for real (the tip has to hit the rock at 2.2 m/s or more; the controller vibrates on a hit and again when the rock breaks; a really strong swing at 5 m/s counts as one hit more). On desktop, hold it and click for an animated swing. Synced with VRC Object Sync; it waits where you placed it and, once dropped, goes back to its place after 30 s (configurable) - Heavy pickaxe: tier 1 and 2 hits per swing. Rocks can require a tier; a weaker pickaxe bounces off with a clang - Cracks spread over the rock with every hit. It breaks with a dust cloud, a ring and sparks in the color of the ore, and shatters into physics debris - Minerals: collect them by walking up to them or with Interact; they fly to the player and the collect sound climbs in pitch when you pick up several in a row. Uncollected minerals disappear after 60 s (configurable) - Three ways to hand out minerals, set per rock: to the player who landed the breaking hit, to anyone (first to collect keeps it), or shared out among everyone who hit the rock, in proportion to their hits - Rocks grow back (after a 6 s wait) from tiny to full size and can't be mined until 100%, then settle with a small bounce, sparkles and a chime. Look at a growing rock, or knock on it, to see a label with its percentage and a bar - 58 sounds in three families (metal, stone, crystal), with layered breaks: the break itself, falling rubble and a low thump. Replace any clip with your own - Counter: a panel with a total per ore, local to each player and saved between visits (VRChat PlayerData; can be turned off). Optional wrist counter: above the left wrist in VR, shown when the player raises it like a watch; on desktop it appears in the lower left of the view when a total changes - Shop example: a price tag players pay in one ore to unlock something for that player, saved between visits. In the demo it sells the heavy pickaxe for 10 Iron - API for your own scripts (shops, crafting): AddMineral(type, amount), GetMineral(type), SpendMineral(type, amount). Optional events when a rock breaks, when it has grown back and when a total changes. Add your own ores - Network: the owner of each rock is the only source of truth. A request to collect a mineral goes to the owner, who checks which player sent it. Late joiners receive the current state, and if the owner leaves, another player takes over - Tools > Ore Mining Kit: Add Counter, Add Ore Rock, Add Pickaxe, Add Heavy Pickaxe, Add Wrist Counter, Add Shop Example, Materials, and Wire And Check Scene, which connects every rock to the counter and lists anything that needs attention (the kit also connects them by itself before each build) - The kit's own Ore Rock shader draws the cracks; the Materials menu switches the ore materials to VRChat/Mobile/Standard Lite and back - Demo scene with everything set up - Unity 2022.3.22f1 · VRChat SDK Worlds 3.10.6 or newer · Built-in render pipeline · PC Not included: a full shop, crafting or inventory system (the counter has the methods to connect yours, and the shop example shows how). License: unlimited VRChat worlds of your own, personal and commercial (client worlds too); modify it freely for those worlds; no redistribution or resale; credit optional ("Ore Mining Kit by Burrow Studio"). Design, code and production: Burrow Studio


![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/964d2d95-36de-4565-b03c-625aef629888_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/6c6fa5e8-6e25-4ae5-9ba3-b3f99f67e377_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/3fbb99a4-17d8-42d9-aa53-5876a062727c_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/f2ba8c2e-8c83-4e5f-ab41-f57d9943a7d3_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/948cc41b-fa05-4396-8e8b-eb48a594dd01_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/bd92007f-50e2-41e1-9e49-cb658902a9d2_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/8bf077ef-fb31-41fb-9058-f9d961e7ffcd_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/4484cd12-bb53-4965-9907-3f361350be25_base_resized.jpg)
![Ore Mining Kit — ツルハシで掘る鉱石採掘ギミック・鉱石8種・同期・セーブ対応 / Synced Ore Mining for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9225259/c989e42b-eb4d-48c9-a8a0-a1e4e904c6fd_base_resized.jpg)








