add in basics of glass mod
This commit is contained in:
parent
e460f1072c
commit
85ee8dd5d0
3
mods/fl_glass/README
Normal file
3
mods/fl_glass/README
Normal file
@ -0,0 +1,3 @@
|
||||
toby109tt(aka tobyplowy)(CC BY-SA 3.0):
|
||||
farlands_glass_detail.png
|
||||
farlands_glass.png
|
21
mods/fl_glass/init.lua
Normal file
21
mods/fl_glass/init.lua
Normal file
@ -0,0 +1,21 @@
|
||||
minetest.register_node("fl_glass:glass_connected", {
|
||||
description = "connected glass",
|
||||
drawtype = "glasslike_framed",
|
||||
tiles = {"farlands_glass.png", "farlands_glass_detail.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
sunlight_propagates = true,
|
||||
groups = {oddly_breakable_by_hand = 3},
|
||||
})
|
||||
|
||||
minetest.register_node("fl_glass:glass_framed", {
|
||||
description = "framed glass",
|
||||
drawtype = "glasslike",
|
||||
tiles = {"farlands_glass.png", "farlands_glass_detail.png"},
|
||||
paramtype = "light",
|
||||
paramtype2 = "glasslikeliquidlevel",
|
||||
sunlight_propagates = true,
|
||||
groups = {oddly_breakable_by_hand = 3},
|
||||
})
|
||||
|
||||
--make colored glass, probably need to make dyes mod
|
BIN
mods/fl_glass/textures/farlands_glass.png
Normal file
BIN
mods/fl_glass/textures/farlands_glass.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 292 B |
BIN
mods/fl_glass/textures/farlands_glass_detail.png
Normal file
BIN
mods/fl_glass/textures/farlands_glass_detail.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 316 B |
@ -3,7 +3,7 @@ minetest.register_entity("fl_wildlife:riverfish", {
|
||||
--mte object properties
|
||||
physical = true,
|
||||
stepheight = 1.1,
|
||||
collide_with_objects = true,
|
||||
collide_with_objects = false,
|
||||
collisionbox = {-0.2, -0.2, -0.2, 0.2, 0.2, 0.2}, --fix this
|
||||
visual = "mesh",
|
||||
mesh = "farlands_mob_fish.b3d",
|
||||
@ -21,7 +21,7 @@ minetest.register_entity("fl_wildlife:riverfish", {
|
||||
--mobkit properties
|
||||
buoyancy = 0.99, --how it works in water
|
||||
max_speed = 2, --how fast it can go
|
||||
jump_height = 1.1, --jumping height? not sure how this is different from mte stepheight
|
||||
jump_height = 0, --jumping height? not sure how this is different from mte stepheight
|
||||
view_range = 24, --how far it can see
|
||||
lung_capacity = 10, --seconds till drowning
|
||||
max_hp = 5, --health, not sure how this measured? like player where 2hp = 1 heart?
|
||||
@ -61,3 +61,7 @@ minetest.register_entity("fl_wildlife:riverfish", {
|
||||
|
||||
--register eggs
|
||||
fl_wildlife.egg_it("fl_wildlife:riverfish", "riverfish", "#978166")
|
||||
|
||||
--fish still jump out,
|
||||
--fish die in pen on in water on base?
|
||||
--this ^ is due to water_flowing
|
Loading…
x
Reference in New Issue
Block a user