How to write a plugin

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
The user 188
Settler
Reactions:
Posts: 6
Joined: 25 Dec 2024, 00:02

Re: How to write a plugin

Post by The user 188 » 25 Dec 2024, 00:05

Ok i need to make the people props as fence plugin
AdakhamjonAtakhanov.
Settler
Reactions:
Posts: 1
Joined: 26 Jan 2025, 03:23

Re: How to write a plugin

Post by AdakhamjonAtakhanov. » 26 Jan 2025, 07:57

With Json
Ferbik
Settler
Reactions:
Posts: 1
Joined: 05 Mar 2025, 18:57

Re: How to write a plugin

Post by Ferbik » 05 Mar 2025, 19:01

returns an error for this code
[
{
"id": "$worldbox.plugin.barracks"
"type": "military"
"title": "The barracks"
"text": "It is adored by the military"
"width": 2
"height": 2
"frames": [
{"bmp": "barracks.png"}
],
"needs road": false
"needs water": false
}
]
:json
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 06 Mar 2025, 08:28

Ferbik wrote: 05 Mar 2025, 19:01 returns an error for this code
[
{
"id": "$worldbox.plugin.barracks"
"type": "military"
"title": "The barracks"
"text": "It is adored by the military"
"width": 2
"height": 2
"frames": [
{"bmp": "barracks.png"}
],
"needs road": false
"needs water": false
}
]
:json
You need some commas.
Mudflesh
Townsman
Reactions:
Posts: 55
Joined: 06 Jul 2022, 13:54

Re: How to write a plugin

Post by Mudflesh » 22 May 2025, 06:34

Code for spawning dumpsters
Mudflesh
Townsman
Reactions:
Posts: 55
Joined: 06 Jul 2022, 13:54

Re: How to write a plugin

Post by Mudflesh » 27 Jun 2025, 18:30

I make plugin for personal use because I'm not familiar with rules and regulations.And how to use in games assessories like images.I hope when I master how to make my plugins legitimate.I will start uploading it on Theotown page.
I encountered an error while trying to use a plugin I made.Here is the error log:

In mudflesh funeral home.zip:

java.lang.IllegalStateException: When loading "$mudfleshfunerals": No value for x
Kreitik
Settler
Reactions:
Posts: 1
Joined: 14 Sep 2025, 10:36

Re: How to write a plugin

Post by Kreitik » 14 Sep 2025, 14:44

А можно как-то сделать свой элемент парка?
Is it possible to somehow make my own park element?
:android
Peter bum
Settler
Reactions:
Posts: 2
Joined: 04 Nov 2024, 13:42

Re: How to write a plugin

Post by Peter bum » 20 Jan 2026, 14:39

How to make a plugin that will create sound due to a disaster?
Shahid22
Settler
Reactions:
Posts: 2
Joined: 22 Jan 2026, 06:10

Re: How to write a plugin

Post by Shahid22 » 24 Jan 2026, 09:46

How to make smoke in pca.svetikas?
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to write a plugin

Post by JustAnyone » 24 Jan 2026, 15:03

I'm afraid PCA does not support adding smokes to your buildings.
Soorena
Settler
Reactions:
Posts: 3
Joined: 26 Nov 2025, 16:16

Re: How to write a plugin

Post by Soorena » 16 Feb 2026, 11:25

Lobby you don't know I'm using Android and how am I supposed use it's so hard
User avatar
Adexdia4343
Inhabitant of a Megacity
Reactions:
Posts: 280
Joined: 24 May 2026, 07:16
Location: Lampung
Plugins: Showcase Store

Plugin Creator

Platform

Re: How to write a plugin

Post by Adexdia4343 » 02 Jun 2026, 08:51

Thank you very much for the template :)
AbdulEgypt
Settler
Reactions:
Posts: 1
Joined: 02 Jul 2026, 10:57

Re: How to write a plugin

Post by AbdulEgypt » 02 Jul 2026, 11:02

Great Mosque of the Holy Valley (مسجد الوادي المقدس الكبير)

مسجد خيالي بمحافظة جنوب سيناء, جمهورية مصر العربية
Fictional Mosque in the South Sinai Governorate, Egypt
Kozerog_2412
Settler
Reactions:
Posts: 1
Joined: 04 May 2026, 17:37

Re: How to write a plugin

Post by Kozerog_2412 » 08 Jul 2026, 08:07

А как допустим написать плогин на автобусы? Я использую приложение pixel studio на андроид
FEARUP096
Settler
Reactions:
Posts: 2
Joined: 15 Aug 2026, 11:06

Re: How to write a plugin

Post by FEARUP096 » 05 Sep 2026, 06:30

Thank you for the map you sent. I have already made a plugin for it.
Previous topicNext topic