From 7f139f3562aea243b49ed0e441b59ed11e252fac Mon Sep 17 00:00:00 2001 From: Juraj Vajda Date: Mon, 20 Feb 2023 15:21:52 -0500 Subject: [PATCH] Add coral desert stone block and brick. Add coral dirt farming soil. --- LICENSE.txt | 5 ++ crafting.lua | 23 +++++- init.lua | 1 + nodes.lua | 18 +++++ nodes_farming.lua | 69 ++++++++++++++++++ .../everness_coral_desert_stone_block.png | Bin 0 -> 257 bytes .../everness_coral_desert_stone_brick.png | Bin 0 -> 265 bytes textures/everness_farming_soil_overlay.png | Bin 0 -> 408 bytes .../everness_farming_soil_wet_overlay.png | Bin 0 -> 371 bytes ...everness_farming_soil_wet_side_overlay.png | Bin 0 -> 75 bytes 10 files changed, 113 insertions(+), 3 deletions(-) create mode 100644 nodes_farming.lua create mode 100644 textures/everness_coral_desert_stone_block.png create mode 100644 textures/everness_coral_desert_stone_brick.png create mode 100644 textures/everness_farming_soil_overlay.png create mode 100644 textures/everness_farming_soil_wet_overlay.png create mode 100644 textures/everness_farming_soil_wet_side_overlay.png diff --git a/LICENSE.txt b/LICENSE.txt index 8cde40c..4037e52 100644 --- a/LICENSE.txt +++ b/LICENSE.txt @@ -795,6 +795,11 @@ GNU Lesser General Public License v2.1 or later (see included LICENSE file) - everness_coral_sandstone_chiseled.png - everness_coral_sandstone_carved_1.png - everness_coral_sandstone_brick.png +- everness_coral_desert_stone_block.png +- everness_coral_desert_stone_brick.png +- everness_farming_soil_overlay.png -- Derived from texture by PilzAdam (CC BY 3.0) +- everness_farming_soil_wet_overlay.png -- Derived from texture by PilzAdam (CC BY 3.0) +- everness_farming_soil_wet_side_overlay.png -- Derived from texture by PilzAdam (CC BY 3.0) **CC-BY-SA-4.0, Pixel Perfection by XSSheep**, https://minecraft.curseforge.com/projects/pixel-perfection-freshly-updated diff --git a/crafting.lua b/crafting.lua index e9371e1..ed40b37 100644 --- a/crafting.lua +++ b/crafting.lua @@ -318,6 +318,23 @@ minetest.register_craft({ } }) +minetest.register_craft({ + output = 'everness:coral_desert_stone_brick 4', + recipe = { + { 'everness:coral_desert_stone', 'everness:coral_desert_stone' }, + { 'everness:coral_desert_stone', 'everness:coral_desert_stone' }, + } +}) + +minetest.register_craft({ + output = 'everness:coral_desert_stone_block 9', + recipe = { + { 'everness:coral_desert_stone', 'everness:coral_desert_stone', 'everness:coral_desert_stone' }, + { 'everness:coral_desert_stone', 'everness:coral_desert_stone', 'everness:coral_desert_stone' }, + { 'everness:coral_desert_stone', 'everness:coral_desert_stone', 'everness:coral_desert_stone' }, + } +}) + -- -- Tools -- @@ -343,9 +360,9 @@ minetest.register_craft({ minetest.register_craft({ output = 'everness:shovel_silk', recipe = { - { 'everness:crystal_purple', 'everness:ancient_emerald_ice', 'everness:crystal_purple' }, - { '', 'everness:glowing_pillar', '' }, - { '', 'group:stick', '' } + { 'everness:ancient_emerald_ice' }, + { 'everness:glowing_pillar' }, + { 'everness:crystal_purple' } } }) diff --git a/init.lua b/init.lua index e9e2b3f..ff56614 100644 --- a/init.lua +++ b/init.lua @@ -23,6 +23,7 @@ local mod_start_time = minetest.get_us_time() dofile(path .. '/api.lua') dofile(path .. '/nodes.lua') +dofile(path .. '/nodes_farming.lua') dofile(path .. '/bamboo.lua') dofile(path .. '/functions.lua') dofile(path .. '/trees.lua') diff --git a/nodes.lua b/nodes.lua index 83e8063..6ecc480 100644 --- a/nodes.lua +++ b/nodes.lua @@ -213,6 +213,24 @@ minetest.register_node('everness:coral_white_sandstone_pillar', { sounds = default.node_sound_stone_defaults(), }) +minetest.register_node('everness:coral_desert_stone_block', { + description = S('Coral Desert Stone Block'), + tiles = { 'everness_coral_desert_stone_block.png' }, + is_ground_content = false, + groups = { cracky = 2, stone = 1 }, + sounds = default.node_sound_stone_defaults(), +}) + +minetest.register_node('everness:coral_desert_stone_brick', { + description = S('Coral Desert Stone Brick'), + paramtype2 = 'facedir', + place_param2 = 0, + tiles = { 'everness_coral_desert_stone_brick.png' }, + is_ground_content = false, + groups = { cracky = 2, stone = 1 }, + sounds = default.node_sound_stone_defaults(), +}) + minetest.register_node('everness:coral_bones', { description = S('Coral Bones'), tiles = { 'everness_coral_bones.png' }, diff --git a/nodes_farming.lua b/nodes_farming.lua new file mode 100644 index 0000000..5c11264 --- /dev/null +++ b/nodes_farming.lua @@ -0,0 +1,69 @@ +--[[ + Everness. Never ending discovery in Everness mapgen. + Copyright (C) 2023 SaKeL + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to juraj.vajda@gmail.com +--]] + +local S = minetest.get_translator(minetest.get_current_modname()) + +minetest.override_item('everness:coral_dirt', { + soil = { + base = 'everness:coral_dirt', + dry = 'everness:coral_dirt_soil', + wet = 'everness:coral_dirt_soil_wet' + } +}) + +minetest.override_item('everness:dirt_with_coral_grass', { + soil = { + base = 'everness:dirt_with_coral_grass', + dry = 'everness:coral_dirt_soil', + wet = 'everness:coral_dirt_soil_wet' + } +}) + +-- normal soil +minetest.register_node('everness:coral_dirt_soil', { + description = S('Coral Dirt Soil'), + tiles = { + 'everness_coral_dirt.png^(everness_coral_dirt.png^[mask:everness_farming_soil_overlay.png^[multiply:#A05F3A80)', + 'everness_coral_dirt.png' + }, + drop = 'everness:coral_dirt', + groups = { crumbly = 3, not_in_creative_inventory = 1, soil = 2, grassland = 1, field = 1 }, + sounds = default.node_sound_dirt_defaults(), + soil = { + base = 'everness:coral_dirt', + dry = 'everness:coral_dirt_soil', + wet = 'everness:coral_dirt_soil_wet' + } +}) + +-- wet soil +minetest.register_node('everness:coral_dirt_soil_wet', { + description = S('Coral Dirt Wet Soil'), + tiles = { + 'everness_coral_dirt.png^(everness_coral_dirt.png^[mask:everness_farming_soil_wet_overlay.png^[multiply:#A05F3A80)', + 'everness_coral_dirt.png^(everness_coral_dirt.png^[mask:everness_farming_soil_wet_side_overlay.png^[multiply:#A05F3A80)', + }, + drop = 'everness:coral_dirt', + groups = { crumbly = 3, not_in_creative_inventory = 1, soil = 3, wet = 1, grassland = 1, field = 1 }, + sounds = default.node_sound_dirt_defaults(), + soil = { + base = 'everness:coral_dirt', + dry = 'everness:coral_dirt_soil', + wet = 'everness:coral_dirt_soil_wet' + } +}) diff --git a/textures/everness_coral_desert_stone_block.png b/textures/everness_coral_desert_stone_block.png new file mode 100644 index 0000000000000000000000000000000000000000..469d34486194828e9227ac51c572e54fb9cbc80e GIT binary patch literal 257 zcmV+c0sj7pP)CXs zcuc)+LCbzszjQ~#eNeht!EKGwQR}7z|C{scsOail(n*^Op z)@@3@%3ie=NwezI6KtYAmXop9L}$KRGC%8)S^L^>tB&RmV-^HJp-I+I00000NkvXX Hu0mjf(tT_= literal 0 HcmV?d00001 diff --git a/textures/everness_coral_desert_stone_brick.png b/textures/everness_coral_desert_stone_brick.png new file mode 100644 index 0000000000000000000000000000000000000000..9c66db64834419c393a2a62f2877dddfba0f26be GIT binary patch literal 265 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!63?wyl`GbL!L4Z$)>;4k=v#n8wDtyi~gsn)h zUX$Upy~y)$ZNTbe`^{O7+j3n`)&%X%b39(=vn<+dV~X{z#OB{Xy;D40978H@sh;ER zV^QQ_xxn;u@wvbGyLbHM@m$#0Vdv{2lfCvc!<%;=nR4fN(%CnkygB5#mA_z{F%zT^HJ;H0uF8&t{IdHLob{ZFY!gH{rKI=trv4eIP{76B+Y;WUXp zBL;Lhp--EAdW^Z?GEBJRLlO@xdE%BuxM9dKQ`P|dWt!rM=MSs6m&|x(+gqn7P5H%~ z=WrVqOt@mgf_s*fi8DIvQE(cH(C3g{3VOU|$aNA;sxeQ6W~hXmeR67K)M(P$wr!m% z6*4O1yd{f1khW|);1vh-Xp^zWE=_9G$&>iWBR^R3$dnr{`NF#};uDAT8K;f;<~%WE z#y5_+dFrt?th#_dZ z&f%tBf1Q(}r?hTj0RW)Tm8CfJ$!+h=F;df&0XFO@ax1S5-Sx!OfyxWFWHJYKTWZ7z;CUH?d*Qg}$jBhyFU&R99-M zrxs&sC@U)OH2&hx21`Hl5<4v zt9=t&`j(zq`E1k7H;>Ki8>i?Q2`y*n$jsGMc;Kf$7Af8eB!PsGP;4-002ovPDHLkV1h;?r2PN@ literal 0 HcmV?d00001 diff --git a/textures/everness_farming_soil_wet_side_overlay.png b/textures/everness_farming_soil_wet_side_overlay.png new file mode 100644 index 0000000000000000000000000000000000000000..33aa89354ac9d2e80bc32023eb482e2c672b5544 GIT binary patch literal 75 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!60wlNoGJgf6ggjjwLn`JZ|9IaoZ`7kD;mO5t X&%#gOxK{Bjpe%!@tDnm{r-UW|TFDa8 literal 0 HcmV?d00001