1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2025-06-28 12:56:01 +02:00

Compare commits

...

92 Commits

Author SHA1 Message Date
a11527ed63 Version MFF. 2018-09-07 22:32:38 +02:00
2d0363f3ac add clawfoot tubs
(one with brass handles, one chrome)
2017-02-27 20:16:22 -05:00
0f1b8418a1 lighting: actually get meta before trying to use it :) 2017-02-27 17:02:20 -05:00
f6701bd9cd Merge pull request #359 from frodon1/server_crash
Fix calls to check_player_privs with player name instead of player userdata
2017-02-27 16:54:56 -05:00
d18bee7fa0 Fix calls to check_player_privs with player name instead of player userdata
Fixes #357
2017-02-27 21:56:16 +01:00
c05378f20f require white dye for "light" tiles recipe 2017-02-27 13:51:51 -05:00
d61a990fc9 fix broken bathroom tiles recipes 2017-02-27 13:47:21 -05:00
af41f549a7 fix missing tar alias
(if moreblocks is installed)
2017-02-27 11:27:57 -05:00
c1eda2246a convert lavalamps to UD extended palette 2017-02-25 02:11:47 -05:00
0de4732f43 set meta "ext" flag when converting old nodes 2017-02-25 01:02:51 -05:00
bc9192a847 remove a debug print 2017-02-24 21:57:13 -05:00
1ef6e9b69f do the same for the old static->param2 LBM 2017-02-24 21:27:22 -05:00
efbc491245 use new Unified Dyes "extended" palette
for bathroom tiles, table lamps, and standing lamps
requires unified dyes commit d2819353 or newer
2017-02-24 20:14:21 -05:00
8e6fa4cdff actually get some benefit from the consumed beer :P 2017-02-24 09:51:46 -05:00
2c921c03cd HUEG BOX 2017-02-24 03:05:01 -03:00
43f7056142 building_blocks: if moreblocks is installed, un-register the tar therein
and replace it with the building_blocks version.  Depends on moreblocks
pull request #70
2017-02-23 11:13:48 -05:00
f6173b036c Remove dead code. 2017-02-22 22:49:03 -03:00
8d9ea61b13 Add new used globals to .luacheckrc. 2017-02-22 22:48:45 -03:00
f7ccf20410 fix rotation of top/bottom textures of open gates 2017-02-22 18:55:05 -05:00
0ff3013895 add white and plain wood "half doors" (registred as gates) 2017-02-22 18:51:07 -05:00
f4144817e2 fix a similar crash possibility in itemframes:frame 2017-02-22 17:48:11 -05:00
0eee5f4959 it's possible for the player to be nil
in can_dig (e.g. if it's a technic quarry or something)
2017-02-22 17:28:48 -05:00
e8981367d6 when consuming beer, return the empty glass
(drop the glass on the ground, if necessary)
2017-02-22 17:28:13 -05:00
2c034ebba0 reduce visual scale of sofas 2017-02-22 16:48:38 -05:00
06342cbd86 make sofas and coffee table place with long axis left-to-right
(e.g. front of sofa faces you)
2017-02-22 16:43:39 -05:00
f32fdad4ff reduce README to just a stub (use the forum thread instead) 2017-02-22 14:59:54 -05:00
3ea7d5d84e don't deduct sofas from inventory in creative mode 2017-02-22 14:57:52 -05:00
cf44a85684 increase yield of tar recipes (2 -> 4) 2017-02-22 13:44:45 -05:00
96d0084109 plain wooden kitchen chair is not supposed to be colorable 2017-02-21 11:28:43 -05:00
f09481c3f0 switch over all punch-operated objects
to use on_rightclick instead, for consistency with other parts of minetest,
minetest_game, etc.
2017-02-20 18:30:59 -05:00
8ea285e683 fix rotation of sofas.... properly. :P 2017-02-20 16:39:44 -05:00
16ee0417e8 more tweaks to README 2017-02-20 12:13:52 -05:00
09078726da fix signs_lib comment in readme 2017-02-20 02:26:17 -05:00
18d2e492af use unified dyes' on_rotate handler for some nodes 2017-02-18 13:01:49 -05:00
6c0dd2d31a use unified dyes' rotation correction functions 2017-02-17 23:07:25 -05:00
e9477dd45d don't run LBM at every load 2017-02-16 16:59:19 -05:00
634b89c4c6 Fix missing warnings. 2017-02-16 02:11:22 -03:00
2df6dbcad9 Fix warnings issued by luacheck. 2017-02-15 23:53:52 -03:00
c8fa17801b Translate missing string. 2017-02-12 04:08:31 -03:00
8547b9b498 Update catalogs. 2017-02-11 04:30:13 -03:00
9e2ebe373a Add missing translations. 2017-02-11 04:29:37 -03:00
dafc731078 fix crash from bad "pink" translation reference 2017-02-09 09:44:44 -05:00
7d3b2f921e perform the after-place-fix-rotation at the end of on_place 2017-02-07 00:17:06 -05:00
f29e2fc698 remove debug prints 2017-02-06 09:34:21 -05:00
a599b041d4 convert books to param2 colorization
requires unified dyes commit b0ccff16 or later
2017-02-06 09:31:31 -05:00
846fe60be7 fix wrong texture ref on "medium" tiles 2017-02-06 07:54:40 -05:00
51341671c7 remove debug print 2017-02-06 07:49:57 -05:00
b3538e3941 convert bathroom tiles to param2 color
side effect:

I added a third shade of the formerly-white checker background
that alternates with the colored overlay.  The colored overlay
follows the standard full Unified Dyes palette.
2017-02-06 07:40:46 -05:00
a493933105 unified dyes uses on_use now, instead of on_rightclick 2017-02-04 19:41:36 -05:00
13059eb3a2 fix table recipe 2017-02-04 13:41:21 -05:00
36dc31416e fix bed recipe 2017-02-03 14:21:26 -05:00
fe92fdc373 Minor fixes to inbox.
* Don't trigger global variable warning.
* Change form name to avoid possible bugs in the future.
* Actually (opt-)depend on screwdriver mod.
2017-02-03 00:27:02 -03:00
2ce071ec16 fix crash in stack_sideways (typo) 2017-02-02 10:25:29 -05:00
5f264bc484 local-ize a variable 2017-02-01 11:55:17 -05:00
cad8a378c3 fix crash 2017-02-01 11:51:12 -05:00
1fabeb3975 rename and re-decribe desk lamp LBM 2017-02-01 08:50:03 -05:00
c683874904 revised crafting recipe for desk lamp 2017-01-31 19:08:21 -05:00
5dd5d3a14b convert desk lamps to param2 colorization 2017-01-31 19:01:47 -05:00
3969f1a198 disable sleeping due to crashing inside minetest_game 2017-01-31 11:53:40 -05:00
7623b39a33 fix crash in door placement (copy&paste error) 2017-01-31 11:52:11 -05:00
f6aa12aef9 convert beds to param2 colorization
as a side effect, this also fixes the bug where you couldn't
stack beds to form "bunk" beds.

Place a bed, right-click it with dye to color it.

Place two beds side by side and they'll form a king-size bed, which
you can right right-click with dye to color.

Place a regular bed, then right-click it while wielding another
regular bed (i.e. as if you were trying to place it) and, if there
is room above the first bed, the second will be placed on top and
the bedposts on the bottom one will extend to reach it.  Color
either of the two by right-clicking with dye.

Shift-right-click forces placement of a regular bed without trying
to stack it into bunks.

Right-click while NOT wielding a bed or dye will attempt to let you
sleep (via default beds code).
2017-01-30 23:22:47 -05:00
70ba7db599 convert shutters to param2 colorization
craft and place an oak shutter first, then right-click it with
dye to color it.  dig to get back the oak + dye.
2017-01-30 20:43:40 -05:00
1ec16b5b53 add paramtype="light" to curtains 2017-01-30 19:59:35 -05:00
1d41b5ee18 remove old paper-based table lamp recipes, fix broken ones,
added recipe that uses cottages:wool, to complement the one that uses
default white wool.
2017-01-30 19:59:35 -05:00
dd0e26d95b use param2 colorization for homedecor kitchen chairs and armchairs
Note that the all-wood kitchen chair cannot be colored.
2017-01-30 19:59:35 -05:00
ac9927d035 I18N fixes.
* Make xgettext not output line numbers
* Remove line numbers from existing catalogs.
* Re-add missing localizations.
2017-01-30 21:40:42 -03:00
6cadc7cf26 convert lrfurn to use param2 colorization
To maximize the palette, this uses the colorwallmounted param2 style,
which necessitated modifying the models to make wallmounted look like
normal facedir.  This means couches and chairs can now only ever be
placed upright, facing one of N/S/E/W like a couch or chair normally
would, but since the screwdriver was already disabled, it was basically
impossible to rotate them to any other orientation anyway.

Since this is colorwallmounted, it uses the 32-color abridged Unified Dyes
palette.
2017-01-30 17:10:01 -05:00
3e585ec482 Add a few missing translations. 2017-01-29 23:49:09 -03:00
c806807171 Update translations. 2017-01-29 21:57:37 -03:00
27e1175fb0 Add missing translations. 2017-01-29 21:57:15 -03:00
dc7b60c11f Split I18N stuff into its own submod. 2017-01-29 21:51:07 -03:00
010c07f23a Update pt.po 2017-01-29 14:17:00 -03:00
cb48bfec98 Convert old translations to new format. 2017-01-29 14:17:00 -03:00
4ae16c294e always pass pointed_thing along to on_rightclick 2017-01-29 12:15:14 -05:00
e97cefa94c homedecor depends on unifieddyes 2017-01-29 11:48:06 -05:00
f96f8ac86b lavalamp depends on unifieddyes 2017-01-29 11:44:47 -05:00
0e68696566 remove debug prints
localized a misc. variable
2017-01-29 04:36:39 -05:00
59ae86ec0f convert lavalamps to use param2 coloring
Side effect:  Now all of Unified Dyes' colors can be applied.
2017-01-29 04:32:26 -05:00
89e3353c5b more contrast on glowlight slab top 2017-01-29 03:53:20 -05:00
722c1c6f89 fix wrong nodenames in on_rightclick replace code 2017-01-29 03:50:22 -05:00
175724d53c add a function to correct for broken placement rotation
for wallmounted nodes (engine or _game bug), and put it
to use.
2017-01-29 03:45:58 -05:00
79e501394a fix missing 6dfacedir -> wallmounted
in LBM code for glowlights
2017-01-29 03:31:02 -05:00
800d9017dd convert glowlights, table lamps, and standing lamps
to use param2-base coloring.

Reworked crafting as needed to account for the node names.
2017-01-29 01:21:51 -05:00
1ce7d2b24d removed obsolete glowlight ABMs 2017-01-28 22:11:18 -05:00
428729a43d fix curtain recipes
add support for cottages:wool therein
2017-01-28 22:02:37 -05:00
4ef2f83f07 remove some debug statements 2017-01-28 21:57:48 -05:00
b9307f11ad Convert curtains to param2 coloring. 2017-01-28 21:51:29 -05:00
d35ebe8c00 fix colores of white and black sofas 2017-01-26 09:44:00 -05:00
dc903b16c8 fixed a few missed "black metal" -> static color lines 2017-01-25 17:53:45 -05:00
4598cdca56 fix z-fighting on window shutters 2017-01-25 05:51:59 -05:00
81db7f2c00 fix water in "open toilet" model
(flipped normals)
2017-01-25 05:47:02 -05:00
73545c89af Use texture colorization where possible
Uses "color = <foo>" in the tile image def instead
of compositing with ^[colorize or ^[brighten.  Saves RAM.
2017-01-25 04:22:28 -05:00
987 changed files with 2361 additions and 3239 deletions

0
.gitignore vendored Normal file → Executable file
View File

View File

@ -1,23 +0,0 @@
unused_args = false
allow_defined_top = true
read_globals = {
"DIR_DELIM",
"minetest", "core",
"dump",
"vector", "nodeupdate",
"VoxelManip", "VoxelArea",
"PseudoRandom", "ItemStack",
"intllib",
"default",
"stairsplus",
"signs_lib",
"beds",
"technic",
"mesecon",
}
globals = {
"armor",
}

0
LICENSE Normal file → Executable file
View File

0
README Normal file → Executable file
View File

View File

@ -1,19 +0,0 @@
{
"name": "homedecor_modpack",
"description": "This mod adds a whole bunch of new items to Minetest suitable for decorating inside and outside a home.",
"keywords": [
"building",
"cosmetic",
"homedecor modpack",
"homedecor_modpack"
],
"homepage": "http://daconcepts.com/vanessa/hobbies/minetest/homedecor-crafting-guide/homedecor-craft-guide.html",
"project": "https://github.com/minetest-mods/homedecor_modpack",
"forum": "http://forum.minetest.net/viewtopic.php?f=11&t=2041",
"screenshots": [
"http://daconcepts.com/vanessa/hobbies/minetest/screenshots/homedecor1.png"
],
"authors": [
"VanessaE"
]
}

0
building_blocks/depends.txt Normal file → Executable file
View File

16
building_blocks/init.lua Normal file → Executable file
View File

@ -113,10 +113,12 @@ else
end
minetest.register_craft({
output = 'default:stick 4',
output = 'building_blocks:sticks',
recipe = {
{'building_blocks:sticks'},
}
{'group:stick', '', 'group:stick'},
{'', 'group:stick', ''},
{'group:stick', '', 'group:stick'},
} -- MODIFICATION MADE FOR MFF ^
})
minetest.register_craft({
@ -518,14 +520,14 @@ minetest.register_craftitem("building_blocks:tar_base", {
})
--Tar
minetest.register_craft({
--[[minetest.register_craft({
output = 'building_blocks:knife 1',
recipe = {
{"group:tar_block"},
{"group:stick"},
}
})
--]] -- Modif MFF, remove this useless tool
minetest.register_alias("tar", "building_blocks:Tar")
minetest.register_alias("fakegrass", "building_blocks:fakegrass")
minetest.register_alias("tar_knife", "building_blocks:knife")
@ -573,8 +575,8 @@ minetest.register_tool("building_blocks:knife", {
tool_capabilities = {
max_drop_level=0,
groupcaps={
choppy={times={[2]=7.50, [3]=2.80}, uses=100, maxlevel=1},
fleshy={times={[2]=5.50, [3]=2.80}, uses=100, maxlevel=1}
choppy={times={[2]=7.50, [3]=2.80}, uses = 100, maxlevel=1},
fleshy={times={[2]=5.50, [3]=2.80}, uses = 100, maxlevel=1}
}
},
})

0
building_blocks/textures/building_blocks_Adobe.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 260 B

After

Width:  |  Height:  |  Size: 260 B

0
building_blocks/textures/building_blocks_BWtile.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 568 B

After

Width:  |  Height:  |  Size: 568 B

0
building_blocks/textures/building_blocks_Roofing.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 324 B

After

Width:  |  Height:  |  Size: 324 B

0
building_blocks/textures/building_blocks_brobble.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 381 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 8.6 KiB

BIN
building_blocks/textures/building_blocks_bwtile_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

0
building_blocks/textures/building_blocks_cast_iron.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 195 B

After

Width:  |  Height:  |  Size: 195 B

View File

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 261 B

0
building_blocks/textures/building_blocks_grate.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 581 B

After

Width:  |  Height:  |  Size: 581 B

0
building_blocks/textures/building_blocks_grate2.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 302 B

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

0
building_blocks/textures/building_blocks_hardwood.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 286 B

After

Width:  |  Height:  |  Size: 286 B

0
building_blocks/textures/building_blocks_knife.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 177 B

After

Width:  |  Height:  |  Size: 177 B

0
building_blocks/textures/building_blocks_marble.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 499 B

After

Width:  |  Height:  |  Size: 499 B

0
building_blocks/textures/building_blocks_sglass.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 280 B

After

Width:  |  Height:  |  Size: 280 B

0
building_blocks/textures/building_blocks_sticks.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 261 B

After

Width:  |  Height:  |  Size: 261 B

0
building_blocks/textures/building_blocks_tar.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 222 B

After

Width:  |  Height:  |  Size: 222 B

0
building_blocks/textures/building_blocks_tar_base.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
building_blocks/textures/building_blocks_towel.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 409 B

BIN
building_blocks/textures/building_blocks_towel_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

0
building_blocks/textures/building_blocks_wglass.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 502 B

After

Width:  |  Height:  |  Size: 502 B

0
building_blocks/textures/technic_granite.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 766 B

After

Width:  |  Height:  |  Size: 766 B

0
chains/depends.txt Normal file → Executable file
View File

0
chains/init.lua Normal file → Executable file
View File

0
chains/models/chains.obj Normal file → Executable file
View File

0
chains/models/chains_chandelier.obj Normal file → Executable file
View File

0
chains/models/top_chains.obj Normal file → Executable file
View File

0
chains/textures/chain_brass_inv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

BIN
chains/textures/chain_wrought_iron_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

0
chains/textures/chains_brass.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

0
chains/textures/chains_candle.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 390 B

After

Width:  |  Height:  |  Size: 390 B

BIN
chains/textures/chains_candle_flame.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

0
chains/textures/chains_wrought_iron.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 386 B

After

Width:  |  Height:  |  Size: 386 B

BIN
chains/textures/top_chain_brass_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
chains/textures/top_chain_wrought_iron_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
computer/CHANGES.txt Normal file → Executable file
View File

0
computer/README.txt Normal file → Executable file
View File

0
computer/TODO.txt Normal file → Executable file
View File

10
computer/computers.lua Normal file → Executable file
View File

@ -29,7 +29,6 @@ minetest.register_node("computer:vanio", {
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:vanio_off"
minetest.set_node(pos, node)
return itemstack
end
})
@ -49,7 +48,6 @@ minetest.register_node("computer:vanio_off", {
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:vanio"
minetest.set_node(pos, node)
return itemstack
end
})
@ -170,7 +168,6 @@ minetest.register_node("computer:monitor", {
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:monitor_on"
minetest.set_node(pos, node)
return itemstack
end
})
@ -189,7 +186,6 @@ minetest.register_node("computer:monitor_on", {
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:monitor"
minetest.set_node(pos, node)
return itemstack
end
})
@ -298,13 +294,12 @@ minetest.register_node("computer:server", {
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:server_on"
minetest.set_node(pos, node)
return itemstack
end,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then
minetest.chat_send_player( placer:get_player_name(), "Not enough vertical space to place a server!" )
return itemstack
return
end
return minetest.item_place(itemstack, placer, pointed_thing)
end
@ -316,8 +311,8 @@ minetest.register_node("computer:server_on", {
tiles = {
'computer_server_t.png',
'computer_server_bt.png',
'computer_server_l.png',
'computer_server_r.png',
'computer_server_l.png',
'computer_server_bt.png',
'computer_server_f_on.png',
},
@ -338,6 +333,5 @@ minetest.register_node("computer:server_on", {
on_rightclick = function(pos, node, clicker, itemstack)
node.name = "computer:server"
minetest.set_node(pos, node)
return itemstack
end
})

0
computer/depends.txt Normal file → Executable file
View File

43
computer/init.lua Normal file → Executable file
View File

@ -2,18 +2,19 @@ computer = {}
screwdriver = screwdriver or {}
computer.register = function (name, def)
local nodename = name
if (name:sub(1, 1) == ":") then name = name:sub(2) end
local modname, basename = name:match("^([^:]+):(.*)")
local TEXPFX = modname.."_"..basename.."_"
local ONSTATE = modname..":"..basename
local OFFSTATE = modname..":"..basename.."_off"
local cdef = table.copy(def)
local def = def
minetest.register_node(ONSTATE, {
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
description = cdef.description,
inventory_image = cdef.inventory_image,
description = def.description,
inventory_image = def.inventory_image,
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2},
tiles = {
TEXPFX.."tp.png",
@ -23,15 +24,14 @@ computer.register = function (name, def)
TEXPFX.."bk.png",
TEXPFX.."ft.png"
},
node_box = cdef.node_box,
selection_box = cdef.node_box,
node_box = def.node_box,
selection_box = def.node_box,
on_rightclick = function (pos, node, clicker, itemstack)
if cdef.on_turn_off and cdef.on_turn_off(pos, node, clicker, itemstack) then
return itemstack
if (def.on_turn_off) then
if (def.on_turn_off(pos, node, clicker, itemstack)) then return end
end
node.name = OFFSTATE
minetest.set_node(pos, node)
return itemstack
end
})
minetest.register_node(OFFSTATE, {
@ -40,32 +40,34 @@ computer.register = function (name, def)
paramtype2 = "facedir",
groups = {snappy=2, choppy=2, oddly_breakable_by_hand=2, not_in_creative_inventory=1},
tiles = {
(TEXPFX.."tp"..(cdef.tiles_off.top and "_off" or "")..".png"),
(TEXPFX.."bt"..(cdef.tiles_off.bottom and "_off" or "")..".png"),
(TEXPFX.."rt"..(cdef.tiles_off.right and "_off" or "")..".png"),
(TEXPFX.."lt"..(cdef.tiles_off.left and "_off" or "")..".png"),
(TEXPFX.."bk"..(cdef.tiles_off.back and "_off" or "")..".png"),
(TEXPFX.."ft"..(cdef.tiles_off.front and "_off" or "")..".png")
(TEXPFX.."tp"..(def.tiles_off.top and "_off" or "")..".png"),
(TEXPFX.."bt"..(def.tiles_off.bottom and "_off" or "")..".png"),
(TEXPFX.."rt"..(def.tiles_off.right and "_off" or "")..".png"),
(TEXPFX.."lt"..(def.tiles_off.left and "_off" or "")..".png"),
(TEXPFX.."bk"..(def.tiles_off.back and "_off" or "")..".png"),
(TEXPFX.."ft"..(def.tiles_off.front and "_off" or "")..".png")
},
node_box = cdef.node_box_off or cdef.node_box,
selection_box = cdef.node_box_off or cdef.node_box,
node_box = def.node_box_off or def.node_box,
selection_box = def.node_box_off or def.node_box,
on_rightclick = function (pos, node, clicker, itemstack)
if cdef.on_turn_on and cdef.on_turn_on(pos, node, clicker, itemstack) then
return itemstack
if (def.on_turn_on) then
if (def.on_turn_on(pos, node, clicker, itemstack)) then return end
end
node.name = ONSTATE
minetest.set_node(pos, node)
return itemstack
end,
drop = ONSTATE
})
end
computer.register_handheld = function (name, def)
local nodename = name
if (name:sub(1, 1) == ":") then name = name:sub(2) end
local modname, basename = name:match("^([^:]+):(.*)")
local TEXPFX = modname.."_"..basename.."_inv"
local ONSTATE = modname..":"..basename
local OFFSTATE = modname..":"..basename.."_off"
local on_use = def.on_use
minetest.register_craftitem(ONSTATE, {
description = def.description,
inventory_image = TEXPFX..".png",
@ -75,7 +77,8 @@ end
computer.pixelnodebox = function (size, boxes)
local fixed = { }
for _, box in ipairs(boxes) do
local i, box
for i, box in ipairs(boxes) do
local x, y, z, w, h, l = unpack(box)
fixed[#fixed + 1] = {
(x / size) - 0.5,

0
computer/locale/es.txt Normal file → Executable file
View File

0
computer/miscitems.lua Normal file → Executable file
View File

0
computer/models/computer_laptop.obj Normal file → Executable file
View File

0
computer/models/computer_laptop_closed.obj Normal file → Executable file
View File

0
computer/models/computer_monitor.obj Normal file → Executable file
View File

0
computer/models/computer_tower.obj Normal file → Executable file
View File

0
computer/models/tetris_arcade.obj Normal file → Executable file
View File

0
computer/recipes.lua Normal file → Executable file
View File

11
computer/tetris.lua Normal file → Executable file
View File

@ -71,7 +71,7 @@ local function step(pos, fields)
local meta = minetest.get_meta(pos)
local t = minetest.deserialize(meta:get_string("tetris"))
local function new_game(p)
local function new_game(pos)
local nex = math.random(7)
t = {
@ -84,7 +84,7 @@ local function step(pos, fields)
x=4, y=0, rot=1
}
local timer = minetest.get_node_timer(p)
local timer = minetest.get_node_timer(pos)
timer:set(0.3, 0)
end
@ -270,14 +270,9 @@ minetest.register_node("computer:tetris_arcade", {
end,
on_place = function(itemstack, placer, pointed_thing)
local pos = pointed_thing.above
if minetest.is_protected(pos, placer:get_player_name()) or
minetest.is_protected({x=pos.x, y=pos.y+1, z=pos.z}, placer:get_player_name()) then
return itemstack
end
if minetest.get_node({x=pos.x, y=pos.y+1, z=pos.z}).name ~= "air" then
minetest.chat_send_player(placer:get_player_name(), "No room for place the Arcade!")
return itemstack
end
return end
local dir = placer:get_look_dir()
local node = {name="computer:tetris_arcade", param1=0, param2 = minetest.dir_to_facedir(dir)}
minetest.set_node(pos, node)

BIN
computer/textures/computer_ad128_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
computer/textures/computer_ad64_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
computer/textures/computer_admiral128_bk.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 115 B

BIN
computer/textures/computer_admiral128_bt.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 115 B

0
computer/textures/computer_admiral128_ft.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
computer/textures/computer_admiral128_lt.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 117 B

BIN
computer/textures/computer_admiral128_rt.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 117 B

BIN
computer/textures/computer_admiral128_tp.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 483 B

After

Width:  |  Height:  |  Size: 247 B

BIN
computer/textures/computer_admiral64_bk.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

After

Width:  |  Height:  |  Size: 123 B

BIN
computer/textures/computer_admiral64_bt.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 313 B

After

Width:  |  Height:  |  Size: 115 B

BIN
computer/textures/computer_admiral64_ft.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 415 B

After

Width:  |  Height:  |  Size: 212 B

BIN
computer/textures/computer_admiral64_lt.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 133 B

BIN
computer/textures/computer_admiral64_rt.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 117 B

BIN
computer/textures/computer_admiral64_tp.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 461 B

After

Width:  |  Height:  |  Size: 236 B

0
computer/textures/computer_black.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 82 B

After

Width:  |  Height:  |  Size: 82 B

BIN
computer/textures/computer_blue.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 113 B

0
computer/textures/computer_computer_front_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 122 B

After

Width:  |  Height:  |  Size: 122 B

0
computer/textures/computer_computer_top_old.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 129 B

After

Width:  |  Height:  |  Size: 129 B

BIN
computer/textures/computer_cyan.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 113 B

BIN
computer/textures/computer_green.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 113 B

BIN
computer/textures/computer_laptop.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.5 KiB

After

Width:  |  Height:  |  Size: 8.4 KiB

BIN
computer/textures/computer_laptop_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
computer/textures/computer_magenta.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 113 B

BIN
computer/textures/computer_monitor_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

BIN
computer/textures/computer_orange.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 113 B

0
computer/textures/computer_piepad_inv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 207 B

After

Width:  |  Height:  |  Size: 207 B

0
computer/textures/computer_piepad_inv_off.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 136 B

After

Width:  |  Height:  |  Size: 136 B

0
computer/textures/computer_printer_b.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 170 B

After

Width:  |  Height:  |  Size: 170 B

0
computer/textures/computer_printer_bt.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 154 B

0
computer/textures/computer_printer_f.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

0
computer/textures/computer_printer_inv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

0
computer/textures/computer_printer_l.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 183 B

After

Width:  |  Height:  |  Size: 183 B

0
computer/textures/computer_printer_r.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 182 B

0
computer/textures/computer_printer_t.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 204 B

After

Width:  |  Height:  |  Size: 204 B

BIN
computer/textures/computer_ps1_inv.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

0
computer/textures/computer_ps2_inv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
computer/textures/computer_red.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 114 B

After

Width:  |  Height:  |  Size: 113 B

0
computer/textures/computer_router_b.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 289 B

After

Width:  |  Height:  |  Size: 289 B

0
computer/textures/computer_router_bt.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 154 B

After

Width:  |  Height:  |  Size: 154 B

BIN
computer/textures/computer_router_f.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 284 B

BIN
computer/textures/computer_router_f_animated.png Normal file → Executable file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 6.0 KiB

0
computer/textures/computer_router_inv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Some files were not shown because too many files have changed in this diff Show More