11 کامیت‌ها bc25e3d53b ... 903a57bf57

نویسنده SHA1 پیام تاریخ
  NathanSalapat 903a57bf57 Added maxhp 4 سال پیش
  NathanS21 b8e59ecdad Merge branch 'add_banana_orange_trees' of Xachman/Epic into master 4 سال پیش
  NathanSalapat 8f1e4ec563 Added some more help information. 4 سال پیش
  xachman 6982d42fe2 add default in depends.txt 4 سال پیش
  xachman 95cca979d2 add orange trees 4 سال پیش
  xachman 4ee4d5ea1f add bonemeal for banana trees 4 سال پیش
  xachman 9452334e40 place banana trees on default:sand and default:dirt_with_grass 4 سال پیش
  xachman ffc0d90c36 switch to banana trees growing on sand and coniferous_forest_dunes and grassland_dunes 4 سال پیش
  xachman b3781cb986 add banana trees to rainforest 4 سال پیش
  xachman 863a948cb2 add leaf decay and lumberjack to banana trees 4 سال پیش
  xachman e1b60ed136 WIP: add banana trees 4 سال پیش

+ 1 - 1
mods/afk/init.lua

@@ -27,7 +27,7 @@ local function check_moved()
 			end
 		end
 
-		local pos = p:getpos()
+		local pos = p:get_pos()
 		local sit = false -- for now, assume that they are not afk. Well change that if we need to later on in this function
 		-- (below) if the player is not registered on the afk and no afk list, add them with them not being afk
 		if chat_noafk[plname] == nil then

+ 2 - 1
mods/bones/init.lua

@@ -182,13 +182,14 @@ local function is_all_empty(player_inv)
 end
 
 minetest.register_on_dieplayer(function(player)
+   print 'player died, bones reporting in.'
 
 	local bones_mode = minetest.settings:get("bones_mode") or "bones"
 	if bones_mode ~= "bones" and bones_mode ~= "drop" and bones_mode ~= "keep" then
 		bones_mode = "bones"
 	end
 
-	local bones_position_message = minetest.settings:get_bool("bones_position_message") == true
+	local bones_position_message = true
 	local player_name = player:get_player_name()
 	local pos = vector.round(player:get_pos())
 	local pos_string = minetest.pos_to_string(pos)

+ 1 - 1
mods/caverealms_lite/abms.lua

@@ -38,7 +38,7 @@ minetest.register_abm({
          local above_pos = {x=pos.x, y=pos.y+1, z=pos.z}
          local above_node = minetest.get_node(above_pos).name
          local node_count = 0
-         while above_node == 'caverealms:fire_vine' and node_count < 25 do
+         while above_node == 'caverealms:fire_vine' and node_count < 15 do
             above_pos.y = above_pos.y + 1
             above_node = minetest.get_node(above_pos).name
             local node_count = node_count + 1

+ 0 - 6
mods/epic/death.lua

@@ -1,6 +0,0 @@
-minetest.register_on_dieplayer(function(player)
-   local player_name = player:get_player_name()
-   local pos = player:getpos()
-   local location = minetest.pos_to_string(pos,1)
-   minetest.chat_send_player(player_name, "Your bones are waiting at "..location)
-end)

+ 13 - 1
mods/epic/doc.lua

@@ -24,7 +24,10 @@ doc.add_entry("epic_server", "stations", {
    name = ("Stations"),
    data = { text = ('The Stations are where you\'ll do a goodly portion of your crafting. You can use the public ones in spawn, or create your own. Using public stations you leave yourself vulnerable to people stealing your resources.'..
                   'You can craft locked stations which will only allow people who have access to the area protection to place or remove items from the station inventories. This makes it safe to leave resources in the locked stations.'..
-                  'Nearly all the stations provide their own craft guides which you can view by clicking the "Show Guide" button in the lower left.')
+                  'Nearly all the stations provide their own craft guides which you can view by clicking the "Show Guide" button in the lower left.\n\n'..
+                  'You can toggle between a single item, and the max you can craft or have in a stack by clicking the [Max Output] or [Min Output] button in the lower left corner.'..
+                  'Using Shift + Click you can instantly move an entire stack into your inventory, or into the station resource pool, Shift+Scrollwheel over an item will send a single to or from the station.'..
+                  'You can pull up the craft guide by clicking the [Show Guide] button in the very bottom left corner.')
    }
 })
 
@@ -43,3 +46,12 @@ doc.add_entry("epic_server", "chat", {
                   'With the bridge disabled your chat messages will not be sent to discord, and you won\'t see any messages sent from discord.')
    }
 })
