Initial Commit
This commit is contained in:
parent
fbd31ca023
commit
480ec37ccd
22
README.md
22
README.md
@ -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
2
depends.txt
Normal file
@ -0,0 +1,2 @@
|
||||
default
|
||||
unifieddyes
|
47
init.lua
Normal file
47
init.lua
Normal 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
5
mod.conf
Normal file
@ -0,0 +1,5 @@
|
||||
name = minetest_barchairs
|
||||
description = A mod which adds Barchairs.
|
||||
depends = default, wool, unifieddyes
|
||||
optional_depends =
|
||||
|
2908
models/barchairs_barchair_round_padded.obj
Normal file
2908
models/barchairs_barchair_round_padded.obj
Normal file
File diff suppressed because it is too large
Load Diff
20
recipes.lua
Normal file
20
recipes.lua
Normal 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,
|
||||
})
|
BIN
textures/barchairs_barchair_round_padded_inv.png
Normal file
BIN
textures/barchairs_barchair_round_padded_inv.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 639 B |
Loading…
x
Reference in New Issue
Block a user