mirror of
https://notabug.org/TenPlus1/lucky_block.git
synced 2024-07-07 16:25:25 +02:00
code tidy ' to ", fixed wishing well replacements
This commit is contained in:
parent
fc35acc885
commit
2fa8a04d00
@ -24,5 +24,6 @@ Changelog:
|
|||||||
- 0.9 - Tweak item drops, add replacements to schematics, tidy wishing well code
|
- 0.9 - Tweak item drops, add replacements to schematics, tidy wishing well code
|
||||||
- 1.0 - Added ability for custom lucky blocks to use their own block list
|
- 1.0 - Added ability for custom lucky blocks to use their own block list
|
||||||
- 1.1 - Spawning mobs can now select randomly from a table or single string
|
- 1.1 - Spawning mobs can now select randomly from a table or single string
|
||||||
|
- 1.2 - Code tidy and fixed wishing well replacements
|
||||||
|
|
||||||
Lucky Blocks: 259 (depending on mods enabled)
|
Lucky Blocks: 259 (depending on mods enabled)
|
||||||
|
4
init.lua
4
init.lua
@ -641,7 +641,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
-- lucky block itself
|
-- lucky block itself
|
||||||
minetest.register_node('lucky_block:lucky_block', {
|
minetest.register_node("lucky_block:lucky_block", {
|
||||||
description = S("Lucky Block"),
|
description = S("Lucky Block"),
|
||||||
tiles = {{
|
tiles = {{
|
||||||
name = "lucky_block_animated.png",
|
name = "lucky_block_animated.png",
|
||||||
@ -680,7 +680,7 @@ minetest.register_craft({
|
|||||||
|
|
||||||
|
|
||||||
-- super lucky block
|
-- super lucky block
|
||||||
minetest.register_node('lucky_block:super_lucky_block', {
|
minetest.register_node("lucky_block:super_lucky_block", {
|
||||||
description = S("Super Lucky Block (use pick)"),
|
description = S("Super Lucky Block (use pick)"),
|
||||||
tiles = {{
|
tiles = {{
|
||||||
name = "lucky_block_super_animated.png",
|
name = "lucky_block_super_animated.png",
|
||||||
|
Binary file not shown.
38
schems.lua
38
schems.lua
@ -152,6 +152,38 @@ local obsidian_trap = {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local stb = {name = "default:steelblock", param1 = 255}
|
||||||
|
local sbr = {name = "default:stonebrick", param1 = 255}
|
||||||
|
local fwd = {name = "default:fence_wood", param1 = 255}
|
||||||
|
local slb = {name = "stairs:slab_stonebrick", param1 = 255}
|
||||||
|
local wbl = {name = "lucky_block:well_block", param1 = 255}
|
||||||
|
local gla = {name = "default:glass", param1 = 255}
|
||||||
|
|
||||||
|
local wishing_well = {
|
||||||
|
|
||||||
|
size = {x = 3, y = 5, z = 3},
|
||||||
|
|
||||||
|
data = {
|
||||||
|
stb,stb,stb,
|
||||||
|
sbr,sbr,sbr,
|
||||||
|
fwd,air,fwd,
|
||||||
|
fwd,air,fwd,
|
||||||
|
slb,slb,slb,
|
||||||
|
|
||||||
|
stb,wbl,stb,
|
||||||
|
sbr,wat,sbr,
|
||||||
|
air,air,air,
|
||||||
|
air,air,air,
|
||||||
|
slb,gla,slb,
|
||||||
|
|
||||||
|
stb,stb,stb,
|
||||||
|
sbr,sbr,sbr,
|
||||||
|
fwd,air,fwd,
|
||||||
|
fwd,air,fwd,
|
||||||
|
slb,slb,slb,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
-- add schematics to list
|
-- add schematics to list
|
||||||
|
|
||||||
lucky_block:add_schematics({
|
lucky_block:add_schematics({
|
||||||
@ -162,6 +194,7 @@ lucky_block:add_schematics({
|
|||||||
{"instafarm", insta_farm, {x = 2, y = 2, z = 1}},
|
{"instafarm", insta_farm, {x = 2, y = 2, z = 1}},
|
||||||
{"firetrap", fire_trap, {x = 1, y = 0, z = 1}},
|
{"firetrap", fire_trap, {x = 1, y = 0, z = 1}},
|
||||||
{"obsidiantrap", obsidian_trap, {x = 1, y = 0, z = 1}},
|
{"obsidiantrap", obsidian_trap, {x = 1, y = 0, z = 1}},
|
||||||
|
{"wishingwell", wishing_well, {x = 1, y = 1, z = 1}},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- wishing well
|
-- wishing well
|
||||||
@ -175,11 +208,6 @@ minetest.register_node("lucky_block:well_block", {
|
|||||||
drop = {},
|
drop = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
local path = minetest.get_modpath("lucky_block") .. "/schematics/"
|
|
||||||
|
|
||||||
lucky_block:add_schematics({
|
|
||||||
{"wishingwell", path .. "lb_wishing_well.mts", {x = 1, y = 1, z = 1}},
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Global list containing well blocks that can be dropped
|
-- Global list containing well blocks that can be dropped
|
||||||
lucky_block.wellblocks = {
|
lucky_block.wellblocks = {
|
||||||
|
Loading…
Reference in New Issue
Block a user