-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Artisan Benches modpack: extract
anvil
. Relates to #1798
- Loading branch information
Showing
17 changed files
with
92 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
|
||
|
||
minetest.mod(function(mod) | ||
--require("anvil").init(mod) | ||
require("anvil").init(mod) | ||
|
||
dofile(mod.path .. '/legacy.lua') | ||
end) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
-- @tags: legacy | ||
|
||
minetest.register_alias('castle:anvil', 'anvil:anvil') | ||
minetest.register_alias('lord_artisan_benches:anvil', 'anvil:anvil') | ||
-- DEFAULTS (Ghost blocks) | ||
minetest.register_alias('defaults:castle_anvil', 'defaults:anvil_anvil') | ||
minetest.register_alias('defaults:lord_artisan_benches_anvil', 'defaults:anvil_anvil') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# textdomain: anvil | ||
|
||
Anvil=Anvil |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
# textdomain: anvil | ||
|
||
Anvil=Наковальня |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
local S = minetest.get_mod_translator() | ||
local Form = require('anvil.Form') | ||
|
||
|
||
local px = 1/16 | ||
local node_box = { | ||
type = 'fixed', | ||
fixed = { | ||
-- Подошва | ||
{ -8*px, -8*px, -8*px, -4*px, -5*px, -4*px }, -- ножки подошвы | ||
{ -8*px, -8*px, 8*px, -4*px, -5*px, 4*px }, | ||
{ 8*px, -8*px, 8*px, 4*px, -5*px, 4*px }, | ||
{ 8*px, -8*px, -8*px, 4*px, -5*px, -4*px }, | ||
|
||
{ -7*px, -8*px, -6*px, 7*px, -5*px, 6*px }, -- сердцевины подошвы | ||
{ -5*px, -5*px, -4*px, 5*px, -2*px, 4*px }, | ||
|
||
-- Ножка / шея | ||
{ -3*px, -2*px, -2*px, 3*px, 3*px, 2*px }, | ||
-- Рабочая область (наличник) | ||
{ -5*px, 3*px, -4*px, 5*px, 8*px, 4*px }, | ||
|
||
-- Рог | ||
{ -5*px, 5*px, -2*px, -8*px, 8*px, 2*px }, | ||
|
||
-- Обух с отверстием Харди | ||
{ 7*px, 5*px, -4*px, 8*px, 8*px, 4*px }, | ||
{ 5*px, 5*px, -2*px, 7*px, 6*px, 2*px }, | ||
{ 5*px, 5*px, -4*px, 7*px, 8*px, -2*px }, | ||
{ 5*px, 5*px, 2*px, 7*px, 8*px, 4*px }, | ||
}, | ||
} | ||
|
||
local function register_node() | ||
minetest.register_node('anvil:anvil', { | ||
description = S('Anvil'), | ||
drawtype = 'mesh', | ||
mesh = 'anvil.obj', | ||
tiles = { 'benches_anvil.png' }, | ||
groups = { cracky = 1, falling_node = 1 }, | ||
selection_box = node_box, | ||
collision_box = node_box, | ||
paramtype = 'light', | ||
paramtype2 = 'facedir', | ||
on_rightclick = function(pos, node, clicker, itemstack, pointed_thing) | ||
Form:new(clicker, pos):open() | ||
end | ||
}) | ||
end | ||
|
||
local function register_craft() | ||
minetest.register_craft({ | ||
output = 'anvil:anvil', | ||
recipe = { | ||
{ 'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot' }, | ||
{ '', 'default:steel_ingot', '' }, | ||
{ 'default:steel_ingot', 'default:steel_ingot', 'default:steel_ingot' }, | ||
} | ||
}) | ||
end | ||
|
||
|
||
return { | ||
--- @param mod minetest.Mod | ||
init = function(mod) | ||
minetest.CraftMethod.ANVIL = 'anvil' | ||
minetest.register_craft_method(minetest.CraftMethod.ANVIL) | ||
|
||
Form:register() | ||
|
||
register_node() | ||
register_craft() | ||
end, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../artisan_benches/anvil/Form/Inventory.lua → ...enches/anvil/src/anvil/Form/Inventory.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 0 additions & 63 deletions
63
mods/lord/Blocks/lord_artisan_benches/src/artisan_benches/anvil.lua
This file was deleted.
Oops, something went wrong.