From b50caa0b53262bc3011f8d404f708f0bc1b78671 Mon Sep 17 00:00:00 2001 From: Signal Date: Sun, 14 Sep 2025 23:16:35 -0400 Subject: [PATCH] More textures --- mods/rgt_player/textures/rgt_heart.png | Bin 0 -> 192 bytes mods/rgt_towns/rgt_towns_core/items.lua | 2 +- mods/rgt_towns/rgt_towns_core/plots.lua | 7 +- .../textures/rgt_towns_constructor_bottom.png | Bin 0 -> 95 bytes .../textures/rgt_towns_constructor_side.png | Bin 0 -> 251 bytes .../textures/rgt_towns_constructor_top.png | Bin 0 -> 231 bytes mods/rgt_world/init.lua | 66 ++++++++++++++++++ mods/rgt_world/textures/rgt_acacia_planks.png | Bin 0 -> 272 bytes mods/rgt_world/textures/rgt_birch_planks.png | Bin 0 -> 277 bytes mods/rgt_world/textures/rgt_dark_planks.png | Bin 0 -> 263 bytes mods/rgt_world/textures/rgt_oak_planks.png | Bin 0 -> 272 bytes .../rgt_world/textures/rgt_oak_planks_alt.png | Bin 0 -> 270 bytes mods/rgt_world/textures/rgt_path_grass.png | Bin 0 -> 604 bytes .../textures/rgt_path_grass_side.png | Bin 0 -> 281 bytes .../rgt_world/textures/rgt_path_grass_top.png | Bin 0 -> 289 bytes .../rgt_world/textures/rgt_redwood_planks.png | Bin 0 -> 272 bytes mods/rgt_world/textures/rgt_spruce_planks.png | Bin 0 -> 270 bytes 17 files changed, 68 insertions(+), 7 deletions(-) create mode 100644 mods/rgt_player/textures/rgt_heart.png create mode 100644 mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_bottom.png create mode 100644 mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_side.png create mode 100644 mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_top.png create mode 100644 mods/rgt_world/textures/rgt_acacia_planks.png create mode 100644 mods/rgt_world/textures/rgt_birch_planks.png create mode 100644 mods/rgt_world/textures/rgt_dark_planks.png create mode 100644 mods/rgt_world/textures/rgt_oak_planks.png create mode 100644 mods/rgt_world/textures/rgt_oak_planks_alt.png create mode 100644 mods/rgt_world/textures/rgt_path_grass.png create mode 100644 mods/rgt_world/textures/rgt_path_grass_side.png create mode 100644 mods/rgt_world/textures/rgt_path_grass_top.png create mode 100644 mods/rgt_world/textures/rgt_redwood_planks.png create mode 100644 mods/rgt_world/textures/rgt_spruce_planks.png diff --git a/mods/rgt_player/textures/rgt_heart.png b/mods/rgt_player/textures/rgt_heart.png new file mode 100644 index 0000000000000000000000000000000000000000..c4b6e389d52d751e9638a5d6d8016682c800d469 GIT binary patch literal 192 zcmeAS@N?(olHy`uVBq!ia0vp^oFL4>1|%O$WD@{VjKx9jP7LeL$-D$|sytmBLo_D# z_ABx=7znU@pQZFcV8sf@M-}4pU#S0(l3&5VB**wrV9E5uTUTwKne(lo$DKi7&ts96 z9T#qx9lE?rkoEnJZIcrBbIy7`IZ>ErE+fN{itd7#__QK3&&hcgboW2pni_KSv+%RY q`yZZ^yWRFXD1asN(jq(CzwsGX1|gw-?Z<$wVDNPHb6Mw<&;$T~JV?&~ literal 0 HcmV?d00001 diff --git a/mods/rgt_towns/rgt_towns_core/items.lua b/mods/rgt_towns/rgt_towns_core/items.lua index 95ae85d..b0921f6 100644 --- a/mods/rgt_towns/rgt_towns_core/items.lua +++ b/mods/rgt_towns/rgt_towns_core/items.lua @@ -72,7 +72,7 @@ function ns.check_recipe(inv, plot) end minetest.register_node(":rgt_towns:constructor", { - tiles = {"[fill:16x16:#8af"}, + tiles = {"rgt_towns_constructor_top.png", "rgt_towns_constructor_bottom.png", "rgt_towns_constructor_side.png"}, on_construct = function(pos) local inv = minetest.get_meta(pos):get_inventory() inv:set_size("main", 9) diff --git a/mods/rgt_towns/rgt_towns_core/plots.lua b/mods/rgt_towns/rgt_towns_core/plots.lua index ae1627b..9ac16d2 100644 --- a/mods/rgt_towns/rgt_towns_core/plots.lua +++ b/mods/rgt_towns/rgt_towns_core/plots.lua @@ -149,20 +149,15 @@ function ns.can_build_plot(box, grid) for name, grid2 in pairs(ns.grids) do local i = aabb_intersects_sphere(box, grid2.origin, grid2.radius) if name == grid or i then - ns.add_cube(box.min, box.max, {color = "#fff"}) -- Translate box to grid2 local space and compute candidate cell range local min = vector.floor((box.min -grid2.origin) /15) local max = vector.ceil((box.max -grid2.origin) /15) - - ns.add_cube(min *15 +grid2.origin, max *15 +grid2.origin) - + if grid2.type == "3d" then -- TODO: implement else for x = min.x, max.x do for z = min.z, max.z do - ns.add_point(vector.new(x,0,z) *15 +grid2.origin) --- print("Box: "..dump(box).."; min: "..min:to_string().."; max: "..max:to_string()) local plot = db:get("plot:"..name.."_"..x.."_0_"..z) if plot then plot = minetest.parse_json(plot) diff --git a/mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_bottom.png b/mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..4f9f343f98b0b0277c67a25a92e7ae818569ca4c GIT binary patch literal 95 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|Bt2amLo9le r?`+eX-zajxWzwra-o;XFQ`i`e>o9&^W>KyMRK(!v>gTe~DWM4f-EJ8H literal 0 HcmV?d00001 diff --git a/mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_side.png b/mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_side.png new file mode 100644 index 0000000000000000000000000000000000000000..60787882fea928ff23294a9060e3d9dbb205feee GIT binary patch literal 251 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|wtBiahFJ9W zPVnYCWWeLXesW?46Gx$@-$B-hjgK#^UDUO0T?qR@rVgjN2cgHl`OMp66~B(5gM)$L zxs2V@*$+DyKA1e*f9cqTweO|Zrl&C|1>KxCGd)d6P{=cUYS2GfzmsLTi+$DfzjwZk zVk#()|9E;+$blCnAqSKXt(0WQ;fr4HZrx(E>LTBJ@Ac)?_qkH<8Qglf_4)3Fe;TK_ yxg9VJ%Iat^_E@Pt=h;NB?OIAx^Fp1q3hfxp7F94L#LokHkHOQ`&t;ucLK6VZXJTOh literal 0 HcmV?d00001 diff --git a/mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_top.png b/mods/rgt_towns/rgt_towns_core/textures/rgt_towns_constructor_top.png new file mode 100644 index 0000000000000000000000000000000000000000..9444da184c8834e8fe2dd7e07bff591521adfc87 GIT binary patch literal 231 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|7J9lkhFJ7Y zowS$lumVrZdOA_iST*x+(K|*S--X^$qTUh**;e>WBge3yFSXojE4^U_F5mK e&GMB#e;Lx)e2#^dMoR-7%i!ti=d#Wzp$PzO(pN|T literal 0 HcmV?d00001 diff --git a/mods/rgt_world/init.lua b/mods/rgt_world/init.lua index 96cee96..ac8f3c9 100644 --- a/mods/rgt_world/init.lua +++ b/mods/rgt_world/init.lua @@ -1,4 +1,14 @@ +local function rep(tx, size) + local out = "[combine:"..(size *16).."x"..(size *16) + for x = 0, size -1 do + for y = 0, size -1 do + out = out..":"..(x *16)..","..(y *16).."="..tx + end + end + return out +end + rgt.register_node("stone", { tiles = {"rgt_stone.png"}, groups = {dig_immediate = 3} @@ -20,6 +30,62 @@ rgt.register_node("dirt_grass", { groups = {dig_immediate = 3} }) +rgt.register_node("path_grass", { + drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + -0.5, -0.5, -0.5, + 0.5, 7/16, 0.5 + } + }, + tiles = {"rgt_path_grass_top.png", "rgt_dirt.png", "rgt_dirt.png^rgt_path_grass_side.png"}, +-- tiles = {"[fill:16x16:0,0:#3e7e7b^[fill:14x14:1,1:#326764"}, + paramtype = "light", + sunlight_propagates = false, + groups = {dig_immediate = 3} +}) + + + +rgt.register_node("oak_planks", { + tiles = {"rgt_oak_planks.png"}, + groups = {dig_immediate = 3} +}) + +rgt.register_node("dark_planks", { + tiles = {"rgt_dark_planks.png"}, + groups = {dig_immediate = 3} +}) + +rgt.register_node("spruce_planks", { + tiles = {"rgt_spruce_planks.png"}, + groups = {dig_immediate = 3} +}) + +rgt.register_node("acacia_planks", { + tiles = {"rgt_acacia_planks.png"}, + groups = {dig_immediate = 3} +}) + +rgt.register_node("redwood_planks", { + tiles = {"rgt_redwood_planks.png"}, + groups = {dig_immediate = 3} +}) + +rgt.register_node("birch_planks", { + tiles = {"rgt_birch_planks.png"}, + groups = {dig_immediate = 3} +}) + +--minetest.register_decoration { +-- deco_type = "simple", +-- place_on = "dirt_grass", +-- fill_ratio = 0.5, +-- decoration = {"red_glazed_terracotta:oak_planks", "red_glazed_terracotta:spruce_planks", "red_glazed_terracotta:dark_planks", "red_glazed_terracotta:redwood_planks", "red_glazed_terracotta:acacia_planks", "red_glazed_terracotta:birch_planks"} +--} + + rgt.register_node("water", { tiles = {"[fill:16x16:0,0:#2d5a7c77^[fill:14x14:1,1:#2d5a7c33"}, groups = {dig_immediate = 3}, diff --git a/mods/rgt_world/textures/rgt_acacia_planks.png b/mods/rgt_world/textures/rgt_acacia_planks.png new file mode 100644 index 0000000000000000000000000000000000000000..f6b6c65764b0ac20146a00de6fa436a1c8a24212 GIT binary patch literal 272 zcmV+r0q_2aP)Px#%1J~)R5*=|l2Ho6FbsyHq@2`%bDyQOu0|3N*+kP7_F1TUK(U7_GEU}&b5c2#oMr$JB^1P;@rzP*kQsaNw~*Gs#NWQa+Mw^C@tX$or@aAf W=yP>DVyTP(0000Px#&q+i?t4UIs<#sv+~DOP7ifPwe^ zG`H&of0VaDY5{;6rK&eX+oyGyC)fa>QHt1cm?ySiMQ$|y4Zv*AWXGvs14%8U&bzNi zIG)6g3>}W=HNe99O^ixb(e|=4Tj}&-m?v^$rgt!j)giiZAByQ#OX`Z!;!ys(>gl)= zRr5{)5mK~$x<=1?c1WPE7>l>T+W|mSqKNo2{-~54q#btRFCn=Di@%(}(vaqm;%5!z bGyr@6ipXyFjZ%UO00000NkvXXu0mjfvn+K| literal 0 HcmV?d00001 diff --git a/mods/rgt_world/textures/rgt_dark_planks.png b/mods/rgt_world/textures/rgt_dark_planks.png new file mode 100644 index 0000000000000000000000000000000000000000..c123de55664538f40200b1600ad6c7a404846fef GIT binary patch literal 263 zcmV+i0r>ujP)Px#!AV3xR5*=|kOeu_q!RU^jsfTVJxUR3btE+~<=jNcr94gHiww@= zxCY3|dL#zRiVzWaE8QlREJ%qhXJaK&H}3;0;A)8dR%vmt_pYIxMZ+@8V@eS)zav|P><$nMG N002ovPDHLkV1g96aE$-} literal 0 HcmV?d00001 diff --git a/mods/rgt_world/textures/rgt_oak_planks.png b/mods/rgt_world/textures/rgt_oak_planks.png new file mode 100644 index 0000000000000000000000000000000000000000..d5e0b4ad33c635d97fba56d92ef793f648c259da GIT binary patch literal 272 zcmV+r0q_2aP)Px#%1J~)R5*=|kxdH1Fc5{GFr={r#NwqqpZD=Ll|qZq5XxA(aFLRX(^#EVGC#@t z-W=|?EB=VUi?alPj;=0tSd;TSPk}vvqpL}kd7jik1@(iUUjY2JW-6^JuqS5;HfNvX z(wt}qhR)69L%_Id{RT!-t2MQ${1!UB$n!+~Al3V%6^Lw_hoZaXumz-*LH;YlutuVy z-vYqLYigsm%?!f$oD95#M+YDxQIz=8{)m(r0(U$1OOcvE*)KP+4x~LK`_+Kl27ou4 W8E{+mt%<|{0000Px#$Vo&&R5*=|kxLH3FboA>soe-6aSLw3HMsw}m4G-_5DOPKb@_P}DRwgR++EHm z{83VB8hQZK5xwnTPJUJulnS7uSGQlQN;rg~d=t?JaNph~-UTX@N@?f~&T6{q@xWhX zXxJat0BWqC#HeLuPKjkJ?Jued<=ZllAByj{Q` znUlBCI4&D-Q0udjQl(4)OoPx%7D+@wRCt{2THCb(Aq-rt#S(1Fifqaf?8Ww9|iW+dglQexPL3>{=@P#=UOgy@v#J(x*x zu8FNg()}(G|F}O-qxjA9adC?oEV z70@EFINtlcw@O%p(DNx8fXygQdNyF*8PwdZC4($?A$UCghZ@*{ig5@+6=lts5#49q z56tk+4x(C1PAv!!<-l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