forked from minetest-mods/quartz
		
	Compare commits
	
		
			8 Commits
		
	
	
		
			nalc-1.0
			...
			f7a7a9988c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| f7a7a9988c | |||
| 
						 | 
					7b5d74cfdf | ||
| ee4467b5cb | |||
| 
						 | 
					cdda5c8a03 | ||
| 
						 | 
					0fc7dd0d0d | ||
| 
						 | 
					fcb319631f | ||
| 
						 | 
					8b83145c6c | ||
| 
						 | 
					8c60a1f77d | 
@@ -12,9 +12,10 @@ License: MIT (see LICENSE.txt)
 | 
			
		||||
Dependencies:
 | 
			
		||||
default (found in minetest_game)
 | 
			
		||||
stairs (found in minetest_game)
 | 
			
		||||
moreblocks (optional, for stairsplus support)
 | 
			
		||||
intllib (optional, for translations)
 | 
			
		||||
moreblocks or stairsplus (optional, for stairsplus support)
 | 
			
		||||
 | 
			
		||||
Please report bugs at the github issue tracker:
 | 
			
		||||
Please report bugs at the GitHub issue tracker:
 | 
			
		||||
https://github.com/minetest-mods/quartz/issues/
 | 
			
		||||
 | 
			
		||||
Crafting:
 | 
			
		||||
@@ -80,3 +81,6 @@ x|x|x
 | 
			
		||||
x|c|x
 | 
			
		||||
-----
 | 
			
		||||
x|x|x
 | 
			
		||||
 | 
			
		||||
If you have stairsplus (or moreblocks) installed, you will be able to use
 | 
			
		||||
circular saws to cut quartz blocks.
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,5 @@
 | 
			
		||||
default
 | 
			
		||||
stairs
 | 
			
		||||
intllib?
 | 
			
		||||
moreblocks?
 | 
			
		||||
intllib?
 | 
			
		||||
stairsplus?
 | 
			
		||||
 
 | 
			
		||||
@@ -1 +1 @@
 | 
			
		||||
Adds quartz ore and some decorative quartz blocks
 | 
			
		||||
Adds quartz ore and some decorative quartz blocks.
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										35
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										35
									
								
								init.lua
									
									
									
									
									
								
							@@ -62,7 +62,8 @@ minetest.register_node("quartz:chiseled", {
 | 
			
		||||
minetest.register_node("quartz:pillar", {
 | 
			
		||||
	description = S("Quartz Pillar"),
 | 
			
		||||
	paramtype2 = "facedir",
 | 
			
		||||
	tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
 | 
			
		||||
	tiles = {"quartz_pillar_top.png", "quartz_pillar_top.png",
 | 
			
		||||
		"quartz_pillar_side.png"},
 | 
			
		||||
	groups = {cracky=3, oddly_breakable_by_hand=1},
 | 
			
		||||
	sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	on_place = minetest.rotate_node
 | 
			
		||||
@@ -92,21 +93,11 @@ minetest.register_craft({
 | 
			
		||||
 | 
			
		||||
-- Chiseled Quartz
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'quartz:chiseled 2',
 | 
			
		||||
	output = 'quartz:chiseled 4',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'stairs:slab_quartzblock', '', ''},
 | 
			
		||||
		{'stairs:slab_quartzblock', '', ''},
 | 
			
		||||
		{'', '', ''},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
-- Chiseled Quartz (for stairsplus)
 | 
			
		||||
minetest.register_craft({
 | 
			
		||||
	output = 'quartz:chiseled 2',
 | 
			
		||||
	recipe = {
 | 
			
		||||
		{'quartz:slab_block', '', ''},
 | 
			
		||||
		{'quartz:slab_block', '', ''},
 | 
			
		||||
		{'', '', ''},
 | 
			
		||||
		{'quartz:block', 'quartz:block', ''},
 | 
			
		||||
		{'quartz:block', 'quartz:block', ''},
 | 
			
		||||
		{'',             '',             ''},
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 | 
			
		||||
@@ -142,7 +133,7 @@ minetest.register_abm({
 | 
			
		||||
-- Compatibility with stairsplus
 | 
			
		||||
--
 | 
			
		||||
 | 
			
		||||
if minetest.get_modpath("moreblocks") then
 | 
			
		||||
if minetest.global_exists("stairsplus") then
 | 
			
		||||
	local nodename = "quartz:block"
 | 
			
		||||
	local ndef = table.copy(minetest.registered_nodes[nodename])
 | 
			
		||||
	ndef.sunlight_propagates = true
 | 
			
		||||
@@ -176,7 +167,8 @@ else
 | 
			
		||||
 | 
			
		||||
	stairs.register_stair_and_slab("quartzstair", "quartz:pillar",
 | 
			
		||||
		{cracky=3, oddly_breakable_by_hand=1},
 | 
			
		||||
		{"quartz_pillar_top.png", "quartz_pillar_top.png", "quartz_pillar_side.png"},
 | 
			
		||||
		{"quartz_pillar_top.png", "quartz_pillar_top.png",
 | 
			
		||||
			"quartz_pillar_side.png"},
 | 
			
		||||
		S("Quartz Pillar stair"),
 | 
			
		||||
		S("Quartz Pillar slab"),
 | 
			
		||||
		default.node_sound_glass_defaults())
 | 
			
		||||
@@ -190,11 +182,14 @@ if settings:get_bool("ENABLE_HORIZONTAL_PILLAR") then
 | 
			
		||||
	-- Quartz Pillar (horizontal)
 | 
			
		||||
	minetest.register_node("quartz:pillar_horizontal", {
 | 
			
		||||
			description = "Quartz Pillar Horizontal",
 | 
			
		||||
			tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png", "quartz_pillar_side.png^[transformR90",
 | 
			
		||||
			"quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png", "quartz_pillar_top.png"},
 | 
			
		||||
			tiles = {"quartz_pillar_side.png", "quartz_pillar_side.png",
 | 
			
		||||
				"quartz_pillar_side.png^[transformR90",
 | 
			
		||||
				"quartz_pillar_side.png^[transformR90", "quartz_pillar_top.png",
 | 
			
		||||
				"quartz_pillar_top.png"},
 | 
			
		||||
			paramtype2 = "facedir",
 | 
			
		||||
			drop = 'quartz:pillar',
 | 
			
		||||
			groups = {cracky=3, oddly_breakable_by_hand=1, not_in_creative_inventory=1},
 | 
			
		||||
			groups = {cracky=3, oddly_breakable_by_hand=1,
 | 
			
		||||
				not_in_creative_inventory=1},
 | 
			
		||||
			sounds = default.node_sound_glass_defaults(),
 | 
			
		||||
	})
 | 
			
		||||
end
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										5
									
								
								mod.conf
									
									
									
									
									
								
							
							
						
						
									
										5
									
								
								mod.conf
									
									
									
									
									
								
							@@ -1 +1,4 @@
 | 
			
		||||
name = quartz
 | 
			
		||||
name             = quartz
 | 
			
		||||
description      = Adds quartz ore and some decorative quartz blocks.
 | 
			
		||||
depends          = default,stairs
 | 
			
		||||
optional_depends = intllib,moreblocks,stairsplus
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# Set this to true to allow usage of the stairsplus mod in moreblocks
 | 
			
		||||
 | 
			
		||||
ENABLE_STAIRSPLUS = false
 | 
			
		||||
ENABLE_STAIRSPLUS = true
 | 
			
		||||
 | 
			
		||||
# This enables the old horizontal pillar block(deprecated, be sure to convert them back to normal pillars)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user