10 Commits

Author SHA1 Message Date
a658381feb Merge branch 'github' 2021-03-24 20:01:56 +01:00
cbbc225c1f Merge remote-tracking branch 'upstream/master' 2021-03-24 20:00:48 +01:00
7b1423e8cd Fix deprecated use of use_texture_alpha for Minetest 5.4+ 2021-03-03 23:08:40 +01:00
69330d88bc Revert "Create LICENSE"
This reverts commit 47a5202d82.
2021-01-28 19:11:11 -03:00
47a5202d82 Create LICENSE
License for code
2021-01-28 19:07:03 -03:00
8b6c5f0cad Updated Glass of Water to actually be transparent
Added `use_texture_alpha = true` to the definition of claycrafter:glass_of_water
2021-01-02 23:16:21 -03:00
fc9daaa401 Merge remote-tracking branch 'upstream/master' 2020-11-14 08:57:05 +01:00
1a64404611 Ajoute message de chargement du mod dans le journal "action" 2018-12-24 13:02:34 +01:00
f62ad8ef38 Modify README.md file 2018-08-20 21:47:01 +02:00
feb2efb6bc Add compatibility with dirt_compressed node from moreblocks 2018-03-28 19:36:35 +02:00
3 changed files with 9 additions and 11 deletions

View File

@ -200,20 +200,15 @@ minetest.register_abm({
--
-- Cooking
--
local compressed_dirt = "claycrafter:compressed_dirt"
if minetest.get_modpath("moreblocks") then
compressed_dirt = "moreblocks:dirt_compressed"
end
local cooktime = minetest.get_item_group(inv:get_stack("fuel", 1):get_name(), "h2o")
local cookable = true
if minetest.get_modpath("moreblocks") ~= nil then
if inv:get_stack("src", 1):get_name() ~= "moreblocks:dirt_compressed" then
if inv:get_stack("src", 1):get_name() ~= compressed_dirt then
cookable = false
end
else
if inv:get_stack("src", 1):get_name() ~= "claycrafter:compressed_dirt" then
cookable = false
end
end
-- Check if we have enough fuel to burn
if fuel_time < fuel_totaltime then

View File

@ -4,3 +4,5 @@ local modpath = minetest.get_modpath("claycrafter")
dofile(modpath .. "/items.lua")
dofile(modpath .. "/claycrafter.lua")
minetest.log("action", "[claycrafter] loaded.")

View File

@ -33,6 +33,7 @@ minetest.register_node("claycrafter:glass_of_water", {
inventory_image = "claycrafter_glass_of_water_inv.png",
wield_image = "claycrafter_glass_of_water.png",
paramtype = "light",
use_texture_alpha = "blend",
is_ground_content = false,
walkable = false,
sunlight_propagates = true,