Initial Commit

master
Elias Fleckenstein 2020-12-11 17:33:56 +01:00
commit 655116fae0
14 changed files with 75 additions and 0 deletions

2
README Normal file
View File

@ -0,0 +1,2 @@
# draining
Everything you need to drain Clamity Spawn!

2
autodam/README Normal file
View File

@ -0,0 +1,2 @@
# autodam
A dragonfire CSM to automatically build dirt walls in MineClone2

19
autodam/init.lua Normal file
View File

@ -0,0 +1,19 @@
minetest.register_globalstep(function()
if not minetest.settings:get_bool("autodam") then return end
local player = minetest.localplayer
if not player then end
if player:get_wielded_item():get_name() ~= "mcl_core:dirt" then return end
local dirt = minetest.find_nodes_near(vector.add(player:get_pos(), vector.new(0, 1, 0)), 4, "mcl_core:dirt")
for _, dp in ipairs(dirt) do
local above = minetest.get_node_or_nil(vector.add(dp, vector.new(0, 1, 0)))
if above and above.name == "mcl_core:dirt" then
local underp = vector.subtract(dp, vector.new(0, 1, 0))
local under = minetest.get_node_or_nil(underp)
if under and under.name == "mcl_core:water_source" then
minetest.place_node(underp)
end
end
end
end)
minetest.register_cheat("AutoDam", "World", "autodam")

4
autodam/mod.conf Normal file
View File

@ -0,0 +1,4 @@
name = autodam
author = Fleckenstein
description = A dragonfire CSM to automatically build dirt walls in MineClone2

1
autodam/settingtypes.txt Normal file
View File

@ -0,0 +1 @@
autodam (AutoDam) bool false

2
autosponge/README Normal file
View File

@ -0,0 +1,2 @@
# autosponge
A dragonfire CSM to automatically place sponges into water

20
autosponge/init.lua Normal file
View File

@ -0,0 +1,20 @@
local etime = 0.0
minetest.register_globalstep(function(dtime)
if not minetest.settings:get_bool("autosponge") then return end
local player = minetest.localplayer
if not player then end
if player:get_wielded_item():get_name() ~= "mcl_sponges:sponge" then return end
etime = etime + dtime
if etime >= 0.3 then
etime = 0.0
else
return
end
local water = minetest.find_node_near(player:get_pos(), 4, "mcl_core:water_source")
if water then
minetest.place_node(water)
end
end)
minetest.register_cheat("AutoSponge", "World", "autosponge")

3
autosponge/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = autosponge
author = Fleckenstein
description = A dragonfire CSM to automatically place sponges into water

View File

@ -0,0 +1 @@
autosponge (AutoSponge) bool false

2
autotntsponge/README Normal file
View File

@ -0,0 +1,2 @@
# autotntsponge
A dragonfire CSM to automatically place tnt onto sponges

12
autotntsponge/init.lua Normal file
View File

@ -0,0 +1,12 @@
minetest.register_globalstep(function(dtime)
if not minetest.settings:get_bool("autotntsponge") then return end
local player = minetest.localplayer
if not player then end
if player:get_wielded_item():get_name() ~= "mcl_tnt:tnt" then return end
local sponges = minetest.find_nodes_near_under_air(player:get_pos(), 4, {"mcl_sponges:sponge", "mcl_sponges:sponge_wet"})
for _, p in ipairs(sponges) do
minetest.place_node(vector.add(p, vector.new(0, 1, 0)))
end
end)
minetest.register_cheat("AutoTNTSponge", "World", "autotntsponge")

3
autotntsponge/mod.conf Normal file
View File

@ -0,0 +1,3 @@
name = autotntsponge
author = Fleckenstein
description = A dragonfire CSM to automatically place tnt onto sponges

View File

@ -0,0 +1 @@
autotntsponge (AutoTNTSponge) bool false

3
modpack.conf Normal file
View File

@ -0,0 +1,3 @@
name = draining
description = Everything you need to drain Clamity Spawn!
author = Fleckenstein