Initial Commit

This commit is contained in:
A.C.M 2018-10-11 23:30:02 +02:00
parent fbd31ca023
commit 480ec37ccd
7 changed files with 3002 additions and 2 deletions

View File

@ -1,2 +1,20 @@
# minetest_barchairs
Adds Barchairs to Minetest.
# Barchairs
This Mod adds Barchairs to Minetest.
## Install
Move your Download to the Mods-Folder.
## Depends
default<br>
wool<br>
unifieddyes<br>
### optional
## License
License: GPL 3.0

2
depends.txt Normal file
View File

@ -0,0 +1,2 @@
default
unifieddyes

47
init.lua Normal file
View File

@ -0,0 +1,47 @@
local modpath = minetest.get_modpath(minetest.get_current_modname())
local cbox = {
type = "fixed",
fixed = { -0.3125, -0.5, -0.3125, 0.3125, 0.5, 0.3125 },
}
local nbox = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5 },
{-0.5, -0.5, 0.4, 0.5, 0.5, 0.5 }
}
}
minetest.register_node("barchairs:barchairs_round_padded",
{
description = "Round Barchair padded",
drawtype = "mesh",
mesh = "barchairs_barchair_round_padded.obj",
--mesh = "barchairs_barchair_round_padded.3ds",
tiles = {
"default_wood",
"wool_white.png"
},
inventory_image = "barchairs_barchair_round_padded_inv.png",
parmtype = "light",
paramtype2 = "colorwallmounted",
palette = "unifieddyes_palette_colorwallmounted.png",
sunlight_propagates = true,
--walkable = false,
node_box = nbox,
selection_box = cbox,
collision_box = cbox,
groups = {snappy=2,choppy=2,oddly_breakable_by_hand=2, ud_param2_colorable = 1},
sounds = default.node_sound_wood_defaults(),
after_place_node = function(pos, placer, itemstack, pointed_thing)
unifieddyes.fix_rotation_nsew(pos, placer, itemstack, pointed_thing)
unifieddyes.recolor_on_place(pos, placer, itemstack, pointed_thing)
end,
after_dig_node = unifieddyes.after_dig_node,
on_rotate = unifieddyes.fix_after_screwdriver_nsew,
--on_rightclick = function(pos, node, player, itemstack, pointed_thing)
--end,
})
dofile(modpath .. "/recipes.lua")

5
mod.conf Normal file
View File

@ -0,0 +1,5 @@
name = minetest_barchairs
description = A mod which adds Barchairs.
depends = default, wool, unifieddyes
optional_depends =

File diff suppressed because it is too large Load Diff

20
recipes.lua Normal file
View File

@ -0,0 +1,20 @@
-- Recipes
minetest.register_craft({
output = "barchairs:barchairs_round_padded",
recipe = {
{"","wool:white",""},
{"","default:wood",""},
{"default:stick","","default:stick"},
},
})
-- Fuel-Recipes
minetest.register_craft({
type = "fuel",
recipe = "barchairs:barchairs_round_padded",
burntime = 18,
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 B