luanti-network-api-client/examples/01_list_all_tools.py

12 lines
220 B
Python
Raw Normal View History

2024-12-08 00:58:04 +03:00
from miney.minetest import Minetest
mt = Minetest(server='bvn13.me', port=29999, playername='bvn13')
print("Connected to", mt)
for tool_type in mt.tool:
print(tool_type)
for type in mt.node.type:
print(type)