Skip to content

Commit

Permalink
Fixed a few things that have been bugging me for a bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Kniffer committed Oct 30, 2017
1 parent 09b98ad commit ba87f64
Show file tree
Hide file tree
Showing 71 changed files with 12 additions and 10,486 deletions.
2 changes: 1 addition & 1 deletion mods/bones/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ minetest.register_node("bones:bones", {
"bones_front.png"
},
paramtype2 = "facedir",
groups = {dig_immediate=2},
groups = {dig_immediate=2, not_in_creative_inventory=1},
sounds = default.node_sound_dirt_defaults({
footstep = {name="default_gravel_footstep", gain=0.5},
dug = {name="default_gravel_footstep", gain=1.0},
Expand Down
5 changes: 3 additions & 2 deletions mods/mapgen/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ minetest.register_biome({
name = "plains",
node_top = "moontest:dust",
depth_top = 2,
y_min = 3,
y_min = -18,
y_max = 75,
heat_point = 50,
humidity_point = 50,
Expand All @@ -55,7 +55,7 @@ minetest.register_biome({
depth_top = 2,
node_dust = "moontest:vacuum",
y_min = -50,
y_max = 5,
y_max = -20,
heat_point = 75,
humidity_point = 25,
})
Expand All @@ -80,6 +80,7 @@ minetest.register_alias("mapgen_stone", "moontest:stone")
minetest.register_alias("mapgen_dirt", "moontest:dust")
minetest.register_alias("mapgen_gravel", "moontest:compressed_dust")
minetest.register_alias("mapgen_water_source", "moontest:vacuum")
minetest.register_alias("mapgen_river_water_source", "moontest:vacuum")
-- add these two in case dungeons are enabled
minetest.register_alias("mapgen_mossycobble", "moontest:cobble")
minetest.register_alias("mapgen_cobble", "moontest:cobble")
Expand Down
4 changes: 2 additions & 2 deletions mods/moontest/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ end)]]

minetest.register_globalstep(function(dtime)
for _, player in ipairs(minetest.get_connected_players()) do
if math.random() < 0.1 then
--if math.random() < 1 then
if player:get_inventory():contains_item("main", "moontest:spacesuit")
and player:get_breath() < 11 then
player:set_breath(11)
end
end
--end
end
end)

Expand Down
9 changes: 6 additions & 3 deletions mods/moontest/nodes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ minetest.register_node("moontest:leaves", {
minetest.register_node("moontest:dustprint1", {
description = "Moon Dust Footprint1",
tiles = {"moontest_dustprint1.png", "moontest_dust.png"},
groups = {crumbly=3, falling_node=1},
groups = {crumbly=3, falling_node=1, not_in_creative_inventory=1},
drop = "moontest:dust",
sounds = default.node_sound_sand_defaults({
footstep = {name="default_sand_footstep", gain=0.1},
Expand All @@ -109,7 +109,7 @@ minetest.register_node("moontest:dustprint1", {
minetest.register_node("moontest:dustprint2", {
description = "Moon Dust Footprint2",
tiles = {"moontest_dustprint2.png", "moontest_dust.png"},
groups = {crumbly=3, falling_node=1},
groups = {crumbly=3, falling_node=1, not_in_creative_inventory=1},
drop = "moontest:dust",
sounds = default.node_sound_sand_defaults({
footstep = {name="default_sand_footstep", gain=0.1},
Expand All @@ -122,6 +122,7 @@ minetest.register_node("moontest:dustprint2", {

minetest.register_node("moontest:vacuum", {
description = "Vacuum",
groups = {not_in_creative_inventory=1},
drawtype = "airlike",
paramtype = "light",
sunlight_propagates = true,
Expand All @@ -134,6 +135,7 @@ minetest.register_node("moontest:vacuum", {

minetest.register_node("moontest:air", {
description = "Life Support Air",
groups = {not_in_creative_inventory=1},
drawtype = "glasslike",
tiles = {"moontest_air.png"},
paramtype = "light",
Expand All @@ -146,6 +148,7 @@ minetest.register_node("moontest:air", {

minetest.register_node("moontest:air_shield", {
description = "Air Shield",
groups = {not_in_creative_inventory=1},
drawtype = "glasslike",
inventory_image = minetest.inventorycube("moontest_air_shield.png"),
use_texture_alpha = true,
Expand Down Expand Up @@ -290,7 +293,7 @@ minetest.register_node("moontest:hlsource", {
--

minetest.register_node("moontest:glass", {
description = "Glass",
description = "Moon Glass",
drawtype = "glasslike",
tiles = {"default_obsidian_glass.png"},
paramtype = "light",
Expand Down
Loading

0 comments on commit ba87f64

Please sign in to comment.