[Mod Proposal] alchemy + moonseed
- LocaL_ALchemisT
- Member
- Posts: 56
- Joined: Thu Jul 19, 2012 16:21
- Location: Asia Tenggara
[Mod Proposal] alchemy + moonseed
hey guys & gals. I'm new to this forum and nice to meet you.
I've been using minetest for about a month and i'm interested in doing mods, although i'm not good in lua coding. Here are some mods that i've made.
Introducing "alchemy" mod.
found deep in the ground, liquid mercury is the main substance in this mod. harvesting mercury would require a bucket.
by processing the mercury (in the bucket), a philosopher's stone is produced.
this can be used to transmute steel into gold.
of course, it is not limited to ingots only...
"alchemy" depends on "default", "bucket" and "moreores".
besides transmuting steel into gold, philosopher's stone is also implemented in my 2nd mod, "moonseed".
moonseeds are used to create 'artificial moon' (an almost spherical stone formation). any nodes within specific range will be destroyed before the stone nodes are placed.
there are 3 types of moonseeds:
1. Mini Moon
2. Big Moon (note the Mini Moons in picture)
3. Collosal Moon
Comparing the moons:
"moonseed" depends on "default" and "alchemy" ("alchemy" dependencies also needed).
---------------------------------------------------------------------------
There are some things to be cleared before the mods are released:
1. Glitch(es) regarding "moonseed". Due to the size of moon produced by Collosal Moon, a lot of time needed for the program to run the lua code. Some attempts may result in failure.
picture below shows incomplete form of moon
some nodes within the range are not destroyed
Collosal Moon would still be included in the mod, however using it would cause lag. Be careful with it.
2. The mods are made mostly by copypasting codes from "moreores" and "nuke" mods before editting them (i did learn to understand the code though). i dont know about licensing stuff and permissions, i would be nice if someone can tell me what to do regarding this matter. i haven't uploaded the mods yet.
Thank you for your support. Sorry for bad English.
edit: title
I've been using minetest for about a month and i'm interested in doing mods, although i'm not good in lua coding. Here are some mods that i've made.
Introducing "alchemy" mod.
found deep in the ground, liquid mercury is the main substance in this mod. harvesting mercury would require a bucket.
by processing the mercury (in the bucket), a philosopher's stone is produced.
this can be used to transmute steel into gold.
of course, it is not limited to ingots only...
"alchemy" depends on "default", "bucket" and "moreores".
besides transmuting steel into gold, philosopher's stone is also implemented in my 2nd mod, "moonseed".
moonseeds are used to create 'artificial moon' (an almost spherical stone formation). any nodes within specific range will be destroyed before the stone nodes are placed.
there are 3 types of moonseeds:
1. Mini Moon
2. Big Moon (note the Mini Moons in picture)
3. Collosal Moon
Comparing the moons:
"moonseed" depends on "default" and "alchemy" ("alchemy" dependencies also needed).
---------------------------------------------------------------------------
There are some things to be cleared before the mods are released:
1. Glitch(es) regarding "moonseed". Due to the size of moon produced by Collosal Moon, a lot of time needed for the program to run the lua code. Some attempts may result in failure.
picture below shows incomplete form of moon
some nodes within the range are not destroyed
Collosal Moon would still be included in the mod, however using it would cause lag. Be careful with it.
2. The mods are made mostly by copypasting codes from "moreores" and "nuke" mods before editting them (i did learn to understand the code though). i dont know about licensing stuff and permissions, i would be nice if someone can tell me what to do regarding this matter. i haven't uploaded the mods yet.
Thank you for your support. Sorry for bad English.
edit: title
Last edited by LocaL_ALchemisT on Sat Aug 04, 2012 05:41, edited 1 time in total.
Built Telegate v1.0, Workers v2.0, Broadcast v0.0 & Weeping Angel v0.1
Having A Buzy Week
From 0.4.10 with love~
Having A Buzy Week
From 0.4.10 with love~
- LocaL_ALchemisT
- Member
- Posts: 56
- Joined: Thu Jul 19, 2012 16:21
- Location: Asia Tenggara
"alchemy" and "moonseed" are 2 different mods. if you only need "moonseed" then the recipe needs to be changed a little (replace philosopher's stone with something else), if you dont want to include "alchemy".
Built Telegate v1.0, Workers v2.0, Broadcast v0.0 & Weeping Angel v0.1
Having A Buzy Week
From 0.4.10 with love~
Having A Buzy Week
From 0.4.10 with love~
yea nice i can't find the download link,
we can this mod also use as voxelsniper part (world edit) if u use sand it would fall down on the normal mountains and ground, like that you should can make mountains by your self
we can this mod also use as voxelsniper part (world edit) if u use sand it would fall down on the normal mountains and ground, like that you should can make mountains by your self
Last edited by Stef on Thu Jul 19, 2012 18:53, edited 1 time in total.
Sorry for my crappy english, im dutch
- LocaL_ALchemisT
- Member
- Posts: 56
- Joined: Thu Jul 19, 2012 16:21
- Location: Asia Tenggara
nice mauvebic. it would be better if you share your mod here. i will post mine later, after i figured out about this licensing stuff (please help me).
my mod introduce items which, when activated, will float into the air and explode, forming stone sphere. yours seems like giving user a chatcommand to build a sphere out of any nodes the user wants.
my mod introduce items which, when activated, will float into the air and explode, forming stone sphere. yours seems like giving user a chatcommand to build a sphere out of any nodes the user wants.
Built Telegate v1.0, Workers v2.0, Broadcast v0.0 & Weeping Angel v0.1
Having A Buzy Week
From 0.4.10 with love~
Having A Buzy Week
From 0.4.10 with love~
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
Do you plan to use different ways to make them?mauvebic wrote:i made some generic code to create spheres from the chat console using /pointzero, /size and /round, im still missing a /hollow command to empty the interior, when its ready ill give you a copy and implement it here
Example:
/radius #, block type
/diameter #, block type
ive posted it here
and heres the commands:
and heres the code relating to generating spheres:
you might notice i commented out:
which makes more eliptical/saucer-ish shapes, if you uncomment be sure to comment out or delete the line above:
but if you get the idea then you can stretch/shrink spheres along any axis, the example above gave me something more dome-ish than spheric
and to answer @NakedFurys question: you only specify the blocktype/nodename when youre ready to run /sphere or /hollowsphere. ive listed the commands in order, radius and thickness are optional and thickness is only for /hollowsphere anyhoo.
and heres the commands:
Code: Select all
/p0 sets the center of the sphere (using your position)
/radius <number> sets radius of the sphere, defaults to 12
/thickness <number> sets thickness of hollow sphere, defaults to 1
/sphere <nodename> spawns a sphere
/hollowsphere <nodename> spawns a hollow sphere
Code: Select all
-------------------------------------------------------
-------------- SPHERES & HOLLOW SPHERES ---------------------------
---------------------------------------------------------------
local SPHERE_SIZE = 12
local POINT_ZERO = nil
local HOLLOW_THICKNESS = 1
function sphere(pos,nodename,hollow)
pos.x = math.floor(pos.x+0.5)
pos.y = math.floor(pos.y+0.5)
pos.z = math.floor(pos.z+0.5)
for x=-SPHERE_SIZE,SPHERE_SIZE do
for y=-SPHERE_SIZE,SPHERE_SIZE do
-- for y=-(SPHERE_SIZE*4),(SPHERE_SIZE*4) do
for z=-SPHERE_SIZE,SPHERE_SIZE do
if not hollow and x*x+y*y+z*z <= SPHERE_SIZE * SPHERE_SIZE + SPHERE_SIZE then
local np={x=pos.x+x,y=pos.y+y,z=pos.z+z}
local n = minetest.env:get_node(np)
minetest.env:add_node(np,{type="node",name=nodename})
elseif hollow and x*x+y*y+z*z >= (SPHERE_SIZE-hollow) * (SPHERE_SIZE-hollow) + (SPHERE_SIZE-hollow) and x*x+y*y+z*z <= SPHERE_SIZE * SPHERE_SIZE + SPHERE_SIZE then
local np={x=pos.x+x,y=pos.y+y,z=pos.z+z}
local n = minetest.env:get_node(np)
minetest.env:add_node(np,{type="node",name=nodename})
end
end
end
end
end
minetest.register_chatcommand("p0", {
params = "<none>",
description = "spawn a sphere",
privs = {server=true},
func = function(name, param)
POINT_ZERO = minetest.env:get_player_by_name(name):getpos()
minetest.chat_send_player(name, "p0 set")
end, })
minetest.register_chatcommand("radius", {
params = "<radius>",
description = "set radius of sphere, default 12",
privs = {server=true},
func = function(name, param)
SPHERE_SIZE = param
minetest.chat_send_player(name, "radius set")
end, })
minetest.register_chatcommand("sphere", {
params = "<nodename>",
description = "spawn a sphere",
privs = {server=true},
func = function(name, param)
if POINT_ZERO == nil then minetest.chat_send_player(name, "there is no p0 only zuul") return end
minetest.chat_send_player(name, "spawning...larger spheres = more time, may need to retry if partial spawn")
sphere(POINT_ZERO, param)
end, })
minetest.register_chatcommand("thickness", {
params = "<hollow sphere thickness>",
description = "set thickness of hollow spheres, default 1",
privs = {server=true},
func = function(name, param)
HOLLOW_THICKNESS = param
minetest.chat_send_player(name, "thickness set")
end, })
minetest.register_chatcommand("hollowsphere", {
params = "<nodename>",
description = "spawn a hollow sphere",
privs = {server=true},
func = function(name, param)
if POINT_ZERO == nil then minetest.chat_send_player(name, "there is no p0 only zuul") return end
minetest.chat_send_player(name, "spawning...larger spheres = more time, may need to retry if partial spawn")
sphere(POINT_ZERO, param, HOLLOW_THICKNESS)
end, })
Code: Select all
-- for y=-(SPHERE_SIZE*4),(SPHERE_SIZE*4) do
Code: Select all
for y=-SPHERE_SIZE,SPHERE_SIZE do
and to answer @NakedFurys question: you only specify the blocktype/nodename when youre ready to run /sphere or /hollowsphere. ive listed the commands in order, radius and thickness are optional and thickness is only for /hollowsphere anyhoo.
Last edited by mauvebic on Fri Jul 20, 2012 13:21, edited 1 time in total.
-
- Member
- Posts: 844
- Joined: Wed Jul 11, 2012 15:02
- PilzAdam
- Member
- Posts: 4026
- Joined: Fri Jul 20, 2012 16:19
- GitHub: PilzAdam
- IRC: PilzAdam
- Location: Germany
You can use WTFPL (http://sam.zoy.org/wtfpl/). It easy to understand and says evereyone can do everything with your mod.LocaL_ALchemisT wrote: i dont know about licensing stuff and permissions, i would be nice if someone can tell me what to do regarding this matter. i haven't uploaded the mods yet.
pleeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeessssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeessssssssssssssssssss post i dont know how to use worldedit if you want to reply talk to mallot1 i got bannned from my account
- cornellius
- Member
- Posts: 82
- Joined: Sat Dec 01, 2012 05:08
- Location: South East Asian
Who is online
Users browsing this forum: No registered users and 23 guests