Skip to content

Instantly share code, notes, and snippets.

@toka7290
toka7290 / BlockProperties_Method_list.js
Last active August 26, 2021 17:56
Minecraft 1.17.30.23 GameTest BlockProperties module method list
import { BlockProperties } from "mojang-minecraft";
BlockProperties.candles = "candles";
BlockProperties.lit = "lit";
BlockProperties.multiFaceDirectionBits = "multi_face_direction_bits";
BlockProperties.bigDripleafHead = "big_dripleaf_head";
BlockProperties.bigDripleafTilt = "big_dripleaf_tilt";
BlockProperties.growingPlantAge = "growing_plant_age";
BlockProperties.dripstoneThickness = "dripstone_thickness";
BlockProperties.respawnAnchorCharge = "respawn_anchor_charge";
@toka7290
toka7290 / MinecraftBlockTypes_Method_list.js
Last active September 16, 2021 04:26
Minecraft 1.17.40.20 GameTest BlockTypes module method list
/**
* @link https://gist.github.com/toka7290/733bf5c2eb04d5e45a407a4ad5c7b96a
*/
import { MinecraftBlockTypes } from "mojang-minecraft";
// ------------------------- BlockType -------------------------
// MinecraftBlockTypes object return BlockType
/**
* @type {string}
*/
@toka7290
toka7290 / Gametest_Deleted.md
Last active September 16, 2021 04:28
Minecraft 1.17.40.20 GameTest Framework deleted list

GameTest 削除済み 一覧

Helper クラス

Helper.prototype.assertBlockTypePresent()

ブロックが座標(position)に存在しているかチェックします。
1.17.10.21 までassertBlockPresent()

{
"format_version": "1.15.0",
"minecraft:ore_feature": {
"description": {
"identifier": "toka7290:test_feature_ore"
},
"count": 12,
"replace_rules": [
{
"places_block": "toka7290:testore",
{
"format_version": "1.17.0",
"minecraft:volume": {
"description": {
"identifier": "toka7290:toka_test_volumes"
},
"components": {
"minecraft:bounds": {
"min": [-10, 80, -10],
"max": [10, 100, 10],
@toka7290
toka7290 / Minecraft_Component_return_values.js
Last active August 26, 2021 17:48
Minecraft 1.17.30.23 GameTest Component module return values
// return values
// "navigation","ageable","tameable"
// undefined
// "minecraft:movement.jump"
({ id: "minecraft:movement.jump", maxTurn: 0.0 }());
// "minecraft:color"
({
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "toka7290:test_armor_helmet",
"weight": 1,
"functions": [
{
"pools": [
{
"rolls": 1,
"entries": [
{
"type": "item",
"name": "minecraft:bow",
"weight": 1,
"functions": [
{
"format_version": "1.8.0",
"geometry.player.armor.helmet_test:geometry.player.armor.helmet": {
"bones": [
{
"name": "head",
"pivot": [0.0, 24.0, 0.0],
"cubes": [
{ "origin": [-4.0, 32.0, -1.0], "size": [2, 4, 2], "uv": [8, 5], "inflate": 0.5 },
{ "origin": [2.0, 32.0, -1.0], "size": [2, 4, 2], "uv": [8, 2], "inflate": 0.5 }
{
"format_version": "1.8.0",
"animations": {
"animation.armor.boots.offset": {
"loop": true,
"bones": {
"leftleg": {
"position": [
"query.get_root_locator_offset('armor_offset.left_boot', 0)",
"query.get_root_locator_offset('armor_offset.left_boot', 1)",