Fences

Learn here how to create and use plugins.

Moderators: Plugin Moderators, Scenario Moderators

User avatar
1Code
Inhabitant of a Megacity
Posts: 302
Joined: 30 Jan 2020, 16:56
Location: https://bit.ly/3P5dhnT
Plugins: Showcase Store

Plugin Creator

Platform

Fences

#1

Post by 1Code » 25 May 2021, 22: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"}]
}
]
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JSON checker

Output: Select all

...
The flat frames:
image.png
image.png (239 Bytes) Viewed 21040 times
The slope frames:
image (1).png
image (1).png (1.42 KiB) Viewed 21040 times
User avatar
DaRK72
Villager
Posts: 16
Joined: 18 Dec 2020, 12:45

Re: Fences

#2

Post by DaRK72 » 17 Sep 2022, 14:01

How i can insert my image in code?
User avatar
Naufhal
Inhabitant of a Supercluster
Posts: 3752
Joined: 07 Oct 2021, 06:04
Location: Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Fences

#3

Post by Naufhal » 17 Sep 2022, 14:24

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

Re: Fences

#4

Post by DaRK72 » 17 Sep 2022, 14:27

I already made this image, but the code just not seeing it and inserting frames of wooden fence instead of mine.
User avatar
nickolaas_nk7
Settler
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#5

Post by nickolaas_nk7 » 07 Oct 2022, 23:56

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

Re: Fences

#6

Post by nickolaas_nk7 » 08 Oct 2022, 00:09

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

Platform

Re: Fences

#7

Post by FVI » 09 Oct 2022, 22:31

viewtopic.php?f=49&t=16894
Bearbear76 told me that this is how it is done
User avatar
nickolaas_nk7
Settler
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#8

Post by nickolaas_nk7 » 10 Oct 2022, 03:01

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

Platform

Re: Fences

#9

Post by FVI » 10 Oct 2022, 09:01

nickolaas_nk7 wrote: 10 Oct 2022, 03:01 it works?
Maybe. I didn't tried it yet but it should work. Try :)
User avatar
Naufhal
Inhabitant of a Supercluster
Posts: 3752
Joined: 07 Oct 2021, 06:04
Location: Indonesia
Plugins: Showcase Store

Plugin Creator

Platform

Re: Fences

#10

Post by Naufhal » 10 Oct 2022, 11:35

nickolaas_nk7 wrote: 10 Oct 2022, 03:01 it works?
Yes.
User avatar
nickolaas_nk7
Settler
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#11

Post by nickolaas_nk7 » 10 Oct 2022, 18:02

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

Platform

Re: Fences

#12

Post by FVI » 10 Oct 2022, 19:19

You re welcome :)
User avatar
The Blue Mask
Settler
Posts: 2
Joined: 24 Jun 2022, 14:28

Re: Fences

#13

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

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

Plugin Creator

Platform

Re: Fences

#14

Post by CommanderABab » 29 Jul 2023, 18:49

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


No currently possible.
User avatar
Ross The Mayor
Small-town resident
Posts: 26
Joined: 20 Dec 2023, 23:30

Re: Fences

#15

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

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

Return to “Tutorials and Documentation”