Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]
- Digital1,500 JPY
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/1aaac899-26dd-4921-b29a-06865adc6375_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/7cfad5ca-0258-49fa-8f5f-419ed4a3b08e_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/dcfe176c-e12d-47f7-9be7-60be6e5127f8_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/2ae239f6-1ac7-4c85-9ab2-a3650867b952_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/6c3ba5f7-e9bb-4ceb-8206-962d0cd921a9_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/aec4fa63-6452-4262-be65-2d252ee34c5c_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/a02fc612-75f3-4080-9e7d-4b484af5f6f0_base_resized.jpg)
![Tree Chop Kit — 斧で切り倒せる木・7種・同期・セーブ対応 / Choppable Trees for VRChat Worlds [UdonSharp・PC]](https://booth.pximg.net/3d3606e4-2640-4362-89fc-ca575ef58698/i/9226188/749c69f4-2896-49a9-90da-4d28e4caf7ea_base_resized.jpg)
VRChatワールド用の、同期する伐採キット。VRでは斧を実際に振り、デスクトップではクリックで幹をたたきます。たたくたびに切り口が深くなり、木は大きな音と土けむりとともに倒れて、倒した人のために丸太を落とします。幹は地面に沈み、木は苗木からまた育ちます。全員が同じ瞬間に同じ木を見ます(あとから入ったプレイヤーも)。木7種(松、カエデ、白樺、桜、ヤシ3種)、斧、次に来たときも残る木材カウンター。プレハブを置くだけで使え、自作のインベントリやクエストにつなげるイベントとAPI付き。
Terms of Service
・個人・商用を問わず、自分のVRChatワールドで何個でも使用できます(依頼を受けて作るワールドも可)。自分のワールド用の改変も自由です ・キットやその一部の再配布・共有・転売は禁止です(改変の有無、有料・無料を問いません) ・クレジット表記は任意です:「Tree Chop Kit by Burrow Studio」
Update information
内容:木のプレハブ7種、斧、木材カウンター、デイジー、UdonSharpスクリプト一式とエディターツール、7種の木と斧のモデル・テクスチャ・マテリアル、Leaves シェーダー、木くずと土けむりのエフェクト、サウンド7種(斧の打撃音5種、木が倒れる音、丸太を拾う音)、リスナーのサンプル、デモシーン、マニュアル(英語・日本語)、詳しいマニュアル(英語)、変更履歴、ライセンス。 含まれないもの:本格的なインベントリ、ショップ、クラフトのシステム(木材カウンターに接続用のメソッドがあります)。Unity の Terrain ツール用の木(木はシーンに置くプレハブです)。 バージョン 1.0.0。インポート先:Assets/BurrowStudio/TreeChop
木 7種
・松、カエデ、白樺、桜、ヤシ3種(A・B・C) ・木ごとにプレハブが1つ(TreeChop_<Tree>)。使いたいものだけシーンに置けます ・倒すまでの回数は8回(木ごとに変更可) ・飾り用のデイジーも付いています(切ることはできません)
切り口と倒木
・最初の一撃の側にまっすぐな切り口ができ、たたくたびに深くなります ・たたくたびに木が揺れ、木くずが飛びます。打撃音は5種類からランダムで、同じ音が2回続きません ・木は最後の一撃を入れたプレイヤーと反対の方向に倒れます(その人の方へ倒す設定も可) ・ゆっくり傾き始めてだんだん速くなり、根元が切り株から外れて、幹は切り株の横に落ちます ・落ちた瞬間に小さく弾み、大きな音と土けむりを上げます。倒れる音は、幹が地面に着く瞬間に合わせて鳴ります
丸太と木材
・幹が地面に落ちると、丸太が3本飛び出し、弾んで転がって、幹の横の少し切り株寄りで止まります ・拾えるのは、倒した一撃を入れたプレイヤーだけ(Interact)。ほかのプレイヤーにも見えますが、触れません ・丸太1本につき木材1(変更可) ・丸太は全員(あとから入ったプレイヤーも)まったく同じ場所に見えます。動きは物理ではなく計算なので、通信を使わず、押されて動くこともありません ・丸太を落とさず、イベントだけを送る木にもできます
木の再生
・幹は地面に25秒横たわり、3秒で沈み、切り株だけが30秒残ったあと、6秒で苗木から元の大きさに育ちます(どれも木ごとに変更可) ・幹、枝、葉の順に伸び、育ちきるまでは切れません ・育ち方はサーバーの時計で計算するので、全員が同じ大きさで見えます
斧
・VR:幹に向かって実際に振ります。刃が 2.2 m/s 以上で幹に向かって動いているとヒット。当たるたびにコントローラーが振動します ・デスクトップ:クリックで持ち、もう一度クリックすると、振るアニメーションとともに、見ている木(2.2 m まで)をたたきます ・VRC Object Sync で同期 ・机に置く、切り株に立てかけるなど、置いた姿勢のまま待機します。手を離すと物理で落ち、30秒後に元の場所へ戻ります(秒数は変更可)
木材カウンター・セーブ
・丸太のアイコンと「WOOD」の見出しで、ローカルプレイヤーの木材の数を表示するパネル。プレイヤーごとのローカルな値です ・木材は次に来たときも残ります(VRChat PlayerData を使用。オフにもできます) ・パネルは省略でき、数だけを保持して自作の表示に任せることもできます
自作スクリプト用API・イベント
・木材:AddWood(amount) / AddWoodSilent(amount) / GetWood() / SpendWood(amount) ・木のイベント:OnTreeChopHit(一撃ごと)、OnTreeChopFelled(倒れたとき)、OnTreeChopRegrown(また育ち始めたとき)。誰がたたいたか、誰が倒したかが届きます ・カウンターのイベント:OnTreeChopWood(増えた数・消費した数・合計) ・木の状態も読めます:IsFelled() / IsGrowing() / GetHits() / GetFelledById() など ・コメント付きのリスナーのサンプル付き。自作のインベントリ、クエスト、ポイントの出発点として使えます
同期
・各木のオーナーだけが状態を決めます:たたいた回数、切り口、倒れているかどうか、いつ倒れたか ・一撃ごとにネットワークイベントが送られ、全員に揺れ・木くず・音が再生されます。誰がたたいたかは VRChat が決めます ・倒れる・沈む・育つ動きはサーバーの時計から計算。物理も Object Sync も使いません ・あとから入ったプレイヤーにも、各木がいまの状態のまま見えます(立ち木、倒れている途中、地面の上、切り株、育っている途中) ・丸太を拾う要求はオーナーに送られ、オーナーは送ったプレイヤーがその木を倒した人かを確認します ・木のオーナーが退出しても、別のプレイヤーが引き継いで動き続けます ・木材カウンターは、プレイヤーごとのローカルな処理です
セットアップ・動作環境
・Tools > Tree Chop Kit > Add Wood Counter / Add Tree / Add Axe で各パーツを追加 ・木とカウンターの接続はキットが自動で行います(ビルドの直前にも実行) ・Tools > Tree Chop Kit > Wire And Check Scene:木をカウンターに接続し、確認が必要な点を一覧で表示します(カウンターがない、斧がない、レイヤーのせいで斧が届かない木、スケールを変えた木、同期モードが違うリスナーなど) ・森の中の空き地に、すべて設定済みのデモシーン付き ・TextMeshPro は不要 ・Unity 2022.3.22f1(VRChat Creator Companion) ・VRChat SDK Worlds 3.10.6 以降(UdonSharp 同梱) ・Built-in レンダーパイプライン ・プラットフォーム:PC
クレジット
Design, code and production: Burrow Studio
English
Choppable trees for your VRChat world, synced. - 7 trees: Pine, Maple, Birch, Cherry and three palms (A, B, C). One prefab per tree: drop in the ones you want. 8 hits to fell (configurable per tree). Daisies included for decoration - A straight cut appears on the side of the first hit and gets deeper with every hit. Every hit shakes the tree and throws wood chips; five hit sounds, never the same one twice in a row - The tree falls away from the player who landed the last hit (or towards them), slides off the stump and lands beside it with a bounce, a crash and a dust cloud. The fall sound is timed so the crash lands with the trunk - Logs: 3 pop out of the trunk, bounce and roll to a stop. Only the player who felled the tree can collect them (Interact); 1 wood each (configurable). Every player sees them in exactly the same place, late joiners too. A tree can also drop no logs and only send events - Regrowth: the trunk lies 25 s, sinks in 3 s, the stump stays 30 s, and the tree grows back from a sapling in 6 s (trunk, branches, leaves; all configurable). It can't be chopped until fully grown. It follows the server clock, so everyone sees the same size - Axe: in VR you swing it into the trunk for real (2.2 m/s, with haptics); on desktop, grab it and click for an animated swing. Synced with VRC Object Sync; it waits where you placed it, falls with physics when dropped and goes back to its place after 30 s (configurable) - Wood counter: local to each player and saved between visits (VRChat PlayerData; can be turned off). The panel is optional - API for your own scripts: AddWood, AddWoodSilent, GetWood, SpendWood. Events: OnTreeChopHit, OnTreeChopFelled, OnTreeChopRegrown and OnTreeChopWood, with who hit and who felled the tree. Read a tree's state with IsFelled(), IsGrowing(), GetHits(), GetFelledById() and more. Commented listener example included - Network: the owner of each tree is the only source of truth; VRChat says who hit. The fall, sinking and regrowth follow the server clock, with no physics and no Object Sync. Late joiners see every tree as it is. A request to collect a log goes to the owner, who checks it comes from the player who felled the tree. If the owner leaves, another player takes over - Tools > Tree Chop Kit: Add Wood Counter, Add Tree, Add Axe, and Wire And Check Scene, which connects every tree to the counter and lists anything that needs attention (the kit also connects them by itself before each build) - Demo scene: a forest clearing with everything set up. No TextMeshPro needed - Unity 2022.3.22f1 · VRChat SDK Worlds 3.10.6 or newer · Built-in render pipeline · PC Not included: a full inventory, shop or crafting system (the wood counter has the methods to connect yours); trees for Unity's Terrain tools (the trees are prefabs you place in the scene). 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 ("Tree Chop Kit by Burrow Studio"). Design, code and production: Burrow Studio








