diff --git a/.gitattributes b/.gitattributes index db454d1..eba1110 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,3 +1,2 @@ -@@ -1,2 +0,0 @@ # Auto detect text files and perform LF normalization * text=auto \ No newline at end of file diff --git a/LICENSE b/LICENSE index 3727cce..1844844 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,3 @@ -@@ -1,21 +0,0 @@ MIT License Copyright (c) 2021 danil275487 diff --git a/README.md b/README.md index f430f83..eb093fb 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ -@@ -1,2 +0,0 @@ # minecraftnt A attempt to recreate Minecraft Alpha 1.0.0 (inf-20100630-2) into Minetest. \ No newline at end of file diff --git a/mods/minecraft/blocks.lua b/mods/minecraft/blocks.lua new file mode 100644 index 0000000..372f0ff --- /dev/null +++ b/mods/minecraft/blocks.lua @@ -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}, +}) \ No newline at end of file