This guide explains how the Lua is able to communicate with the Java, how to use this behavior for your mods, and how to set up a basic Lua mod structure. It will also teach you how to use the JavaDocs, LuaDocs, how to search the game files and decompiled code to find what you're looking for, and also searching Lua events to implement specific behavior for your Lua mod.
Relevant Wiki pages:
https://pzwiki.net/wiki/Lua_(language)
https://pzwiki.net/wiki/Lua_(API)
https://pzwiki.net/wiki/Lua_event
https://pzwiki.net/wiki/JavaDocs
https://pzwiki.net/wiki/LuaDocs
https://pzwiki.net/wiki/Decompiling_g...
https://pzwiki.net/wiki/Game_files#Se...
https://pzwiki.net/wiki/Visual_Studio...
https://pzwiki.net/wiki/Umbrella_(mod...)
https://pzwiki.net/wiki/IntelliJ_IDEA
To setup Umbrella, it is best to now use EmmyLua, while in the video I presented the LuaLs extension method:
https://pzwiki.net/wiki/EmmyLua
Also check out these video guides:
• PZ Modding Guides - Setting up a mod struc...
• PZ Modding Guides - Decompiling the game code
Chapters:
0:00 Introduction
1:44 How does the Lua gets access to the Java ?
3:57 Lua-Java communication
4:41 Example of communication between the Lua and Java
6:21 Code equivalent
8:15 Parent and subclasses
9:25 Nested classes
10:41 Access modifiers
13:21 Static and instance in the Lua
15:54 Documentations
17:01 JavaDocs
22:03 Decompiled code
22:55 LuaDocs
24:31 Searching the game files
27:43 Lua events
29:35 Mod example
29:56 Lua folder structure
33:16 Properly storing your Lua files
35:42 Testing Lua
36:49 Setting up Umbrella
41:16 Using Lua events
48:19 Conclusion
Have questions or need more help to learn modding ? Join the PZ Modding Community:
https://pzwiki.net/wiki/PZ_Modding_Co...
На этой странице сайта вы можете посмотреть видео онлайн PZ Modding Guides - Lua API, Java-Lua interface длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь SimKDT 18 Ноябрь 2025, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,664 раз и оно понравилось 112 зрителям. Приятного просмотра!