Skip to content

Instantly share code, notes, and snippets.

View EvanHsieh0415's full-sized avatar
💻
Coding

Mango Jelly Pudding EvanHsieh0415

💻
Coding
View GitHub Profile
/**
* @typedef {{armors: $Item_[], bonus: [mobEffect: Special.MobEffect, amplifier: number?, showParticles: boolean?]}} $ArmorSetBonus_
* @type {Object.<String, $ArmorSetBonus_}
*/
const bonuses = {
set1: {
armors: ["minecraft:leather_helmet", "minecraft:leather_boots"],
bonus: ["speed", 0],
},
set2: {
@EvanHsieh0415
EvanHsieh0415 / index.client.js
Last active March 29, 2025 01:45
【KJS 7 &AE 2】 实现中键从AE中获取光标指向方块 - [KJS]KubeJS https://www.mcmod.cn/post/4954.html
// requires: ae2
(() => {
const { keyPickItem } = Client.options; // 「选取方块」对应的 KeyMapping
ClientEvents.tick((event) => {
let { player } = event;
if (!keyPickItem.isDown()) return;
const ItemEntity = Java.loadClass("net.minecraft.world.entity.item.ItemEntity");
global.recipes = global.recipes || {};
/** @type {[ingredient: $Ingredient_, result: $ItemStack_][]} */
global.recipes["portal_to_alfheim"] = [
["#c:raw_materials/gold", "2x minecraft:gold_ingot"],
["#c:raw_materials/iron", "2x minecraft:iron_ingot"],
["#c:raw_materials/copper", "2x minecraft:copper_ingot"],
["nether_star", "nether_star"],
];

Note

Thanks for 忆然( yi_ran ), adapted from 忆然's code.
The following are all Client Scripts

helper.js

// priority: 100

const $Color = Java.loadClass("java.awt.Color");

Test 1

#include <dht11.h> // 引入 DHT11 感測器的數據
#define DHTPIN 2 // DHT11 DATA 腳位接到 D2
dht11 dht; // 建立 DHT11 物件
void setup() {
  Serial.begin(9600); // 初始化序列埠,波特率為 9600
}
void loop() {

MC 百科資源收集.md

Note

此列表僅為收集網址

列表

  • 本站
    • 使用者資訊
  • 背景橫幅(多圖):https://www.mcmod.cn/static/center/images/user/banner/1/[1|2|3|4].jpg

第三屆mc百科網站考卷

滿分:100 分

一、選擇題(每題 5 分,共 30 分)

  1. 以下哪個選項 是 MC 百科的特色?

    (A) 提供 Minecraft 模組的詳細介紹 (B) 提供 Minecraft 模組的下載連結

// KubeJS 5 / 1.18.x
const $CreativeTabRegistry = java("dev.architectury.registry.CreativeTabRegistry");
$CreativeTabRegistry.create(
"test:group",
() => Item.of("minecraft:apple")
);
onEvent("item.registry", (event) => {