[Mod] weed mod [0.0.3] [weed]

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

[Mod] weed mod [0.0.3] [weed]

by RAPHAEL » Sat Dec 31, 2011 07:08

UPDATE: The download link has been changed to sdzens version. That is all for now.

ANOTHER EDIT: If you want to have it so the dirt bed doesn't revert to dirt see bottom of post for code change. Will be fixed next version

Decided to try my hand at doing a mod and decided to do one others may not be likely to do.

So, I modded the wheat mod done by Victor Hackeridze hackeridze@gmail.com and created a weed mod. Very early stages but seems to work.

License: DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
License URL: http://sam.zoy.org/wtfpl/COPYING

TODO:
* Grow lights
* Better graphics (feel free to contribute)
* Some other stuff I may come up with

Depends:
default

So it works by creating a "weed dirt bed":
dirt, sand, dirt = 3 weed dirt beds

(there should also be wild weed plants now) Initially you will have to give yourself seeds ( /giveme weed:weed_seeds 99 ). Craft weed dirt beds. Sow "seeds" (looks like a weed nugget at the moment) into weed dirt bed. Currently growth is only 3 graphics. A sprout, a pot plant and a brownish pot plant (yea I know needs better graphics). When it's a brownish pot plant you can harvest.

You can then make weed flour:
wheat seeds, wheat seeds
weed seeds, weed seeds

Create weed form:
wood in the shape of a U

Put water in the form like you would a bucket.

From there you can make weed brownie dough:
weed flour, weed flour, weed flour
weed flour, weed_form_water, weed flour
weed flour, weed flour, weed flour

Throw the result in a furnace.

Download sdzen's version:
weed (sdzen).zip
(48.67 KiB) Downloaded 348 times


Screenshots:
*links broken*

EDIT: To make it so the dirt bed doesn't revert to dirt, open the init.lua file and find the following code:
minetest.register_abm({
nodenames = "weed:dirt_bed",
interval = 40,
chance = 3,
action = function(pos, node, _, __)
local p = {x = pos.x,y = pos.y +1,z = pos.z}
local above_node = minetest.env:get_node(p)

for i, plant in ipairs(DIRT_BED_TO_GRASS) do
if (above_node.name == plant) then return; end
end
minetest.env:remove_node(pos)
minetest.env:add_node(pos, {name = "default:dirt"})
end


And change it to:
minetest.register_abm({
nodenames = "weed:dirt_bed",
interval = 40,
chance = 3,
action = function(pos, node, _, __)
local p = {x = pos.x,y = pos.y +1,z = pos.z}
local above_node = minetest.env:get_node(p)

for i, plant in ipairs(DIRT_BED_TO_GRASS) do
if (above_node.name == plant) then return; end
end
minetest.env:remove_node(pos)
minetest.env:add_node(pos, {name = "weed:dirt_bed"})
end
Last edited by RAPHAEL on Mon Dec 03, 2012 04:21, edited 1 time in total.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Sat Dec 31, 2011 07:49

Edited first post with screenshots
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
sfan5
Moderator
 
Posts: 3817
Joined: Wed Aug 24, 2011 09:44
Location: Germany
GitHub: sfan5
IRC: sfan5

by sfan5 » Sat Dec 31, 2011 08:22

Looks Cool!
Mods: Mesecons | WorldEdit | Nuke & Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
Hackeridze
Member
 
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Sat Dec 31, 2011 10:32

How to smoke it?
My game: RTMG
GENTOO USER
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Dec 31, 2011 10:48

raphael i honestly didnt think anyone would start making a mod like better than wolves from minecraft..this is freakin awesome
I've been gone for a long time
 

sapier
Developer
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Sat Dec 31, 2011 12:17

do only I have problems with to many mods loaded on one server or is it a common known bug?

if so why create a mod for every crop added to mt ;-)

in mod farming adding your weed would have been calling:

farming_add_crop("weed",<growtime>,<chance to get seed from plain grass>,<chance to get seed from junglegrass>,<chance to get seed from tall grass>,<max distance to water>)

and of course drawing the images

but obviously you already finished so my suggestion is to late ;-)

by the way, say no to drugs ;-)
Last edited by sapier on Sat Dec 31, 2011 12:18, edited 1 time in total.
DON'T mention coding style!
(c) sapier all rights reserved
 

bwog
Member
 
Posts: 283
Joined: Wed Nov 30, 2011 14:09
Location: United States

by bwog » Sat Dec 31, 2011 13:45

When I saw this topic I thought it was going to make it so there's weeds like dandelions.
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Dec 31, 2011 13:46

and raphael why dont you make your textures a bit more like minetest instead of doing ULTRA HD textures?
I've been gone for a long time
 

sapier
Developer
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Sat Dec 31, 2011 14:26

I like hires textures, would be glad every mod could provide them.

Probably an option similar to opaque water, 3d clouds ... an option "Hires Textures (if available)" would be a solution?

This would give everyone the chance to select textures as he/she likes. But this is a little bit off topic in here.
DON'T mention coding style!
(c) sapier all rights reserved
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Sat Dec 31, 2011 15:52

sapier wrote:by the way, say no to drugs ;-)

