From c27901a83be5af26c1c21749a4f1d1618fe98df4 Mon Sep 17 00:00:00 2001 From: cale Date: Sun, 25 Dec 2016 12:06:26 +0100 Subject: [PATCH] added carrots --- mods/default/trees.lua | 2 +- mods/farming/init.lua | 11 +++++++++++ mods/farming/textures/farming_carrot.png | Bin 0 -> 299 bytes mods/farming/textures/farming_carrot_1.png | Bin 0 -> 237 bytes mods/farming/textures/farming_carrot_2.png | Bin 0 -> 270 bytes mods/farming/textures/farming_carrot_3.png | Bin 0 -> 402 bytes 6 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 mods/farming/textures/farming_carrot.png create mode 100644 mods/farming/textures/farming_carrot_1.png create mode 100644 mods/farming/textures/farming_carrot_2.png create mode 100644 mods/farming/textures/farming_carrot_3.png diff --git a/mods/default/trees.lua b/mods/default/trees.lua index 252b397..b559fcb 100644 --- a/mods/default/trees.lua +++ b/mods/default/trees.lua @@ -3,7 +3,7 @@ minetest.register_node("default:wood", { description = "Wood", tiles = {"default_wood.png"}, - groups = {choppy = 3}, + groups = {choppy = 3, oddly_breakable_by_hand=1}, sounds = default.sounds.wood(), }) diff --git a/mods/farming/init.lua b/mods/farming/init.lua index 7440f11..fda3fb0 100644 --- a/mods/farming/init.lua +++ b/mods/farming/init.lua @@ -35,6 +35,7 @@ function farming.register_plant(name, steps, def) end, }) end + minetest.register_craftitem(def.drop, { description = def.drop_description, inventory_image = def.drop_texture, @@ -53,11 +54,21 @@ end farming.register_plant("wheat", 5, { description = "Wheat", texture = "farming_wheat", + drop = "farming:wheat_seeds", drop_description = "Wheat Seeds", drop_texture = "farming_wheat_seeds.png", }) +farming.register_plant("carrot", 3, { + description = "Carrot", + texture = "farming_carrot", + + drop = "farming:carrot", + drop_description = "Carrot", + drop_texture = "farming_carrot.png", +}) + minetest.override_item("default:plant_grass", {drop = { max_items = 1, items = { diff --git a/mods/farming/textures/farming_carrot.png b/mods/farming/textures/farming_carrot.png new file mode 100644 index 0000000000000000000000000000000000000000..015b91c0ddea1b2a8d182d24851b31f7772cb436 GIT binary patch literal 299 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`Y)RhkE)4%caKYZ?lYt_f1s;*b z3=G`DAk4@xYmNj^kiEpy*OmPNk0dvP2KPi}U7(O;iEBiObAE1aYF-J0b5UwyNotBh zd1gt5g1e`0KzJjcI8f1KPZ!4!i_>=}?B#7S;Bk}hSQ%r$EwY{Y_JqhA4V)Uz$L9(N zojrMd0*7E-k?Ic5CqHWIxb7_Tn*96nUB*cs5z`}CS9BjMekm{XYT7zpJ?1qN6;|lY z+QE?R!dUxN{(ki9`TrVC7rlSUeZb%xLuW{?!SuL;>%KjRZPvBvF%H_=zU=13!;5OU m*xB-`bz~$;{)+J0t*F!8;VNQi`tTIcc?_PeelF{r5}E+Ia%Y_Y literal 0 HcmV?d00001 diff --git a/mods/farming/textures/farming_carrot_1.png b/mods/farming/textures/farming_carrot_1.png new file mode 100644 index 0000000000000000000000000000000000000000..fbb0b5423b7d7a0cbeaa8aac361e83871882842c GIT binary patch literal 237 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&pIsN0OUG_}({tUZ9X!k+ z0zYyVhyc|xFwA-V?se|pQ>*UGw>+EQc2=tOD(g)DR{k5(?PpiL3e;UZS7J@opPi>{ X;-xhX_J|&71L^T}^>bP0l+XkKqeo0! literal 0 HcmV?d00001 diff --git a/mods/farming/textures/farming_carrot_2.png b/mods/farming/textures/farming_carrot_2.png new file mode 100644 index 0000000000000000000000000000000000000000..c917b5ecd5e4277ea05f1b46b35ae449b02965dc GIT binary patch literal 270 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE1|*BCs=fdzwj^(N7l!{JxM1({$v_d#0*}aI z1_o|n5N2eUHAey{$X?><>&pIsN0OVxXwrQ9V4#p>iEBiObAE1aYF-J0b5UwyNotBh zd1gt5g1e`0KzJjcI8afUr;B4q#NoG-4hl9X@US#4(>bcAaZFF6b=8;FW*;FVo_}Ta z2c8zOI04lH!H>?*R(bt;nXGcm`IDDT{*t-0Q{<>&pIsN0OUG`G>yzLZFajiEBiObAE1aYF-J0b5UwyNotBh zd1gt5g1e`0KzJjcI8f0qPZ!6Kh{MSV60D08M0%P64Y=G6YJfQxI9RsM{-f?DE3C(R zM8aW>szK?EE5;L(In9m>y_T3H+rYbKwasCPD|w&dLwctRrhVLX%DCr5)`X`MZd%AT ztl_v>5NI0bR^t0ITUN3|u(|R2cDuu}P39~KcFH15#?9XsOZ4cpol{Sd6W+v@62E8P z*Pr`WNa-u@I(S0SE$d36aW`iyqbA$oD~~QU>-2f^a+@7=YTM5P0^2NV_>12>EOYkw zaPQZLdNpR|Hda>seTI7)XKih{5hGCi`tX1M`~QtM{nQJEHQ?Ow;TNZMZT*5LxI85)z4*}Q$iB}YV(u@ literal 0 HcmV?d00001