minetest-mod-nssw/blocks/antigun_block.lua

9 lines
488 B
Lua
Raw Normal View History

2022-01-30 19:26:42 -08:00
local modpath = minetest.get_modpath(minetest.get_current_modname())
2022-01-30 16:14:18 -08:00
minetest.register_node("rangedweapons:antigun_block", {
description = core.colorize(ranged_weapons.colors.title_color, "Anti-gun block\n") .. core.colorize(ranged_weapons.colors.white, "Prevents people from using guns, in 10 node radius to each side from this block"),
2022-01-30 19:26:42 -08:00
tiles = {"rangedweapons_antigun_block.png"},
2022-01-30 16:14:18 -08:00
groups = {choppy = 3, oddly_breakable_by_hand = 3},
sounds = default.node_sound_wood_defaults(),
})