improved splash function, added texture

This commit is contained in:
Alexsandro Percy 2024-08-19 21:18:59 -03:00
parent 7ac4a8590b
commit 6e8f961714
3 changed files with 3 additions and 1 deletions

View file

@ -78,6 +78,8 @@ dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "texture_management.lua"
dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "attach_extern_ent.lua") dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "attach_extern_ent.lua")
if airutils._use_signs_api then dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "text.lua") end if airutils._use_signs_api then dofile(minetest.get_modpath("airutils") .. DIR_DELIM .. "text.lua") end
airutils.splash_texture = "airutils_splash.png"
local is_biofuel_installed = false local is_biofuel_installed = false
if biomass then if biomass then
if biomass.convertible_groups then is_biofuel_installed = true end if biomass.convertible_groups then is_biofuel_installed = true end

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

View file

@ -31,7 +31,7 @@ function airutils.add_splash(pos, yaw, x_pos)
local direction = yaw local direction = yaw
local spl_pos = vector.new(pos) local spl_pos = vector.new(pos)
water_particle(spl_pos, {x=0,y=0,z=0}) --water_particle(spl_pos, {x=0,y=0,z=0})
--right --right
local move = x_pos/10 local move = x_pos/10