Fences

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Platform

Plugin Creator

Fences

#1

Post by Jeremiah Stephens »

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

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

Re: Fences

#2

Post by DaRK72 »

How i can insert my image in code?
Russian pluginmaker/русский мододел

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

Platform

Plugin Creator

Re: Fences

#3

Post by Naufhal »

You can make your own fence image

User avatar
DaRK72
Villager
Reactions:
Posts: 14
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.
Russian pluginmaker/русский мододел

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?

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 Megalopolis
Reactions:
Posts: 717
Joined: 22 Feb 2022, 18:00
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

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 Megalopolis
Reactions:
Posts: 717
Joined: 22 Feb 2022, 18:00
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: 3598
Joined: 07 Oct 2021, 06:04
Location: Indonesia
Plugins: Showcase Store
Contact:

Platform

Plugin Creator

Re: Fences

#10

Post by Naufhal »

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

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 Megalopolis
Reactions:
Posts: 717
Joined: 22 Feb 2022, 18:00
Plugins: Showcase Store
Version: Beta

Platform

Re: Fences

#12

Post by FVI »

You re welcome :)

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”