Request to help update cement mod

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

Request to help update cement mod

by RAPHAEL » Mon Dec 03, 2012 04:33

First off it has been awhile since I've been around these forums (since about April of this year) and got around to updating mods I use and mods I wrote. However I am a little baffled at how to update this cement mod. Could someone offer some advice or help on this?

Download:
http://www.filedropper.com/cement

I'll also say my oh my how much has minetest changed since April lol
"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: 1865
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Mon Dec 03, 2012 05:33

Ohai
If you can think it, you can make it.
 

User avatar
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Dec 03, 2012 08:06

RAPHAEL wrote:First off it has been awhile since I've been around these forums (since about April of this year) and got around to updating mods I use and mods I wrote. However I am a little baffled at how to update this cement mod. Could someone offer some advice or help on this?

Download:
http://www.filedropper.com/cement

I'll also say my oh my how much has minetest changed since April lol

Sure, I will help out.

Also, welcome back.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

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

by RAPHAEL » Mon Dec 03, 2012 10:42

Hello there jordan4ibanez and Jordach. Long time no talk lol. Thank you Jordach for your help :)
"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
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Mon Dec 03, 2012 16:38

RAPHAEL wrote:Hello there jordan4ibanez and Jordach. Long time no talk lol. Thank you Jordach for your help :)

I'm still around. :)

Also, I removed the Home_Mod uses, since that mod is now long dead, since the author has left it.

P.S. Head onto IRC, #minetest -- same name there too!

Oh, btw, done the mod: https://github.com/Jordach/Concrete

NOTE: There already is a folder in there, just drag and drop the folder into minetest from the archiver.
N.B. Not all of them do this!
Last edited by Jordach on Mon Dec 03, 2012 17:33, edited 1 time in total.

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

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

by RAPHAEL » Tue Dec 04, 2012 05:31

Jordach wrote:
RAPHAEL wrote:Hello there jordan4ibanez and Jordach. Long time no talk lol. Thank you Jordach for your help :)

I'm still around. :)

Also, I removed the Home_Mod uses, since that mod is now long dead, since the author has left it.

P.S. Head onto IRC, #minetest -- same name there too!

Oh, btw, done the mod: https://github.com/Jordach/Concrete

NOTE: There already is a folder in there, just drag and drop the folder into minetest from the archiver.
N.B. Not all of them do this!


Theres some issues with the mod. First off crafting recipes need the " instead of ' so the recipes work. Once that's done it seems when placing bucket of cement it doesn't "flow".

HAND TYPED: Map::setNode(): not allowing to place CONTENT_IGNORE while trying to replace cement:cement_source

I've fixed the crafting issue but not sure how to do the flowing issue:
minetest.register_craft({
output = "cement:aggregate_cement",
recipe = {
{"default:sand", "default:sand", "default:sand"},
{"default:gravel" ,"default:gravel", "default:gravel"},
{"default:clay_lump" ,"default:clay_lump", "default:clay_lump"},
}
})

minetest.register_node("cement:aggregate_cement", {
description = "Cement Aggregate Block",
tiles = {'cement_aggregate.png'},
groups = {cracky=3, falling_node=1},
})

minetest.register_craft({
output = "cement:bucket_cement",
recipe = {
{"cement:aggregate_cement"},
{"cement:aggregate_cement"},
{"bucket:bucket_water"},
}
})

minetest.register_craft({
output = "concrete:concrete 4",
recipe = {
{"cement:cement", "default:stone"},
{"default:stone", "cement:cement"},
}
})

minetest.register_node("cement:cement", {
description = "Cement Block",
tiles = {"cement_block.png"},
groups = {cracky=3},
})

minetest.register_node(":concrete:concrete", {
description = "Conecrete Block",
tiles = {"cement_concrete.png"},
groups = {cracky=3},
})

-- registering cement buckets
bucket.register_liquid(
"cement:cement_source",
"cement:cement_flowing",
"cement:bucket_cement",
"cement_bucket.png"
)
-- registering cement buckets end


CEMENT_VISC = 20

minetest.register_node("cement:cement_flowing", {
description = "Flowing Cement",
inventory_image = minetest.inventorycube("cement_cement.png"),
drawtype = "flowingliquid",
tiles = {"cement_cement.png"},
special_tiles = {
{name="cement_cement.png", backface_culling=false},
{name="cement_cement.png", backface_culling=true},
},
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
liquidtype = "flowing",
liquid_alternative_flowing = "cement:cement_flowing",
liquid_alternative_source = "cement:cement_source",
liquid_viscosity = CEMENT_VISC,
groups = {water=3, liquid=3, not_in_creative_inventory=1},
})

minetest.register_node("cement:cement_source", {
description = "Cement Source",
inventory_image = minetest.inventorycube("cement_cement.png"),
drawtype = "liquid",
tiles = {"cement_cement.png"},
special_tiles = {
-- New-style water source material (mostly unused)
{name="cement_cement.png", backface_culling=false},
},
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
liquidtype = "source",
liquid_alternative_flowing = "cement:cement_flowing",
liquid_alternative_source = "cement:cement_source",
liquid_viscosity = WATER_VISC,
groups = {water=3, liquid=3,},
})

-- registering cement abms source
minetest.register_abm({
nodenames = {"cement:cement_source"},
interval = 60,
chance = 1,
action = function(pos)
minetest.env:add_node(pos, {name="cement:cement"})
end
})

minetest.register_abm({
nodenames = {"cement:cement_flowing"},
interval = 55,
chance = 1,
action = function(pos)
minetest.env:add_node(pos, {name="cement:cement"})
end
})
print("Cement by Jordach / RAPHEAL Loaded!")
"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
Jordach
Member
 
Posts: 4412
Joined: Mon Oct 03, 2011 17:58
GitHub: Jordach
IRC: Jordach
In-game: Jordach

by Jordach » Tue Dec 04, 2012 08:12

That's odd, I used it before and it works fine on my local server.

However, I'm sure that the crafting system is correct, because minetest failed to throw an error at me.

I dunno what to do now, however, I have the feeling that the new abm I used is better.

As soon as I get home tonight, I will take a look into it.

P.s the liquids should work because I copy and pasted them from the default mod, also, I tested this in the win32 build of 0.4.3. Hope this helps.

-jordach

( ͡° ͜ʖ ͡°) ( ͡o ͜ʖ ͡o) [$ ( ͡° ͜ʖ ͡°) $] ( ͡$ ͜ʖ ͡$) ヽ༼ຈل͜ຈ༽ノ



My image and media server is back online and is functioning as normal.
 

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

by RAPHAEL » Tue Dec 04, 2012 09:42

Jordach wrote:That's odd, I used it before and it works fine on my local server.

However, I'm sure that the crafting system is correct, because minetest failed to throw an error at me.

I dunno what to do now, however, I have the feeling that the new abm I used is better.

As soon as I get home tonight, I will take a look into it.

P.s the liquids should work because I copy and pasted them from the default mod, also, I tested this in the win32 build of 0.4.3. Hope this helps.

-jordach

I tested it in the latest daily unstable under Linux Mint. (updated about two days ago)
"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)
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 10 guests

cron