commit 3afc95c0667410af54ad12d51ca663875ecb2153 Author: oilboi Date: Tue Jan 29 15:19:27 2019 -0500 upload more diff --git a/README.md b/README.md new file mode 100644 index 0000000..0f8b4d3 --- /dev/null +++ b/README.md @@ -0,0 +1,9 @@ +# THIS IS A MOD FOR MINETEST THAT UPGRADES ALL ITEMS TO THE MAX DEFINED AT THE TOP OF THE FILE (item_limit_stack_max) FOR MAX FUN! + +Find yourself overwhelmed with items? TOO MANY mods installed for you to hold all those cool nodes!? This is your solution! + +The default redifined item stack is 999! + +![alt tag](https://raw.githubusercontent.com/oilboi/zzzzzzzzzzzzzzzzzz_item_limit/master/screenshot_20190128_210910.png "So much diamond!") + +If you encounter any issues (which should not ever happen because everything is an optional dependancy!) then delete the mod.conf file in the mod folder and the mod storage file for the mod in the world folder for hard reset. Easy! diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..c797572 --- /dev/null +++ b/init.lua @@ -0,0 +1,63 @@ +--install this on a server or a friend's game as a joke +local texture_change = 1 --0 dirt, 1 random colors, 2 clouds + +local mod_storage = minetest.get_mod_storage() --initialize mod storage + +--make this optional for true modularity +local depends_string = "optional_depends = " --create empty file list + +--go through all installed mods +for _,modname in pairs(minetest.get_modnames()) do + if modname ~= minetest.get_current_modname() then + depends_string = depends_string .. modname .. "," + end +end + +depends_string = depends_string:sub(1, -2) -- remove the last comma off the end + +--print(depends_string) + +--minetest.safe_file_write(minetest.get_modpath("item_limit").."/mod.conf", depends_string) + +--update the dependancies if needed + +if mod_storage:get_string("depends") == "" then + mod_storage:set_string("depends", depends_string) + minetest.safe_file_write(minetest.get_modpath(minetest.get_current_modname()).."/mod.conf", depends_string) +else + --if no change tell + if mod_storage:get_string("depends") == depends_string then + --nil + --if added mod, update + else + mod_storage:set_string("depends", depends_string) + minetest.safe_file_write(minetest.get_modpath(minetest.get_current_modname()).."/mod.conf", depends_string) + end +end + +--set everything to clouds +local colorwheel = {"red", "orange", "yellow", "green", "blue", "indigo", "violet"} + +--just make everything ridiculous +for i,a in pairs(minetest.registered_items) do + if texture_change == 1 then + local colortable = {} + for i = 1,10 do + colortable[i] = "color_world_"..colorwheel[math.random(1,7)]..".png" + end + minetest.override_item(a.name, + { + tiles = colortable, + }) + elseif texture_change == 0 then + minetest.override_item(a.name, + { + tiles = {"default_dirt.png",}, + }) + elseif texture_change == 2 then + minetest.override_item(a.name, + { + tiles = {"default_cloud.png"}, + }) + end +end diff --git a/mod.conf b/mod.conf new file mode 100644 index 0000000..bce12d1 --- /dev/null +++ b/mod.conf @@ -0,0 +1 @@ +optional_depends = beds,binoculars,boats,bones,bucket,butterflies,carts,creative,default,doors,dungeon_loot,dye,farming,fire,fireflies,flowers,game_commands,give_initial_stuff,map,player_api,screwdriver,sethome,sfinv,spawn,stairs,tnt,vessels,walls,wool,xpanes \ No newline at end of file diff --git a/screenshot_20190128_210910.png b/screenshot_20190128_210910.png new file mode 100644 index 0000000..c71a983 Binary files /dev/null and b/screenshot_20190128_210910.png differ diff --git a/textures/color_world_blue.png b/textures/color_world_blue.png new file mode 100644 index 0000000..0a151ec Binary files /dev/null and b/textures/color_world_blue.png differ diff --git a/textures/color_world_green.png b/textures/color_world_green.png new file mode 100644 index 0000000..f8d8cf9 Binary files /dev/null and b/textures/color_world_green.png differ diff --git a/textures/color_world_indigo.png b/textures/color_world_indigo.png new file mode 100644 index 0000000..8755be2 Binary files /dev/null and b/textures/color_world_indigo.png differ diff --git a/textures/color_world_orange.png b/textures/color_world_orange.png new file mode 100644 index 0000000..fcaf698 Binary files /dev/null and b/textures/color_world_orange.png differ diff --git a/textures/color_world_red.png b/textures/color_world_red.png new file mode 100644 index 0000000..66a8855 Binary files /dev/null and b/textures/color_world_red.png differ diff --git a/textures/color_world_violet.png b/textures/color_world_violet.png new file mode 100644 index 0000000..34f4b26 Binary files /dev/null and b/textures/color_world_violet.png differ diff --git a/textures/color_world_yellow.png b/textures/color_world_yellow.png new file mode 100644 index 0000000..203e8df Binary files /dev/null and b/textures/color_world_yellow.png differ