minecraftTellrawGenerator
1.0.5
Это простой пакет Python, который поможет вам создать команду Minecraft Tellraw для ваших скриптов, написанных на Python.
Этот пакет был протестирован только на Python 3.
pip install -U minecraftTellrawGenerator
Импортируйте модуль и поехали!
from minecraftTellrawGenerator import MinecraftTellRawGenerator as mctellraw
hover = mctellraw ( text = 'Hooooooooooover text' , bold = True , color = 'blue' )
a = mctellraw (
text = 'My super text ' ,
color = 'light_purple' ,
italic = True ,
bold = True ,
insertion = '/say hello' ,
click = 'Hello all !' ,
hover = hover
)
b = mctellraw (
text = "Another text " ,
underlined = True ,
strikethrough = True
)
c = mctellraw ( text = "JUST FOR FUN" , obfuscated = True , bold = True )
d = mctellraw ( text = "Click here to open my github page" ,
color = 'yellow' ,
url = 'https://github.com/MyTheValentinus' ,
hover = mctellraw ( text = 'Click !' , bold = True , color = 'dark_red' )
)
# Get output:
print ( a )
# Or in certain case you need to cast
print ( str ( a ))
# Get all messages in one:
print ( mctellraw . multiple_tellraw ( a , b , c , d ))
# OR old / classic method
print ( '[' + str ( a ) + ', ' + str ( b ) + ', ' + str ( c ) + ']' )
[
{
"text" : " My super text " ,
"color" : " light_purple " ,
"bold" : true ,
"italic" : true ,
"insertion" : " /say hello " ,
"clickEvent" :{
"action" : " run_command " ,
"value" : " Hello all ! "
},
"hoverEvent" :{
"action" : " show_text " ,
"value" :{
"text" : " Hooooooooooover text " ,
"color" : " blue " ,
"bold" : true
}
}
},
{
"text" : " Another text " ,
"color" : " white " ,
"underlined" : true ,
"strikethrough" : true
},
{
"text" : " JUST FOR FUN " ,
"color" : " white " ,
"bold" : true ,
"obfuscated" : true
}
]
https://pypi.python.org/pypi/minecraftTellrawGenerator
Валентин ДЕВИЛЛ [Твиттер]
Лицензия: ГПЛВ3.