Unnamed Minor Update
This commit is contained in:
parent
2414df6c97
commit
4e77e56aed
10
CHANGELOG.md
10
CHANGELOG.md
@ -1,5 +1,15 @@
|
||||
# Changelog
|
||||
|
||||
# [Sep 29th 2024] Unnamed Minor Update
|
||||
|
||||
- Replace Delayer Wire with Zinc Wire, giving Zinc a purpose
|
||||
- Give explosions more particles, including sparks
|
||||
- Change `default_stack_max` to 999
|
||||
- TNT will no longer explode if the TNT block has been removed
|
||||
- Fixed lily pads appearance
|
||||
- Windballs launch you forward a bit less now
|
||||
- Replace `electricity` group with `electric`
|
||||
|
||||
# [Sep 27th - Sep 28th 2024] Update: The Electricity Update
|
||||
|
||||
- Add a new electricity system to replace the old discontinued one
|
||||
|
@ -1,4 +1,4 @@
|
||||
unified_inventory_lite = false
|
||||
unified_inventory_bags = false
|
||||
unified_inventory_waypoints = false
|
||||
|
||||
default_stack_max = 999
|
||||
|
@ -469,16 +469,20 @@ PyuTestCore.make_node("pyutest_core:tnt", "TNT", {
|
||||
"pyutest-tnt-top-bottom.png",
|
||||
"pyutest-tnt-side.png" -- Affects all other sides
|
||||
}, {
|
||||
on_rightclick = function (pos, _, clicker)
|
||||
on_rightclick = function (pos, node, clicker)
|
||||
minetest.after(3, function()
|
||||
-- minetest.remove_node(pos)
|
||||
if minetest.get_node(pos).name ~= "pyutest_core:tnt" then
|
||||
return
|
||||
end
|
||||
PyuTestCore.create_explosion(pos, 3, true, 7, clicker, true)
|
||||
end)
|
||||
end,
|
||||
|
||||
__on_electricity_activated = function (pos, _, clicker)
|
||||
__on_electricity_activated = function (pos, node, clicker, sender_pos)
|
||||
minetest.after(3, function()
|
||||
-- minetest.remove_node(pos)
|
||||
if minetest.get_node(pos).name ~= "pyutest_core:tnt" then
|
||||
return
|
||||
end
|
||||
PyuTestCore.create_explosion(pos, 3, true, 7, clicker, true)
|
||||
end)
|
||||
end,
|
||||
|
@ -21,7 +21,7 @@ end
|
||||
|
||||
PyuTestCore.make_button = function (id, desc, groups, tiles)
|
||||
PyuTestCore.make_node(id, desc, PyuTestCore.util.tableconcat(groups, {
|
||||
electricity = 1
|
||||
electric = 1
|
||||
}), tiles, {
|
||||
is_ground_content = false,
|
||||
on_rightclick = function (pos, node, clicker)
|
||||
@ -48,7 +48,7 @@ PyuTestCore.make_wire = function (id, desc, groups, color, efn)
|
||||
end
|
||||
|
||||
PyuTestCore.make_node(id, desc, PyuTestCore.util.tableconcat(groups, {
|
||||
electricity = 1
|
||||
electric = 1
|
||||
}), {"pyutest-wire.png"}, {
|
||||
drawtype = "signlike",
|
||||
color = color,
|
||||
@ -88,9 +88,9 @@ PyuTestCore.make_wire("pyutest_core:copper_wire", "Copper Wire", {
|
||||
snappy = PyuTestCore.BLOCK_NORMAL
|
||||
}, "darkgoldenrod")
|
||||
|
||||
PyuTestCore.make_wire("pyutest_core:delayer_wire", "Delayer Wire", {
|
||||
PyuTestCore.make_wire("pyutest_core:zinc_wire", "Zinc Wire", {
|
||||
snappy = PyuTestCore.BLOCK_NORMAL
|
||||
}, PyuTestCore.COLORS["blue"][2], function (def, pos, node, clicker, sender_pos)
|
||||
}, "#bed3d4", function (def, pos, node, clicker, sender_pos)
|
||||
minetest.after(0.2, function ()
|
||||
def.__on_electricity_activated(pos, node, clicker, sender_pos)
|
||||
end)
|
||||
@ -98,7 +98,7 @@ end)
|
||||
|
||||
PyuTestCore.make_node("pyutest_core:test_device", "Test Device", {
|
||||
choppy = PyuTestCore.BLOCK_FAST,
|
||||
electricity = 1
|
||||
electric = 1
|
||||
}, {"pyutest-wood.png"}, {
|
||||
__on_electricity_activated = function(pos, node, clicker)
|
||||
minetest.add_item(pos + vector.new(0, 1, 0), ItemStack("pyutest_core:apple 1"))
|
||||
@ -107,7 +107,7 @@ PyuTestCore.make_node("pyutest_core:test_device", "Test Device", {
|
||||
|
||||
PyuTestCore.make_node("pyutest_core:freezer_device", "Freezer Device", {
|
||||
cracky = PyuTestCore.BLOCK_FAST,
|
||||
electricity = 1
|
||||
electric = 1
|
||||
}, {"pyutest-freezer.png"}, {
|
||||
__on_electricity_activated = function(pos, node, clicker)
|
||||
PyuTestCore.dorange(pos, 2, function (p)
|
||||
@ -122,7 +122,7 @@ PyuTestCore.make_node("pyutest_core:freezer_device", "Freezer Device", {
|
||||
|
||||
PyuTestCore.make_node("pyutest_core:heater_device", "Heater Device", {
|
||||
cracky = PyuTestCore.BLOCK_FAST,
|
||||
electricity = 1
|
||||
electric = 1
|
||||
}, {"pyutest-heater.png"}, {
|
||||
__on_electricity_activated = function(pos, node, clicker)
|
||||
PyuTestCore.dorange(pos, 2, function (p)
|
||||
@ -146,9 +146,9 @@ minetest.register_craft({
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "pyutest_core:delayer_wire",
|
||||
output = "pyutest_core:zinc_wire 4",
|
||||
recipe = {
|
||||
"pyutest_core:copper_wire", "pyutest_core:blue_dye"
|
||||
"pyutest_core:zinc_ingot"
|
||||
},
|
||||
type = "shapeless"
|
||||
})
|
||||
|
@ -49,12 +49,12 @@ PyuTestCore.make_flower("pyutest_core:sugarcane", "Sugarcane", "pyutest-sugarcan
|
||||
PyuTestCore.make_node("pyutest_core:lilypad", "Lily Pad", {
|
||||
block = PyuTestCore.BLOCK_BREAKABLE_INSTANT
|
||||
}, {"pyutest-lilypad.png"}, {
|
||||
drawtype = "nodebox",
|
||||
drawtype = "signlike",
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
buildable_to = true,
|
||||
sunlight_propagates = true,
|
||||
node_box = {
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
fixed = {-0.5, -31/64, -0.5, 0.5, -15/32, 0.5}
|
||||
},
|
||||
|
@ -142,8 +142,8 @@ PyuTestCore.make_item("pyutest_core:windball", "Windball", {}, "pyutest-windball
|
||||
local vel = user:get_velocity()
|
||||
|
||||
user:add_velocity({
|
||||
x = vel.x * 3.5,
|
||||
z = vel.z * 3.5,
|
||||
x = vel.x * 2.5,
|
||||
z = vel.z * 2.5,
|
||||
y = math.random(11, 14)
|
||||
})
|
||||
|
||||
|
@ -322,8 +322,6 @@ PyuTestCore.make_ore("pyutest_core:emerald", "Emerald", "shard", "Shard", {
|
||||
block_color = "seagreen"
|
||||
})
|
||||
|
||||
-- "Secondary" Ores
|
||||
|
||||
PyuTestCore.make_ore("pyutest_core:zinc", "Zinc", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
@ -347,6 +345,8 @@ PyuTestCore.make_ore("pyutest_core:zinc", "Zinc", "ingot", "Ingot", {
|
||||
block_color = "#bed3d4"
|
||||
})
|
||||
|
||||
-- "Secondary" Ores
|
||||
|
||||
PyuTestCore.make_ore("pyutest_core:tin", "Tin", "ingot", "Ingot", {
|
||||
scarcity = 11 * 11 * 11,
|
||||
y_max = 18,
|
||||
|
@ -72,18 +72,60 @@ PyuTestCore.create_explosion = function (pos, range, rm_pos, dmg, creator, dmg_c
|
||||
local maxpos = {x = pos.x + r, y = pos.y + r, z = pos.z + r}
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = range * 3,
|
||||
time = 0.1,
|
||||
amount = range * 8,
|
||||
time = 0.4,
|
||||
minexptime = 0.4,
|
||||
maxexptime = 1.4,
|
||||
minsize = 32,
|
||||
maxsize = 64,
|
||||
minsize = 16,
|
||||
maxsize = 32,
|
||||
vertical = false,
|
||||
glow = 8,
|
||||
|
||||
collisiondetection = false,
|
||||
texture = "pyutest-blast.png",
|
||||
|
||||
minpos = minpos,
|
||||
maxpos = maxpos,
|
||||
minvel = vector.new(-1, -1, 1),
|
||||
maxvel = vector.new(1, 1, 1),
|
||||
})
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = range * 18,
|
||||
time = 0.4,
|
||||
minexptime = 0.4,
|
||||
maxexptime = 1.4,
|
||||
minsize = 1,
|
||||
maxsize = 2,
|
||||
vertical = false,
|
||||
glow = 4,
|
||||
|
||||
collisiondetection = false,
|
||||
texture = "pyutest-blast2.png",
|
||||
|
||||
minpos = minpos,
|
||||
maxpos = maxpos,
|
||||
minvel = vector.new(-6, -6, -6),
|
||||
maxvel = vector.new( 6, 6, 6),
|
||||
})
|
||||
|
||||
minetest.add_particlespawner({
|
||||
amount = range * 18,
|
||||
time = 0.4,
|
||||
minexptime = 0.4,
|
||||
maxexptime = 1.4,
|
||||
minsize = 1,
|
||||
maxsize = 2,
|
||||
vertical = false,
|
||||
glow = 4,
|
||||
|
||||
collisiondetection = false,
|
||||
texture = "pyutest-blast3.png",
|
||||
|
||||
minpos = minpos,
|
||||
maxpos = maxpos,
|
||||
minvel = vector.new(-6, -6, -6),
|
||||
maxvel = vector.new( 6, 6, 6),
|
||||
})
|
||||
|
||||
minetest.sound_play("block_break", {
|
||||
|
@ -74,5 +74,5 @@ unified_inventory.register_category("pyutest_inventory:electricity", {
|
||||
symbol = "pyutest_core:button",
|
||||
label = "Electricity",
|
||||
index = 11,
|
||||
items = get_items_from_group("electricity")
|
||||
items = get_items_from_group("electric")
|
||||
})
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 187 B |
BIN
textures/pyutest-blast2.png
Normal file
BIN
textures/pyutest-blast2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 B |
BIN
textures/pyutest-blast3.png
Normal file
BIN
textures/pyutest-blast3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 84 B |
Loading…
x
Reference in New Issue
Block a user