Skip to content

Instantly share code, notes, and snippets.

@tomasbrod
Last active August 8, 2016 19:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomasbrod/a771089df0ea8ffab15801a175821240 to your computer and use it in GitHub Desktop.
Save tomasbrod/a771089df0ea8ffab15801a175821240 to your computer and use it in GitHub Desktop.
minetest.log("info","[testbmg] mod initializing")
local handle_a=minetest.register_ore({
name = "test pipe ore wood",
ore_type = "pipe",
ore = "default:wood",
wherein = {"air","default:stone"},
clust_scarcity = 50^3,
y_min = -31000,
y_max = 31000,
pipe_radius = 2,
dir_theta = 0.785,
dir_theta_rnd = 0.015,
pipe_length = 26,
pipe_length_rnd = 11,
curving = 2
})
minetest.register_ore({
name = "test scatter ore mese sub test pipe ore wood",
ore_type = "sub-scatter",
ore = "default:mese",
clust_scarcity = 40,
clust_size = 3,
clust_num_ores = 4,
parent = handle_a
})
local handle_b=minetest.register_ore({
name = "test blob ore nyancat",
ore_type = "blob",
ore = "default:nyancat",
wherein = {"air"},
clust_scarcity = 50^3,
y_min = -31000,
y_max = 31000,
clust_size = 8,
noise_params = {offset=0.5, scale=0, spread={x=100, y=100, z=100}, seed=23, octaves=3, persist=0.70},
noise_threshhold = 0
})
minetest.register_ore({
name = "test scatter ore mese sub test blob ore nyancat",
ore_type = "sub-scatter",
ore = "default:mese",
clust_scarcity = 40,
clust_size = 1,
clust_num_ores = 4,
parent = handle_b
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment