Skip to content
Li, Xizhi edited this page Mar 7, 2021 · 3 revisions

All Offical Paracraft Agent Files

These files are published in ParacraftBuildinMod.zip when paracraft is published.

How to publish new agents

Git clone this project to

[paracraft_rootdir]/npl_packages/Agents

Create Agent Sign Block:

image

Specify global and always update in agent editor page:

image

Agent files will be saved to [paracraft_rootdir]/npl_packages/Agents/Mod/*.xml

Git commit npl_packages/Agents. When the ParacraftbuildinMod CI is run, these agent files will be published. Please note, in order for always update to work, one must increase the version number manually each time you modify and commit changes.

How to publish official agents to block list

Open and edit block_list.xml, and add a line like

<block name="AgentSignBlock" uid="MacroPlatform" tip="宏示教" icon="Texture/blocks/items/agentsign.png" server_data='{agentPackageName="macroplatform", tooltip="宏示教", agentUrl="Mod/Agents/macroplatform.xml", isGlobal=true,updateMethod="always"}'/>

Where to save the source file of agents?

It is recommended that each agent or a group of related agents are saved in a dedicated paracraft world. If several developers want to cooperate on the agent code, they can edit the same world together. This will make version management easier.

All agents in different worlds are all saved to /npl_packages/Agents git projects for uploading and packaging.