Compare commits
5 Commits
12e6fdf3f8
...
05f891c012
Author | SHA1 | Date |
---|---|---|
Dallas DeBruin | 05f891c012 | |
ExeVirus | 1c5fa56e2b | |
ExeVirus | 72a1f91b3e | |
ExeVirus | 04a690cb12 | |
Dallas DeBruin | f3d6ee0dd3 |
|
@ -95,7 +95,7 @@ local fire_element_def = {
|
|||
if adv_core.setting("enable_element_particles", true) then
|
||||
self.particles = create_particles(self.object:get_pos(), "fire")
|
||||
end
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.5, max_hear_distance=80, loop = false})
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.9, max_hear_distance=80, loop = false})
|
||||
self.lifetime = minetest.get_us_time() + adv_core.setting("element_lifetime", 60)*1000000
|
||||
end,
|
||||
|
||||
|
@ -152,7 +152,7 @@ local water_element_def = {
|
|||
if adv_core.setting("enable_element_particles", true) then
|
||||
self.particles = create_particles(self.object:get_pos(), "water")
|
||||
end
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.5, max_hear_distance=80, loop = false})
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.9, max_hear_distance=80, loop = false})
|
||||
self.lifetime = minetest.get_us_time() + adv_core.setting("element_lifetime", 60)*1000000
|
||||
end,
|
||||
|
||||
|
@ -209,7 +209,7 @@ local earth_element_def = {
|
|||
if adv_core.setting("enable_element_particles", true) then
|
||||
self.particles = create_particles(self.object:get_pos(), "earth")
|
||||
end
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.5, max_hear_distance=80, loop = false})
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.9, max_hear_distance=80, loop = false})
|
||||
self.lifetime = minetest.get_us_time() + adv_core.setting("element_lifetime", 60)*1000000
|
||||
end,
|
||||
|
||||
|
@ -267,7 +267,7 @@ local air_element_def = {
|
|||
if adv_core.setting("enable_element_particles", true) then
|
||||
self.particles = create_particles(self.object:get_pos(), "air")
|
||||
end
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.5, max_hear_distance=80, loop = false})
|
||||
self.sound = minetest.sound_play("adv_core_spawn_sound", {object = self.object, gain=0.9, max_hear_distance=80, loop = false})
|
||||
self.lifetime = minetest.get_us_time() + adv_core.setting("element_lifetime", 60)*1000000
|
||||
end,
|
||||
|
||||
|
|
2
mod.conf
|
@ -1,2 +1,2 @@
|
|||
name = adventure_core
|
||||
description = Auto Collision/Selection Loading Box mod
|
||||
description = Adventuring Resource System
|
||||
|
|
2494
models/axe_stump.obj
3143
models/rune.obj
|
@ -108,7 +108,7 @@ if adv_core.setting("enable_builtin_nodes", true) then
|
|||
type = "fixed",
|
||||
fixed = {{0.895, -0.455, -0.785, -0.865, -0.015, 0.645},{0.235, -0.015, -0.235, -0.205, 1.195, 0.095},},
|
||||
},
|
||||
tiles = {"rune.png"},
|
||||
tiles = {"rune.jpg"},
|
||||
groups = {oddly_breakable_by_hand=2},
|
||||
})
|
||||
|
||||
|
@ -170,7 +170,7 @@ if adv_core.setting("enable_builtin_nodes", true) then
|
|||
type = "fixed",
|
||||
fixed = {-0.4,-0.5,-0.4,0.4,0.42,0.4},
|
||||
},
|
||||
tiles = {"axe_stump.png"},
|
||||
tiles = {"axe_stump.jpg"},
|
||||
groups = {oddly_breakable_by_hand=2},
|
||||
})
|
||||
|
||||
|
|
BIN
screenshot.png
Before Width: | Height: | Size: 642 KiB After Width: | Height: | Size: 490 KiB |
|
@ -34,7 +34,7 @@ adventure_core.enable_starting_items (Enable Starting Items) bool true
|
|||
adventure_core.enable_builtin_nodes (Enable Builtin Nodes) bool true
|
||||
|
||||
#Base time between element spawns in seconds. Per player value. [40-3600]
|
||||
adventure_core.base_time_between_spawns (Base Time Between Spawns) int 80 40 3600
|
||||
adventure_core.base_time_between_spawns (Base Time Between Spawns) int 60 30 3600
|
||||
|
||||
#Time Spread between element spawns, in seconds, randomly between (-value, +value) [0-30]
|
||||
adventure_core.spawn_time_spread (Time Spread Between Spawns) int 15 0 30
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
-- --------------------------------
|
||||
|
||||
--Returns true on success, false on failure
|
||||
local time_between = adv_core.setting("base_time_between_spawns", 80) * 1000000
|
||||
local time_between = adv_core.setting("base_time_between_spawns", 60) * 1000000
|
||||
local spread = adv_core.setting("spawn_time_spread", 15) * 1000000
|
||||
local base_dist = adv_core.setting("base_distance", 500)
|
||||
local spawn_adjust = adv_core.setting("spawn_adjustment_time", 180) * 1000000
|
||||
|
@ -129,7 +129,6 @@ minetest.register_globalstep(function(dtime)
|
|||
end
|
||||
adv_core.mod_storage:set_string(name .. "countdown", math.max(min_time, countdown)) --math.max(countdown, min_time) * 1000000)
|
||||
else
|
||||
minetest.chat_send_all("spawn_unsuccessful")
|
||||
adv_core.mod_storage:set_string(name .. "countdown", 2000000) -- try again in 2 seconds...
|
||||
end
|
||||
adv_core.mod_storage:set_string(name .. "old_time", new_time)
|
||||
|
|
BIN
textures/air.png
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 3.2 KiB |
After Width: | Height: | Size: 82 KiB |
Before Width: | Height: | Size: 322 KiB |
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 69 B |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 7.6 KiB |
Before Width: | Height: | Size: 708 B After Width: | Height: | Size: 551 B |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 461 B |
Before Width: | Height: | Size: 120 B After Width: | Height: | Size: 67 B |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 727 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 974 B After Width: | Height: | Size: 430 B |
Before Width: | Height: | Size: 728 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 267 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 355 B |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 99 B |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 127 B |
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 65 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.8 KiB |