stupid commit mesages
This commit is contained in:
parent
2435773213
commit
f3c3796b0e
52
nodes.lua
52
nodes.lua
@ -4,58 +4,6 @@
|
|||||||
-- paramtype light adds shadowing instead of making the mesh dark
|
-- paramtype light adds shadowing instead of making the mesh dark
|
||||||
-- parmatype 2 facedir means block faces where you place it
|
-- parmatype 2 facedir means block faces where you place it
|
||||||
|
|
||||||
local barrel_formspec =
|
|
||||||
'size[8, 9]' ..
|
|
||||||
default.gui_bg..
|
|
||||||
default.gui_bg_img..
|
|
||||||
default.gui_slots..
|
|
||||||
'list[current_name;main;0,0.3; 8,4;]'..
|
|
||||||
'list[current_player;main;0,4.85; 8,1;]'..
|
|
||||||
'list[current_player;main;0,6.08; 8,3;8]'..
|
|
||||||
default.get_hotbar_bg(0,4.85)
|
|
||||||
|
|
||||||
minetest.register_node('random_cool_stuff:barrel', {
|
|
||||||
description = 'its a barrel!',
|
|
||||||
drawtype = 'mesh',
|
|
||||||
mesh = 'random_barrel.obj',
|
|
||||||
tiles = {'random_barrel.png'},
|
|
||||||
groups = {choppy = 2, oddly_breakable_by_hand = 2},
|
|
||||||
paramtype = 'light',
|
|
||||||
paramtype2 = 'facedir',
|
|
||||||
sounds = default.node_sound_wood_defaults(),
|
|
||||||
on_construct = function(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
|
||||||
meta:set_string('formspec', barrel_formspec)
|
|
||||||
meta:set_string('infotext', 'Barrel')
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
inv:set_size('main', 8*4)
|
|
||||||
end,
|
|
||||||
|
|
||||||
can_dig = function(player, pos)
|
|
||||||
local meta = minetest.get._meta(pos);
|
|
||||||
local inv = meta:get_inventory()
|
|
||||||
return inv:is_empty('main')
|
|
||||||
end,
|
|
||||||
|
|
||||||
-- all this crap is optional, but why the fuck not waste our time??
|
|
||||||
on_metadata_inventory_move = function(pos, from_list, form_index, to_list, to_index, count, player)
|
|
||||||
minetest.log('action', player:get_player_name()..
|
|
||||||
' moves stuff in barrel at ' ..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
|
|
||||||
on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
|
||||||
minetest.log('action', player:get_player_name()..
|
|
||||||
' moves stuff to barrel at ' ..minetest.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
|
|
||||||
on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
|
||||||
minetest.log('action', player:get_player_name()..
|
|
||||||
' takes stuff from bbarrel at '..minetst.pos_to_string(pos))
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
-- this is the ending of the barrel
|
|
||||||
-- I wrote the above for clarification reasons since I am mentally disabled
|
|
||||||
|
|
||||||
-- the leafy bed!!!
|
-- the leafy bed!!!
|
||||||
minetest.register_node('random_cool_stuff:leafy_bed', {
|
minetest.register_node('random_cool_stuff:leafy_bed', {
|
||||||
description = 'a leaf of beds',
|
description = 'a leaf of beds',
|
||||||
|
@ -7,7 +7,6 @@ cotton, sticks, wool and charcoal for fuel
|
|||||||
charcoal
|
charcoal
|
||||||
Kebab (raw and cooked) (craftable and cookable)
|
Kebab (raw and cooked) (craftable and cookable)
|
||||||
1/20 chance to find gravel when breaking dirt (I think)
|
1/20 chance to find gravel when breaking dirt (I think)
|
||||||
Barrels (very buggy)
|
|
||||||
Cotton with grass
|
Cotton with grass
|
||||||
Admin sword
|
Admin sword
|
||||||
Leafy Bed - (gives you a rash!)
|
Leafy Bed - (gives you a rash!)
|
||||||
@ -18,8 +17,6 @@ salt stuffz
|
|||||||
|
|
||||||
TODO:
|
TODO:
|
||||||
|
|
||||||
Bags (backpacks)
|
|
||||||
Barrels (its realeased but needs some MAJOR debugging!)
|
|
||||||
ADD BAMBOO!!!!! (Bamboo stick/sword is reccomended for training, or whipping your children ]:-)
|
ADD BAMBOO!!!!! (Bamboo stick/sword is reccomended for training, or whipping your children ]:-)
|
||||||
Add (if possible) maple tree
|
Add (if possible) maple tree
|
||||||
Add maple Syrup which you can get by right clicking a tool knife on a tree
|
Add maple Syrup which you can get by right clicking a tool knife on a tree
|
||||||
|
Loading…
x
Reference in New Issue
Block a user