Weed isn't a drug, crack meth and cocaine are drugs :P As for modding the farming mod I will have to check into that.

Anyway a little surprised at the responses so far. Didn't think there would be any responses much.

I did notice a little issue when testing this last night. Is it just me or is there a limit to the number of mods one can run on a server? I had 28 mods and when adding the weed mod (or any other mod for that matter) got a lua stack error or something until I removed one of the mods.

EDIT:

jordan4ibanez wrote:and raphael why dont you make your textures a bit more like minetest instead of doing ULTRA HD textures?

All I did was find images online, did some editing optimizing and resized to 64x64. I am not a computer graphics artist. In fact my skills with computer graphics is similar to that of a noob.
Last edited by RAPHAEL on Sat Dec 31, 2011 15:55, edited 1 time in total.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
jordan4ibanez
Member
 
Posts: 1895
Joined: Tue Sep 27, 2011 18:44
Location: Rhode Island, USA
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Sat Dec 31, 2011 15:54

RAPHAEL wrote:
sapier wrote:by the way, say no to drugs ;-)

Weed isn't a drug, crack meth and cocaine are drugs :P As for modding the farming mod I will have to check into that.

Anyway a little surprised at the responses so far. Didn't think there would be any responses much.

I did notice a little issue when testing this last night. Is it just me or is there a limit to the number of mods one can run on a server? I had 28 mods and when adding the weed mod (or any other mod for that matter) got a lua stack error or something until I removed one of the mods.


celeron updated it so the stack can handle over 30
I've been gone for a long time
 

sapier
Developer
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Sun Jan 01, 2012 12:43

As far as i know you need to specifiy all 6 sides in tile_images if you want to have different ones.
Same to inventorycube it requires 3 images to be fully defined
DON'T mention coding style!
(c) sapier all rights reserved
 

sapier
Developer
 
Posts: 763
Joined: Tue Aug 16, 2011 18:17

by sapier » Sun Jan 01, 2012 17:48

@RAPHAEL I'm sorry I've rechecked my last comment, for now it doesn't seem possible to create a node with different textures. My comment is only valid for entitys where you even have to add 6 textures to make it work.

But, making grow lamp an entity isn't an option for you as entitys don't have collision detection (you would be able to walk through)
DON'T mention coding style!
(c) sapier all rights reserved
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Fri Feb 24, 2012 15:58

Updated to version 0.0.2 (read first post for details)
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Fri Mar 02, 2012 23:00

yay i can download now!
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

User avatar
Death Dealer
Member
 
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo

by Death Dealer » Sat Mar 03, 2012 00:25

I will retexture this tonight:D i likes it
Keep calm and code python^_^
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Fri Mar 16, 2012 15:09

Officially requesting this thread be moved to the Mod Releases board.
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

User avatar
RAPHAEL
Member
 
Posts: 627
Joined: Tue Nov 01, 2011 09:09
Location: Earth

by RAPHAEL » Sat Mar 17, 2012 16:42

I'm requesting someone with the interest and skills to re-texture this mod so that it matches more with minetest yet still is definitely a "weed mod".
"Before you speak, ask yourself: Is it kind, is it true, is it necessary, does it improve upon the silence?"
My mods: http://goo.gl/n4kpn
(Currently Various, Industrial, Fakeblocks, Jail, MoarCraft, Christmas, Replicator, minetest dev installer for linux, bash mod installer, windows mod installer)
 

maddogg
Member
 
Posts: 27
Joined: Wed Dec 21, 2011 23:55

by maddogg » Sat Jul 07, 2012 10:50

What version of the game is this designed to work with ?
 

User avatar
LolManKuba
Member
 
Posts: 939
Joined: Fri Feb 10, 2012 22:36
Location: Ontario, Canada

by LolManKuba » Sat Jul 07, 2012 12:53

before march 18 and maybe march 18 2012
Last edited by LolManKuba on Sat Jul 07, 2012 12:53, edited 1 time in total.
 

Josh
Member
 
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Tue Jul 10, 2012 03:40

Will this work with 20120606?
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Fri Jul 27, 2012 23:02

i have one that works with the 0.4.1 stable and unstable
anyone want it? josh?
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

Josh
Member
 
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Sat Jul 28, 2012 03:23

sdzen wrote:i have one that works with the 0.4.1 stable and unstable
anyone want it? josh?


Yeah id like it could you put it up for download sdzen?
 

User avatar
sdzen
Member
 
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Mon Jul 30, 2012 13:13

download
there you go! flowers mod is needed to get weed
Edit: the textures are a 16x16 texture i whipped up for them feel free to change it back to hd
Last edited by sdzen on Mon Jul 30, 2012 13:14, edited 1 time in total.
[h]Zen S.D.[/h] The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno
 

Josh
Member
 
Posts: 1146
Joined: Fri Jun 29, 2012 23:11
Location: Victoria, Australia

by Josh » Tue Jul 31, 2012 02:56

sdzen wrote:download
there you go! flowers mod is needed to get weed
Edit: the textures are a 16x16 texture i whipped up for them feel free to change it back to hd


Thanks sdzen ill try it!
Last edited by Josh on Tue Jul 31, 2012 02:57, edited 1 time in total.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 2 guests