+
+doc.add_entry("epic_server", "maxhp", {
+   name = ("Max HP"),
+   data = { text = ('In an attempt to dissuade people from killing themselves in lava to make a messes on the server I wrote this mod. Every time you die you\'ll loose one of your max HP down to 25.\n\n'..
+                  'You can gain max HP back by consuming a variety of items, with more to be added soon.\n'..
+                  'Eating a chocolate block will increase your max HP by 1, up to a max of 45.\n'..
+                  'Eating a golden carrot will increase your max HP by 1, up to a max of 60.\n')
+   }
+})

+ 0 - 1
mods/epic/init.lua

@@ -4,7 +4,6 @@ dofile(minetest.get_modpath('epic')..'/ABMs.lua')
 dofile(minetest.get_modpath('epic')..'/awards.lua')
 dofile(minetest.get_modpath('epic')..'/crafts.lua')
 dofile(minetest.get_modpath('epic')..'/craftitems.lua')
-dofile(minetest.get_modpath('epic')..'/death.lua')
 dofile(minetest.get_modpath('epic')..'/doc.lua')
 dofile(minetest.get_modpath('epic')..'/fireextinguisher.lua')
 dofile(minetest.get_modpath('epic')..'/functions.lua')

+ 1 - 1
mods/epic/nodes.lua

@@ -97,7 +97,7 @@ minetest.register_node('epic:nether_with_diamond', {
 })
 
 minetest.register_node('epic:nether_basalt_with_huntite', {
-   description = 'Netherrack with Diamond',
+   description = 'Netherrack with Huntite',
    tiles = {
 		"epic_huntite_basalt.png",
 		"nether_basalt.png",

+ 1 - 0
mods/epic_trees/depends.txt

@@ -0,0 +1 @@
+default

+ 58 - 0
mods/epic_trees/food.lua

@@ -0,0 +1,58 @@
+
+
+-- Banana (Heals one heart when eaten)
+minetest.register_node("epic_trees:banana", {
+	description = "Banana",
+	drawtype = "torchlike",
+	tiles = {"banana_single.png"},
+	inventory_image = "banana_single.png",
+	wield_image = "banana_single.png",
+	paramtype = "light",
+	sunlight_propagates = true,
+	walkable = false,
+	selection_box = {
+		type = "fixed",
+		fixed = {-0.31, -0.5, -0.31, 0.31, 0.5, 0.31}
+	},
+	groups = {
+		food_banana = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
+		leafdecay = 1, leafdecay_drop = 1
+	},
+	drop = "epic_trees:banana",
+	on_use = minetest.item_eat(2),
+	sounds = default.node_sound_leaves_defaults(),
+	after_place_node = function(pos, placer)
+		if placer:is_player() then
+			minetest.set_node(pos, {name = "epic_trees:banana", param2 = 1})
+		end
+	end,
+})
+
+
+-- Orange (Heals 2 hearts when eaten)
+minetest.register_node("epic_trees:orange", {
+	description = "Orange",
+	drawtype = "plantlike",
+	tiles = {"farming_orange.png"},
+	inventory_image = "farming_orange.png",
+	wield_image = "farming_orange.png",
+	paramtype = "light",
+	sunlight_propagates = true,
+	walkable = false,
+	selection_box = {
+		type = "fixed",
+		fixed = {-0.27, -0.37, -0.27, 0.27, 0.44, 0.27}
+	},
+	groups = {
+		food_orange = 1, fleshy = 3, dig_immediate = 3, flammable = 2,
+		leafdecay = 3, leafdecay_drop = 1
+	},
+	drop = "epic_trees:orange",
+	on_use = minetest.item_eat(4),
+	sounds = default.node_sound_leaves_defaults(),
+	after_place_node = function(pos, placer)
+		if placer:is_player() then
+			minetest.set_node(pos, {name = "epic_trees:orange", param2 = 1})
+		end
+	end,
+})

+ 0 - 0
mods/epic_trees/init.lua


برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است