[1.9.78] Override/custom water

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3761
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store

[1.9.78] Override/custom water

#1

Post by Lobby »

image.png
Since version 1.9.78 the game features tile based water drawing instead of area filling based one. This adds several new possibilities in that it should fix some drawing issues and allows for more water customizations. (See this deprecated topic on how it worked before: viewtopic.php?f=41&t=5242)

Let's have a look at how changing the existing water can be achieved now:

Code: Select all    Reset

[ { "min version":1978, // Don't forget to specify when uploading to store "id":"$water00", // Let's chagne the existing water "inherit":true, // By using inherit we only have to specify stuff that changes "type":"ground", "frames":[ {"bmp":"water_tiles.png","w":32,"handle y":4,"count": 32} ], "sparkle frames":[ {"bmp":"sparkle_tiles.png","w":32,"handle y":4,"count": 32} ], "map color":{"r":39,"g":168,"b":193} // Let's use an appropriate color in the minimap } ]
JSON checker
Check
water_tiles.png
sparkle_tiles.png
sparkle_tiles.png (3.52 KiB) Viewed 17759 times
As you can see the graphics are now tile based. The game switches between the various frames smoothly so you might not need as many frames as used in here. The optional sparkle frames are used as an overlay of unshaded sparkle effects that will also be animated.



A new feature is that there can be different types of water in the game. Here's an example of how a lava water type could be implemented:

Code: Select all    Reset

[ { "min version":1978, // Don't forget to specify when uploading to store "id":"$lava00", "type":"ground", "water":true, // It's not really water, but that's how it works "frames":[ {"bmp":"lava_tiles.png","w":32,"handle y":4,"count": 32} ], "edge frames":[{"x":192,"y":96,"w":16,"h":48,"count":2}], "dark water color":{"r":255,"g":255,"b":255}, // Prevent it form being dark dependent on depth "light water color":{"r":0,"g":0,"b":0}, // Prevent it from being lighter near the coast "water speed":0.5, // Slower animation seems appropriate "light":true, // Let it glow in the night "map color":{"r":255,"g":100,"b":20} // Let's use an appropriate color in the minimap } ]
JSON checker
Check
lava_tiles.png

User avatar
Ross The Mayor
Small-town resident
Reactions:
Posts: 33
Joined: 20 Dec 2023, 23:30
Location: Clarendon, Jamaica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Re: [1.9.78] Override/custom water

#2

Post by Ross The Mayor »

Where's the sparkle tiles that you used in the water decal?

User avatar
Lobby
Developer
Reactions:
Posts: 3761
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store

Re: [1.9.78] Override/custom water

#3

Post by Lobby »

Re-added it :mine

User avatar
Syn
Small-town resident
Reactions:
Posts: 28
Joined: 07 Jan 2021, 07:55

Plugin Creator

Platform

Re: [1.9.78] Override/custom water

#4

Post by Syn »

Have a question does sparkle tag only work for water or work for other type like say grass

User avatar
PBbunnypower
Inhabitant of a Conurbation
Reactions:
Posts: 386
Joined: 26 Aug 2022, 11:49
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.9.78] Override/custom water

#5

Post by PBbunnypower »

Think I already responded to you saying that its just for water.

User avatar
Syn
Small-town resident
Reactions:
Posts: 28
Joined: 07 Jan 2021, 07:55

Plugin Creator

Platform

Re: [1.9.78] Override/custom water

#6

Post by Syn »

PBbunnypower wrote:
01 Apr 2026, 07:44
Think I already responded to you saying that its just for water.
Yeah it's earlier question tho then I go to the discord to ask them you answer and thanks for the answer btw,since asking questions in the forum is like throwing things in the void so I turn to discord

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”