h
master
danil275487 2021-04-03 23:40:40 +03:00
parent d947460b18
commit a877cae341
4 changed files with 324 additions and 3 deletions

1
.gitattributes vendored
View File

@ -1,3 +1,2 @@
@@ -1,2 +0,0 @@
# Auto detect text files and perform LF normalization
* text=auto

View File

@ -1,4 +1,3 @@
@@ -1,21 +0,0 @@
MIT License
Copyright (c) 2021 danil275487

View File

@ -1,3 +1,2 @@
@@ -1,2 +0,0 @@
# minecraftnt
A attempt to recreate Minecraft Alpha 1.0.0 (inf-20100630-2) into Minetest.

324
mods/minecraft/blocks.lua Normal file
View File

@ -0,0 +1,324 @@
minetest.register_node("minecraft:stone", {
description = "Stone",
tiles = {"terrain.png^[sheet:16x16:1,0"},
groups = {cracky=3},
})
minetest.register_node("minecraft:grass", {
description = "Grass",
drop = "minecraft:dirt",
tiles ={"terrain.png^[sheet:16x16:0,0", "terrain.png^[sheet:16x16:2,0",
{name = "terrain.png^[sheet:16x16:3,0",
tileable_vertical = false}},
groups = {crumbly=3, soil=1},
})
minetest.register_node("minecraft:dirt", {
description = "Dirt",
tiles ={"terrain.png^[sheet:16x16:2,0"},
groups = {crumbly=3, soil=1},
})
minetest.register_node("minecraft:oak", {
description = "Oak Log",
tiles = {"terrain.png^[sheet:16x16:5,1", "terrain.png^[sheet:16x16:5,1", "terrain.png^[sheet:16x16:4,1"},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("minecraft:leaves", {
description = "Oak Leaves",
drop = "",
drawtype = "allfaces_optional",
tiles = {"terrain.png^[sheet:16x16:4,3"},
paramtype = "light",
is_ground_content = false,
groups = {snappy=1,oddly_breakable_by_hand=3},
})
minetest.register_node("minecraft:plank", {
description = "Planks",
tiles = {"terrain.png^[sheet:16x16:4,0"},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("minecraft:glass", {
description = "Glass",
drawtype = "glasslike",
drop = "",
tiles = {"terrain.png^[sheet:16x16:1,3"},
paramtype = "light",
is_ground_content = false,
sunlight_propagates = true,
groups = {cracky=3,oddly_breakable_by_hand=3},
})
minetest.register_node("minecraft:sand", {
description = "Sand",
tiles ={"terrain.png^[sheet:16x16:2,1"},
groups = {falling_node=1,crumbly=3},
})
minetest.register_node("minecraft:gravel", {
description = "Gravel",
tiles ={"terrain.png^[sheet:16x16:3,1"},
groups = {falling_node=1,crumbly=3},
})
minetest.register_node("minecraft:cobble", {
description = "Cobblestone",
tiles ={"terrain.png^[sheet:16x16:0,1"},
is_ground_content = false,
groups = {cracky=3},
})
minetest.register_node("minecraft:mossycobble", {
description = "Mossy Cobblestone",
tiles ={"terrain.png^[sheet:16x16:4,2"},
is_ground_content = false,
groups = {cracky=3},
})
minetest.register_node("minecraft:bedrock", {
description = "Bedrock",
tiles ={"terrain.png^[sheet:16x16:1,1"},
is_ground_content = false,
groups = {unbreakable=1},
})
minetest.register_node("minecraft:bricks", {
description = "Bricks",
tiles ={"terrain.png^[sheet:16x16:7,0"},
is_ground_content = false,
groups = {cracky=3},
})
minetest.register_node("minecraft:bookshelf", {
description = "Bookshelf",
tiles = {"terrain.png^[sheet:16x16:4,0", "terrain.png^[sheet:16x16:4,0", "terrain.png^[sheet:16x16:3,2"},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("minecraft:coal_ore", {
description = "Coal Ore",
tiles = {"terrain.png^[sheet:16x16:2,2"},
groups = {cracky = 3},
})
minetest.register_node("minecraft:iron_ore", {
description = "Iron Ore",
tiles = {"terrain.png^[sheet:16x16:1,2"},
groups = {cracky=2,level=1},
})
minetest.register_node("minecraft:gold_ore", {
description = "Gold Ore",
tiles = {"terrain.png^[sheet:16x16:0,2"},
groups = {cracky=2,level=1},
})
minetest.register_node("minecraft:diamond_ore", {
description = "Diamond Ore",
tiles = {"terrain.png^[sheet:16x16:2,3"},
groups = {cracky=1,level=2},
})
minetest.register_node("minecraft:plank_stairs", {
description = "Planks Stairs",
tiles = {"terrain.png^[sheet:16x16:4,0"},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, -- NodeBox1
{-0.5, -0.5, 0, 0.5, 0.5, 0.5}, -- NodeBox2
}
}
})
minetest.register_node("minecraft:cobble_stairs", {
description = "Cobblestone Stairs",
tiles ={"terrain.png^[sheet:16x16:0,1"},
is_ground_content = false,
groups = {cracky=3},
drawtype = "nodebox",
paramtype = "light",
paramtype2 = "facedir",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, -- NodeBox1
{-0.5, -0.5, 0, 0.5, 0.5, 0.5}, -- NodeBox2
}
}
})
minetest.register_node("minecraft:plank_slab", {
description = "Planks Slab",
tiles = {"terrain.png^[sheet:16x16:4,0"},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, -- NodeBox1
}
}
})
minetest.register_node("minecraft:cobble_slab", {
description = "Cobblestone Slab",
tiles ={"terrain.png^[sheet:16x16:0,1"},
is_ground_content = false,
groups = {cracky=3},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, -- NodeBox1
}
}
})
minetest.register_node("minecraft:stone_slab", {
description = "Stone Slab",
tiles = {
"terrain.png^[sheet:16x16:6,0", -- y+
"terrain.png^[sheet:16x16:6,0", -- y-
"terrain.png^[sheet:16x16:5,0", -- x+
"terrain.png^[sheet:16x16:5,0", -- x-
"terrain.png^[sheet:16x16:5,0", -- z+
"terrain.png^[sheet:16x16:5,0", -- z-
},
is_ground_content = false,
groups = {cracky=3},
drawtype = "nodebox",
paramtype = "light",
node_box = {
type = "fixed",
fixed = {
{-0.5, -0.5, -0.5, 0.5, 0, 0.5}, -- NodeBox1
}
}
})
minetest.register_node("minecraft:stone_slab_block", {
description = "Stone Slab Block",
tiles = {
"terrain.png^[sheet:16x16:6,0", -- y+
"terrain.png^[sheet:16x16:6,0", -- y-
"terrain.png^[sheet:16x16:5,0", -- x+
"terrain.png^[sheet:16x16:5,0", -- x-
"terrain.png^[sheet:16x16:5,0", -- z+
"terrain.png^[sheet:16x16:5,0", -- z-
},
is_ground_content = false,
groups = {cracky=3},
})
minetest.register_node("minecraft:iron_block", {
description = "Iron Block",
tiles = {
"terrain.png^[sheet:16x16:6,1", -- y+
"terrain.png^[sheet:16x16:6,3", -- y-
"terrain.png^[sheet:16x16:6,2", -- x+
"terrain.png^[sheet:16x16:6,2", -- x-
"terrain.png^[sheet:16x16:6,2", -- z+
"terrain.png^[sheet:16x16:6,2", -- z-
},
groups = {cracky=2,level=1},
})
minetest.register_node("minecraft:gold_block", {
description = "Gold Block",
tiles = {
"terrain.png^[sheet:16x16:7,1", -- y+
"terrain.png^[sheet:16x16:7,3", -- y-
"terrain.png^[sheet:16x16:7,2", -- x+
"terrain.png^[sheet:16x16:7,2", -- x-
"terrain.png^[sheet:16x16:7,2", -- z+
"terrain.png^[sheet:16x16:7,2", -- z-
},
groups = {cracky=2,level=1},
})
minetest.register_node("minecraft:diamond_Block", {
description = "Diamond Block",
tiles = {
"terrain.png^[sheet:16x16:8,1", -- y+
"terrain.png^[sheet:16x16:8,3", -- y-
"terrain.png^[sheet:16x16:8,2", -- x+
"terrain.png^[sheet:16x16:8,2", -- x-
"terrain.png^[sheet:16x16:8,2", -- z+
"terrain.png^[sheet:16x16:8,2", -- z-
},
groups = {cracky=1,level=2},
})
minetest.register_node("minecraft:crafting_table", {
description = "Crafting Table",
tiles = {"terrain.png^[sheet:16x16:11,2",
"terrain.png^[sheet:16x16:4,0",
"terrain.png^[sheet:16x16:11,3",
"terrain.png^[sheet:16x16:11,3",
"terrain.png^[sheet:16x16:12,3",
"terrain.png^[sheet:16x16:12,3",},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("minecraft:chest", {
description = "Chest",
paramtype2 = "facedir",
tiles = {"terrain.png^[sheet:16x16:9,1",
"terrain.png^[sheet:16x16:9,1",
"terrain.png^[sheet:16x16:10,1",
"terrain.png^[sheet:16x16:10,1",
"terrain.png^[sheet:16x16:10,1",
"terrain.png^[sheet:16x16:11,1",},
is_ground_content = false,
groups = {choppy=2,oddly_breakable_by_hand=2},
})
minetest.register_node("minecraft:furnace", {
description = "Furnace",
paramtype2 = "facedir",
tiles = {"terrain.png^[sheet:16x16:1,0",
"terrain.png^[sheet:16x16:1,0",
"terrain.png^[sheet:16x16:13,2",
"terrain.png^[sheet:16x16:13,2",
"terrain.png^[sheet:16x16:13,2",
"terrain.png^[sheet:16x16:12,2",},
is_ground_content = false,
groups = {cracky=3},
})
minetest.register_node("minecraft:lit_furnace", {
description = "Lit Furnace",
paramtype2 = "facedir",
tiles = {"terrain.png^[sheet:16x16:1,0",
"terrain.png^[sheet:16x16:1,0",
"terrain.png^[sheet:16x16:13,2",
"terrain.png^[sheet:16x16:13,2",
"terrain.png^[sheet:16x16:13,2",
"terrain.png^[sheet:16x16:13,3",},
is_ground_content = false,
groups = {cracky=3},
})
minetest.register_node("minecraft:obsidian", {
description = "Obsidian",
tiles = {"terrain.png^[sheet:16x16:5,2"},
groups = {cracky=1, level=3},
})