- cause: EntityDamageCause
- damagingEntity: Entity
- projectile: Entity
- damageSource: EntityDamageSource
- 読み取り専用
{ | |
"format_version": "1.18.10", | |
"minecraft:entity": { | |
"description": { | |
"identifier": "entity:player_score_saver", | |
"is_spawnable": false, | |
"is_summonable": true, | |
"is_experimental": false, | |
"properties": { | |
"score:test": { |
import { world, MinecraftItemTypes as Items } from "mojang-minecraft"; | |
// コマンドエンジンの初期化 | |
void function() { | |
const func = ({ player }) => { | |
player.runCommand("list"); | |
world.events.playerJoin.unsubscribe(func); | |
} | |
world.events.playerJoin.subscribe(func); | |
}(); |
import requests | |
BASE_URL = "https://sg-wiki-api-static.hoyolab.com/hoyowiki/wapi/" | |
HEADERS = {"x-rpc-language": "ja-jp"} | |
def get_request(endpoint): | |
res = requests.get(BASE_URL + endpoint, headers=HEADERS) | |
return res.json()["data"] |
import { world, system, Vector2, Vector3 } from "@minecraft/server"; | |
world.afterEvents.itemUse.subscribe((ev) => { | |
const { source: player } = ev; | |
if (player.hasTag("shoot")) { | |
player.removeTag("shoot"); | |
return; | |
} | |
player.addTag("shoot"); | |
}); |