<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/bloxdiocodewiki/">
    <title>bloxd.io-code-@wiki</title>
    <link>http://w.atwiki.jp/bloxdiocodewiki/</link>
    <atom:link href="https://w.atwiki.jp/bloxdiocodewiki/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>bloxd.io-code-@wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2026-01-06T17:00:00+09:00</dc:date>
    <utime>1767686400</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/68.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/67.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/66.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/65.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/64.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/63.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/62.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/61.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/60.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/bloxdiocodewiki/pages/59.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/68.html">
    <title>typedef/PlayerAttemptDamageOtherPlayerOpts</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/68.html</link>
    <description>
      eIdがhitEIdを攻撃するときの詳細を決定する型
**jsdoc
#highlight(javascript){{
/**
 * @typedef {object} PlayerAttemptDamageOtherPlayerOpts
 * @property {entityId} eId
 * @property {entityId} hitEId
 * @property {number} attemptedDmgAmt
 * @property {string} withItem
 * @property {string | undefined} [bodyPartHit=undefined]
 * @property {[number,number,number] | undefined} [attackDir=undefined]
 * @property {boolean} [showCritParticles=false]
 * @property {boolean} [reduceVerticalKbVelocity=true]
 * @property {number} [horizontalKbMultiplier=1]
 * @property {number} [verticalKbMultiplier=1]
 * @property {boolean} [broadcastEntityHurt=true]
 * @property {???} [attackCooldownSettings=null]
 * @property {string | null} [hittingSoundOverride=null]
 * @property {boolean} [ignoreOtherEntitySettingCanAttack=false]
 * @property {boolean} [isTrueDamage=false]
 * @property {???} [damagerDbId=null]
 */
}}
**概要
&amp;ref(attemptApplyDamage_image.png,画像/attemptApplyDamage_image.png,title=eIdとhitEIdの    </description>
    <dc:date>2026-01-06T17:00:00+09:00</dc:date>
    <utime>1767686400</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/67.html">
    <title>画像/attemptApplyDamage_image.png</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/67.html</link>
    <description>
      &amp;image(attemptApplyDamage_image.png)    </description>
    <dc:date>2026-01-06T16:33:02+09:00</dc:date>
    <utime>1767684782</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/66.html">
    <title>api一覧/attemptApplyDamage</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/66.html</link>
    <description>
      **説明
**構文
#highlight(javascript){{
api.attemptApplyDamage(PlayerAttemptDamageOtherPlayerOpts)
}}
**引数
***PlayerAttemptDamageOtherPlayerOpts
オブジェクトです。プロパティがたくさんあり、一部にはデフォルト値が設定されています。
** 返り値

** githubのjsdoc
#highlight(javascript){{
/**
 * Apply damage to a lifeform.
 * eId is the player initiating the damage, hitEId is the lifeform being hit.
 *
 * It is recommended to self-inflict damage when the game code wants to apply damage to a lifeform.
 *
 * @param {PlayerAttemptDamageOtherPlayerOpts} {
 *     eId,
 *     hitEId,
 *     attemptedDmgAmt,
 *     withItem,
 *     bodyPartHit = undefined,
 *     attackDir = undefined,
 *     showCritParticles = false,
 *     reduceVerticalKbVelocity = true,
 *     horizontalKbMultiplier = 1,
 *     verticalKbMultiplier = 1,
 *     broadcastEntityHurt = true,
 *     attackCooldownSettings = null,
 *     hittingSoundOverride = null,
 *     ignoreOtherEntitySettingCanAttack = false,
 *     isTrueDamage = false,
 *        </description>
    <dc:date>2026-01-06T16:36:41+09:00</dc:date>
    <utime>1767685001</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/65.html">
    <title>画像/study_page_image.png</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/65.html</link>
    <description>
      &amp;image(study_page_image.png)    </description>
    <dc:date>2026-01-03T12:55:42+09:00</dc:date>
    <utime>1767412542</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/64.html">
    <title>画像/hub_page_image.png</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/64.html</link>
    <description>
      &amp;image(hub_page_image.png)
&amp;html(&lt;a target=&quot;_blank&quot; href=&quot;https://icons8.com/icon/43412/tree-structure&quot;&gt;ツリー構造&lt;/a&gt; アイコン by &lt;a target=&quot;_blank&quot; href=&quot;https://icons8.com&quot;&gt;Icons8&lt;/a&gt;)    </description>
    <dc:date>2026-01-02T22:35:37+09:00</dc:date>
    <utime>1767360937</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/63.html">
    <title>typedef</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/63.html</link>
    <description>
      javascriptの標準にはない、オリジナルのタイプを定義するページのハブページです。
**目次
#lsd()    </description>
    <dc:date>2026-01-03T13:03:33+09:00</dc:date>
    <utime>1767413013</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/62.html">
    <title>api一覧/applyMeleeHit</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/62.html</link>
    <description>
      **説明
エンティティにエンティティを攻撃させる関数です。
**構文
#highlight(javascript){{
api.applyMeleeHit(hittingEId,hitEId,dirFacing,bodyPartHit,overrides?)
}}
**引数

** 返り値

** githubのjsdoc
#highlight(javascript){{
/**
 * Make it as if hittingEId hit hitEId
 *
 * @param {LifeformId} hittingEId
 * @param {LifeformId} hitEId
 * @param {number[]} dirFacing
 * @param {PNull&lt;PlayerBodyPart&gt;} [bodyPartHit]
 * @param { {
 *     damage?: PNull&lt;number&gt;
 *     heldItemName?: PNull&lt;string&gt;
 *     horizontalKbMultiplier?: number
 *     verticalKbMultiplier?: number
 * } } [overrides]
 * @returns {boolean}
 */
