Files
client/kubejs/startup_scripts/createrp_items.js
T

21 lines
1.3 KiB
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.
// Create RP — предмети збірки. Цей файл має бути ОДНАКОВИМ у серверній і клієнтській збірках:
// реєстр предметів сервера й клієнта мусить збігатися.
StartupEvents.registry('item', event => {
// «Довідник громадянина»: навести в інвентарі й затиснути W — туторіал Ponder (клієнтський client_scripts/createrp_ponder.js)
event.create('citizen_guide')
.displayName('Довідник громадянина')
.texture('minecraft:item/knowledge_book')
.maxStackSize(1)
.glow(true)
.tooltip('§7Наведи в інвентарі й затисни §fW§7 — як у Create')
// «Планшет землеміра»: обвести територію по чанках і зареєструвати її (client_scripts/createrp_survey.js)
event.create('land_survey')
.displayName('Планшет землеміра')
.texture('create:item/schematic_and_quill')
.maxStackSize(1)
.tooltip('§7ПКМ по землі — кут території, ще раз — другий кут')
.tooltip('§7Третій ПКМ — оформити · Shift+ПКМ — скинути')
})