Add files via upload

master
AiTechEye 2018-09-18 14:50:54 +02:00 committed by GitHub
parent 18dacfa422
commit ce96cd0116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 13 deletions

View File

@ -1,15 +1,14 @@
aliveai_threats.fort={furnishings={"aliveai_threats:toxic_tank","aliveai_threats:labbottle_containing","aliveai_threats:timed_bumb","aliveai_threats:timed_nitrobumb","aliveai_threat_eletric:timed_ebumb","aliveai_threats:landmine","aliveai_threats:deadlock","aliveai_massdestruction:nuclearbarrel"},}
minetest.register_tool("aliveai_threats:fortspawner", {
description = "fort spawner",
range=15,
groups={not_in_creative_inventory=1},
inventory_image = "default_stick.png",
on_use = function(itemstack, user, pointed_thing)
aliveai.register_buildings_spawner("Fort",{
on_use=function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
aliveai_threats.fort.spawning(pointed_thing.under,1)
end
end,
on_place=function(itemstack, user, pointed_thing)
end
})
aliveai.register_rndcheck_on_generated({

View File

@ -4,23 +4,20 @@ aliveai_threats.lab={
cam={"aliveai_threats:secam","aliveai_threats:secam2","aliveai_threat_eletric:secam"}
}
minetest.register_tool("aliveai_threats:labspawner", {
description = "labspawner",
range=15,
groups={not_in_creative_inventory=1},
inventory_image = "default_stick.png",
on_use = function(itemstack, user, pointed_thing)
aliveai.register_buildings_spawner("Lab",{
on_use=function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
aliveai_threats.lab.spawning(pointed_thing.under,1)
end
end,
on_place = function(itemstack, user, pointed_thing)
on_place=function(itemstack, user, pointed_thing)
if pointed_thing.type=="node" then
aliveai_threats.lab.gen_stair2(pointed_thing.above)
end
end
})
aliveai.register_rndcheck_on_generated({
node="default:stone_with_coal",
chance=30,