Delete 'mods/rangedweapons/glass_breaking.lua'

This commit is contained in:
thunderdog1138 2020-11-17 21:15:00 +00:00
parent 03ee558e36
commit 2193b38a73
1 changed files with 0 additions and 112 deletions

View File

@ -1,112 +0,0 @@
minetest.register_craftitem("rangedweapons:glass_shards", {
description = "" ..core.colorize("#35cdff","Glass shards\n")..core.colorize("#FFFFFF", "3 of those, can be crafted into a file of glass fragments"),
inventory_image = "rangedweapons_glass_shards.png",
})
minetest.register_craft({
output = "vessels:glass_fragments",
recipe = {
{"rangedweapons:glass_shards", "rangedweapons:glass_shards", "rangedweapons:glass_shards"},
}
})
--minetest.override_item("default:glass", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "rangedweapons:broken_glass"})
-- minetest.sound_play("glass_break",{pos})
-- end,
--})
minetest.register_node("rangedweapons:broken_glass", {
description = "Broken glass",
drawtype = "glasslike",
tiles = {
"rangedweapons_broken_glass.png"
},
paramtype = "light",
walkable = false,
is_ground_content = false,
liquidtype = "source",
liquid_alternative_flowing = "rangedweapons:broken_glass",
liquid_alternative_source = "rangedweapons:broken_glass",
liquid_viscosity = 7,
alpha = 160,
liquid_range= 0,
liquid_renewable = false,
damage_per_second = 2,
groups = {oddly_breakable_by_hand = 3},
})
--if minetest.get_modpath("doors") then
--minetest.override_item("doors:door_glass_a", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "air"})
-- minetest.add_item(pos, "vessels:glass_fragments 5")
-- minetest.sound_play("glass_break",{pos})
-- end,
--})
--minetest.override_item("doors:door_glass_b", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "air"})
-- minetest.add_item(pos, "vessels:glass_fragments 5")
-- minetest.sound_play("glass_break",{pos})
-- end,
--})
--end
--if minetest.get_modpath("xpanes") then
--minetest.override_item("xpanes:pane", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "air"})
-- minetest.add_item(pos, "rangedweapons:glass_shards")
-- minetest.sound_play("glass_break",{pos})
-- end,
--})
--minetest.override_item("xpanes:pane_flat", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "air"})
-- minetest.add_item(pos, "rangedweapons:glass_shards")
-- minetest.sound_play("glass_break",{pos})
-- end,
--})
--end
--if minetest.get_modpath("vessels") then
--minetest.override_item("vessels:glass_bottle", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "air"})
-- minetest.add_item(pos, "rangedweapons:glass_shards")
-- minetest.sound_play("glass_break",{pos})
-- end,
-- walkable = true,
-- node_box = {
-- type = "fixed",
-- fixed = {
-- {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
-- },
-- },
--})
--minetest.override_item("vessels:drinking_glass", {
-- on_timer = function(pos)
-- minetest.swap_node(pos, {name = "air"})
-- minetest.add_item(pos, "rangedweapons:glass_shards")
-- minetest.sound_play("glass_break",{pos})
-- end,
-- walkable = true,
-- node_box = {
-- type = "fixed",
-- fixed = {
-- {-0.2, -0.5, -0.2, 0.2, -0.1, 0.2},
-- },
-- },
--})
--end