applyMeleeHit(hittingEId, hitEId, dirFacing, bodyPartHit, overrides)
}}
** 使用例
特になし    </description>
    <dc:date>2026-01-01T18:49:01+09:00</dc:date>
    <utime>1767260941</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/61.html">
    <title>api一覧/setHealth</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/61.html</link>
    <description>
      **説明
エンティティのhpを設定します。
**構文
#highlight(javascript){{
api.setHealth(entityId,newHealth,whoDidDamage?,increaseMaxHealthIfNeeded?)
}}
**引数
***entityId
hpを変更したいエンティティの[[entityId]]です。
***newHealth
[[Number型&gt;type/number]]または[[null&gt;type/null]]です。nullにした場合、CreativeやSpectatorのようなhpを持たない状態になります。
0に設定した場合、即時に死亡します。
***whoDidDamage
[[whoDidDamage型&gt;api一覧/typedef/whoDidDamage]]です。誰が攻撃したことにするかを指定します。オプションなので、なくてもokです。
***increaseMaxHealthIfNeeded
[[真偽値型&gt;type/boolean]]です。エンティティのmaxHealthがnewHealthより少ない(maxHealth &lt; newHealthが真)のときに、maxHealthを変更してhpをnewHealthにするかを決定します。trueの場合maxHealthを変更し、falseの場合はmaxHealthを変更せず、hpをmaxHealth以下とします。デフォルト値はfalseです。オプションなので、なくてもokです。
** 返り値
[[真偽値型&gt;type/boolean]]です。指定したentityIdが死亡したかを返します。trueなら死亡しており、falseなら生存しています。
** githubのjsdoc
#highlight(javascript){{
/**
 * Set the current health of an entity.
 * If you want to set their health to more than their current max health, the optional increaseMaxHealthIfNeeded must be true.
 *
 * @param {EntityId} e    </description>
    <dc:date>2026-01-01T17:03:01+09:00</dc:date>
    <utime>1767254581</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/60.html">
    <title>typedef/whoDidDamage</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/60.html</link>
    <description>
      [[lifeformId]]のhpを増減する際の、ダメージを与えたエンティティを指定するもの。
**jsdoc
#highlight(javascript){{
/**
* @typedef {lifeformId | {lifeformId:lifeformId,withItem:itemId}} whoDidDamage
* @example
* // lifeformIdのみで指定する場合
* myId
* @example
* // withItemも指定する場合
* {lifeformId:myId,withItem:&quot;Dirt&quot;}
*/
}}
**概要
lifeformIdのみの指定の場合
※[[applyHealthChange&gt;api一覧/applyHealthChange]]の第三引数がwhoDidDamageです
#highlight(javascript){{
api.applyChangeHealth(myId,-10,&quot;-5&quot;)
}}
withItemも指定する場合
#highlight(javascript){{
api.applyChangeHealth(myId,-10,{lifeformId:&quot;-5&quot;,withItem:&quot;Dirt&quot;})
}}
**使用するapi関数
- [[applyHealthChange&gt;api一覧/applyHealthChange]]
- [[setHealth&gt;api一覧/setHealth]]    </description>
    <dc:date>2026-01-01T16:53:28+09:00</dc:date>
    <utime>1767254008</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/bloxdiocodewiki/pages/59.html">
    <title>type/boolean</title>
    <link>https://w.atwiki.jp/bloxdiocodewiki/pages/59.html</link>
    <description>
      ** 概要
真か偽を表現する型
true(真)かfalse(偽)で表す。
詳しくは[[こちら&gt;https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Global_Objects/Boolean]]    </description>
    <dc:date>2025-12-31T22:53:59+09:00</dc:date>
    <utime>1767189239</utime>
  </item>
  </rdf:RDF>
