Fences

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Plugin Creator

Platform

Fences

#1

Post by 1Code »

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
image.png (239 Bytes) Viewed 4916 times
The slope frames:
image (1).png
image (1).png (1.42 KiB) Viewed 4916 times

User avatar
DaRK72
Villager
Reactions:
Posts: 16
Joined: 18 Dec 2020, 12:45

Re: Fences

#2

Post by DaRK72 »

How i can insert my image in code?

User avatar
Naufhal
Inhabitant of a Supercluster
Reactions:
Posts: 3744
Joined: 07 Oct 2021, 06:04
Location: Indonesia
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: Fences

#3

Post by Naufhal »

You can make your own fence image

User avatar
DaRK72
Villager
Reactions:
Posts: 16
Joined: 18 Dec 2020, 12:45

Re: Fences

#4

Post by DaRK72 »

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
Reactions:
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#5

Post by nickolaas_nk7 »

How can I put my own image in the code?

User avatar
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#6

Post by nickolaas_nk7 »

what is the purpose of animation?

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1491
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

#7

Post by FVI »

viewtopic.php?f=49&t=16894
Bearbear76 told me that this is how it is done

User avatar
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#8

Post by nickolaas_nk7 »

it works?

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1491
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

#9

Post by FVI »

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
Reactions:
Posts: 3744
Joined: 07 Oct 2021, 06:04
Location: Indonesia
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: Fences

#10

Post by Naufhal »

nickolaas_nk7 wrote:
10 Oct 2022, 03:01
it works?
Yes.

User avatar
nickolaas_nk7
Settler
Reactions:
Posts: 4
Joined: 02 Aug 2022, 21:32

Re: Fences

#11

Post by nickolaas_nk7 »

Thank you!! 💪🏻

User avatar
FVI
Inhabitant of a Planet
Reactions:
Posts: 1491
Joined: 22 Feb 2022, 18:00
Location: That island above France
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

#12

Post by FVI »

You re welcome :)

User avatar
The Blue Mask
Settler
Reactions:
Posts: 2
Joined: 24 Jun 2022, 14:28

Re: Fences

#13

Post by The Blue Mask »

How to make diagonal fences but the pixels just going straight. can anybody give me the template?

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Fences

#14

Post by CommanderABab »

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.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”