Fences

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
1Code
Inhabitant of a Megacity
Reactions:
Posts: 283
Joined: 30 Jan 2020, 14:56
Location: https://bit.ly/3P5dhnT
Plugins: Showcase Store

Plugin Creator

Platform

Fences

Post by 1Code » 25 May 2021, 20:36

Code: Select all    Reset

[ { "id": "$fence_real00", "type": "fence", "frames": [ {"x": 40,"y": 352,"w": 16,"h": 16,"count": 2,"handle y":8}, {"x": 884,"y": 334,"w": 17,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}, {"x": 901,"y": 334,"w": 18,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}, {"x": 919,"y": 334,"w": 18,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}, {"x": 937,"y": 334,"w": 17,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024} ], "price": 100, //Fences also supports animation "animation": [{"id":"$any_animation_id_you_choose00"}] } ]
JSON checker
Check
The flat frames:
image.png
The slope frames:
image (1).png
You do not have the required permissions to view the files attached to this post.
User avatar
DaRK72
Villager
Reactions:
Posts: 16
Joined: 18 Dec 2020, 10:45

Re: Fences

Post by DaRK72 » 17 Sep 2022, 12:01

How i can insert my image in code?
Russian pluginmaker/русский мододел
Naufhal
Inhabitant of a Supercluster
Reactions:
Posts: 3680
Joined: 07 Oct 2021, 04:04
Location: Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Fences

Post by Naufhal » 17 Sep 2022, 12:24

You can make your own fence image
User avatar
DaRK72
Villager
Reactions:
Posts: 16
Joined: 18 Dec 2020, 10:45

Re: Fences

Post by DaRK72 » 17 Sep 2022, 12:27

I already made this image, but the code just not seeing it and inserting frames of wooden fence instead of mine.
Russian pluginmaker/русский мододел
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 19:32

Re: Fences

Post by nickolaas_nk7 » 07 Oct 2022, 21:56

How can I put my own image in the code?
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 19:32

Re: Fences

Post by nickolaas_nk7 » 07 Oct 2022, 22:09

what is the purpose of animation?
User avatar
FVI
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2441
Joined: 22 Feb 2022, 16:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

Post by FVI » 09 Oct 2022, 20:31

viewtopic.php?f=49&t=16894
Bearbear76 told me that this is how it is done
My YT channel! https://www.youtube.com/@FVI297

(Changed the location writing, the old one sounded bad)
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 19:32

Re: Fences

Post by nickolaas_nk7 » 10 Oct 2022, 01:01

it works?
User avatar
FVI
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2441
Joined: 22 Feb 2022, 16:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

Post by FVI » 10 Oct 2022, 07:01

nickolaas_nk7 wrote: 10 Oct 2022, 01:01 it works?
Maybe. I didn't tried it yet but it should work. Try :)
My YT channel! https://www.youtube.com/@FVI297

(Changed the location writing, the old one sounded bad)
Naufhal
Inhabitant of a Supercluster
Reactions:
Posts: 3680
Joined: 07 Oct 2021, 04:04
Location: Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Fences

Post by Naufhal » 10 Oct 2022, 09:35

nickolaas_nk7 wrote: 10 Oct 2022, 01:01 it works?
Yes.
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 19:32

Re: Fences

Post by nickolaas_nk7 » 10 Oct 2022, 16:02

Thank you!! 💪🏻
User avatar
FVI
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2441
Joined: 22 Feb 2022, 16:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

Post by FVI » 10 Oct 2022, 17:19

You re welcome :)
My YT channel! https://www.youtube.com/@FVI297

(Changed the location writing, the old one sounded bad)
The Blue Mask
Settler
Reactions:
Posts: 2
Joined: 24 Jun 2022, 12:28

Re: Fences

Post by The Blue Mask » 28 Jul 2023, 12:20

How to make diagonal fences but the pixels just going straight. can anybody give me the template?
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Fences

Post by CommanderABab » 29 Jul 2023, 16:49

Prorifg wrote: 28 Jul 2023, 12:20 How to make diagonal fences but the pixels just going straight. can anybody give me the template?


No currently possible.
my avatar:
User avatar
Ross The Mayor
Small-town resident
Reactions:
Posts: 33
Joined: 20 Dec 2023, 21:30
Location: Jamaica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Re: Fences

Post by Ross The Mayor » 04 Mar 2025, 16:41

How would you code the fence like the seawall in-game?
Previous topicNext topic