LTDV10/packet/kubejs/startup_scripts/registry_scroll.js
2026-04-14 18:20:56 +08:00

27 lines
858 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
*
* @param {number[]} glyphs 卷轴放置在世界的纹理4个数字随意填
* @param {number} intricate 是否为深奥原理图0为不是1为是
* @param {string} key 卷轴对应的键(用于本地化)
* @param {number} material 卷轴身的材质
* @param {string[]} schematics 卷轴可带来的模块改装
* @param {string} ribbon 缠绕卷轴的丝带颜色(十六进制)
* @returns {Internal.ItemStack}
*/
function custom_scroll(glyphs, intricate, key, material, schematics, ribbon) {
return Item.of("tetra:scroll_rolled", {
BlockEntityTag: {
data: [
{
glyphs: glyphs,
intricate: intricate,
key: key,
material: material,
schematics: schematics,
ribbon: ribbon,
},
],
},
});
}