Compatibility
Minecraft: Java Edition
75% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+Creators
Details
Русский
Данный ресурс пак позволит выводить русский текст на мониторы и терминалы. чтобы это сделать нужно использовать "\число".
Например "\197" это -> Ж.
Поддерживается весь русский алфавит. И заглавные и строчные буквы. Даже Ъ и Ь там есть !!!
English
This resource pack will allow you to display Russian text on monitors and terminals. To do this you need to use “\number”.
For example “\197” is -> Ж.
The whole Russian alphabet is supported. Both uppercase and lowercase letters. Even “Ъ” and “Ь” are there !!!
-- Capital letters (A-Y)
["А"] = "\190", ["Б"] = "\191", ["В"] = "\192", ["Г"] = "\193", ["Д"] = "\194",
["Е"] = "\195", ["Ё"] = "\196", ["Ж"] = "\197", ["З"] = "\198", ["И"] = "\199",
["Й"] = "\200", ["К"] = "\201", ["Л"] = "\202", ["М"] = "\203", ["Н"] = "\204",
["Щ"] = "\205", ["П"] = "\206", ["Р"] = "\207", ["С"] = "\208", ["Т"] = "\209",
["У"] = "\210", ["Ф"] = "\211", ["Х"] = "\212", ["Ц"] = "\213", ["Ч"] = "\214",
["Ш"] = "\215", ["Щ"] = "\216", ["Ъ"] = "\217", ["Ы"] = "\218", ["Ь"] = "\219",
["Э"] = "\220", ["Ю"] = "\221", ["Я"] = "\222",
-- Lowercase letters (a-ya)
["а"] = "\223", ["б"] = "\224", ["в"] = "\225", ["г"] = "\226", ["в"] = "\227",
["е"] = "\228", ["ё"] = "\229", ["ж"] = "\230", ["з"] = "\231", ["и"] = "\232",
["й"] = "\233", ["к"] = "\234", ["л"] = "\235", ["м"] = "\236", ["н"] = "\237",
["о"] = "\238", ["п"] = "\239", ["р"] = "\240", ["с"] = "\241", ["т"] = "\242",
["у"] = "\243", ["ф"] = "\244", ["х"] = "\245", ["ц"] = "\246", ["ч"] = "\247",
["ш"] = "\248", ["щ"] = "\249", ["ъ"] = "\250", ["ы"] = "\251", ["ь"] = "\252",
["э"] = "\253", ["ю"] = "\254", ["я"] = "\255",
Русский
Но для вашего удобств, я написал скрипт на Lua который вы можете вставить в свой пк в мире и использовать для транслита англиского текста на русский.
Можете создать файл Lua (например: us_to_ru.lua) и скопировать туда этот
English
But for your convenience, I wrote a script in Lua that you can insert into your PC in the world and use to translate English text into Russian.
You can create a Lua file (for example: us_to_ru.lua) and copy this script into it.
local ru_map = {
F = "\190", ["<"] = "\191", D = "\192",
U = "\193", L = "\194", T = "\195",
["~"] = "\196", [":"] = "\197", P = "\198",
B = "\199", Q = "\200", R = "\201",
K = "\202", V = "\203", Y = "\204",
J = "\205", G = "\206", H = "\207",
C = "\208", N = "\209", E = "\210",
A = "\211", ["{"] = "\212", W = "\213",
X = "\214", I = "\215", O = "\216",
["}"] = "\217", S = "\218", M = "\219",
['"'] = "\220", [">"] = "\221", Z = "\222",
f = "\223", [","] = "\224", d = "\225",
u = "\226", l = "\227", t = "\228",
["`"] = "\229", [";"] = "\230", p = "\231",
b = "\232", q = "\233", r = "\234",
k = "\235", v = "\236", y = "\237",
j = "\238", g = "\239", h = "\240",
c = "\241", n = "\242", e = "\243",
a = "\244", ["["] = "\245", w = "\246",
x = "\247", i = "\248", o = "\249",
["]"] = "\250", s = "\251", m = "\252",
["'"] = "\253", ["."] = "\254", z = "\255",
}
setmetatable(ru_map, {
__index = function(_, idx)
return idx
end
})
function Ru(input)
local result = ""
local inRussian = false
local i = 1
while i <= #input do
if input:sub(i, i + 1) == "~~" then
inRussian = not inRussian
i = i + 2
else
local ch = input:sub(i, i)
if inRussian then
result = result .. ru_map[ch]
else
result = result .. ch
end
i = i + 1
end
end
return result
end
local old_print = print
local old_wrap = peripheral.wrap
local old_find = peripheral.find
local old_term_write = term.write
print = function(...)
local args = table.pack(...)
for i = 1, args.n do
args[i] = Ru(tostring(args[i]))
end
old_print(table.unpack(args, 1, args.n))
end
term.write = function(text)
old_term_write(Ru(tostring(text)))
end
local function wrapDeviceWrite(device)
if device and type(device.write) == "function" then
local old_write = device.write
device.write = function(...)
local args = {...}
if type(args[1]) == "string" then
args[1] = Ru(args[1])
end
return old_write(table.unpack(args))
end
end
return device
end
peripheral.wrap = function(side)
local dev = old_wrap(side)
return wrapDeviceWrite(dev)
end
peripheral.find = function(typeFilter, ...)
local dev = old_find(typeFilter, ...)
return wrapDeviceWrite(dev)
end
Русский
Теперь подключив этот скрипт в свой, вы можете делать МАГИЮ!
English
Now by plugging this script into yours, you can do MAGIC!
-- plug in the script
dofile("Ru.lua")
-- connect the monitor any way you want, in this case it is on top of the computer
local mon = peripheral.wrap("top")
mon.clear()
mon.setCursorPos(1,1)
mon.write("Hello world! ~~b Ghbdtn vbh gj heccrb~~!") -- Hello, world! and Hello world in Russian (in Russian)