Attention those using glass nodes as liquid tanks

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Attention those using glass nodes as liquid tanks

by paramat » Thu Mar 30, 2017 06:29

Image

The 2 drawtypes 'glasslike_framed' and 'glasslike_framed_optional' have the ability to act as hollow tanks of liquid containing a liquid level with 64 levels defined by param2. This has until now been completely undocumented and was missing a 'paramtype2' for that use of param2.

I have now fixed this, but this means that nodes being used as liquid tanks now need to have this line added to their node definitions:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
paramtype2 = "glasslikeliquidlevel",
Attachments
screenshot_20170329_050909.png
screenshot_20170329_050909.png (321.7 KiB) Viewed 3956 times
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

Re: Attention those using glass nodes as liquid tanks

by Jordach » Sat Apr 01, 2017 00:17

Okay then; how do we use this?

Examples for how to set fill level in 1/16ths.

Examples for settings textures to liquid and glass node.

If you don't tell us how to use it, then it's a useless feature as there's no documentation in useful terms.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

paramat
Member
 
Posts: 2662
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat

Re: Attention those using glass nodes as liquid tanks

by paramat » Sat Apr 01, 2017 03:48

I added some documentation in my commit https://github.com/minetest/minetest/commit/ea549bbae3650d246db7b70a2b07485a4b404409

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
    paramtype2 == "glasslikeliquidlevel"
    ^ Only valid for "glasslike_framed" or "glasslike_framed_optional" drawtypes.
      param2 defines 64 levels of internal liquid.
      Liquid texture is defined using `special_tiles = {"modname_tilename.png"},`

Param2 values 0 to 63 define 64 levels, so for 1/16ths use values 0, 3, 7, 11 ...
Glass and frame textures are as standard glaslike_framed.
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Attention those using glass nodes as liquid tanks

by azekill_DIABLO » Sat Apr 01, 2017 09:01

wow this is awesome! it looks odd though with solid blue color.
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

Re: Attention those using glass nodes as liquid tanks

by Jordach » Sat Apr 01, 2017 13:33

paramat wrote:I added some documentation in my commit https://github.com/minetest/minetest/commit/ea549bbae3650d246db7b70a2b07485a4b404409

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
    paramtype2 == "glasslikeliquidlevel"
    ^ Only valid for "glasslike_framed" or "glasslike_framed_optional" drawtypes.
      param2 defines 64 levels of internal liquid.
      Liquid texture is defined using `special_tiles = {"modname_tilename.png"},`

Param2 values 0 to 63 define 64 levels, so for 1/16ths use values 0, 3, 7, 11 ...
Glass and frame textures are as standard glaslike_framed.

~~Is it using param2 = 0-63 or 0-127?~~

^ Ignore that.

Absolutely fabulous.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

ABJ
Member
 
Posts: 2344
Joined: Sun Jan 18, 2015 13:02
GitHub: ABJ-MV
In-game: ABJ

Re: Attention those using glass nodes as liquid tanks

by ABJ » Sun Apr 02, 2017 08:53

Does this mean we can fill a window with water?
 

User avatar
azekill_DIABLO
Member
 
Posts: 3458
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: Attention those using glass nodes as liquid tanks

by azekill_DIABLO » Sun Apr 02, 2017 09:06

Does this mean we can fill mutiple windows like if it was only one big window?
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Hi, my username is azekill_DIABLO and i'm an exelent bug-maker(yeah...i know...i have a bad reputation)

azekill_DIABLO said: Mineyoshi+ABJ+Baggins= TOPIC HIJACKED.
My Mods and Stuff | Voxellar | VoxBox on GITHUB | M.I.L.A Monster engine
WEIRD MODDING CONTEST !!!
 

User avatar
GreenDimond
Member
 
Posts: 460
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: Attention those using glass nodes as liquid tanks

by GreenDimond » Sun Apr 02, 2017 18:02

azekill_DIABLO wrote:Does this mean we can fill mutiple windows like if it was only one big window?

That is an interesting idea. How does this interact with glass_like_framed?
I am Green. I tend to binge-post. "All of this over a 16x16 representation of a cartoon cat ?!?! what has this world come to..." -TenPlus1, 2017.
Diz mah mods! :D ↑ github.com/minetest/minetest_game/issues/1647#issuecomment-288134572 ↑
Sand Plus - Tac Nayn - Waffles - Coming Soon: Caverealms Plus
 


Return to Minetest News

Who is online

Users browsing this forum: No registered users and 4 guests

cron