[Mod] Craft Guide [craft_guide] - Shows crafts for all loade

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Fri Jan 03, 2014 02:09

I been trying to find time to fix all the SS on my posts but been so busy. Fixed this one for you Azuna.

If there are any others you want just post in the thread and i'll update those too.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Sat Jan 04, 2014 04:55

This is a wonderful day. Welcome back, cornernote.
 

User avatar
SegFault22
Member
 
Posts: 870
Joined: Mon May 21, 2012 03:17

by SegFault22 » Sat Jan 04, 2014 05:47

What if an item, has more than One recipe outputting it?
Resources are abundant; only money is scarce. People should not have to work hard and remain poor just to pay for the needs of survival.
Society can thrive without money - but only if productive members of society are rewarded for being productive.
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Thu Feb 13, 2014 11:40

I'm making a mod. How to keep an invisible recipe?
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
qwrwed
Member
 
Posts: 323
Joined: Sun Jul 22, 2012 20:56
In-game: qwrwed or Nitro

by qwrwed » Fri Feb 14, 2014 15:35

In your node definition, set groups={not_in_craft_guide}.
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Thu Feb 20, 2014 13:00

qwrwed wrote:In your node definition, set groups={not_in_craft_guide}.


is not working.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("mod?:node?", {
    description = "dodename?",
    drawtype = "plantlike",
    tiles = {"side?"},
    set groups = {not_in_craft_guide},
    paramtype = "light",
    walkable = false,
    on_construct = function(pos)
        local meta = minetest.get_meta(pos)
        meta:set_string("infotext", "info?")
    end,
    inventory_image = "side?",
    is_ground_content = true,
    selection_box = {
        type = "fixed",
        fixed = {-0.28, -0.5, -0.28, 0.28, 0.5, 0.28}
    },
    groups = {tree=3,choppy=3,oddly_breakable_by_hand=5,flammable=3},
      sounds = default.node_sound_wood_defaults(),
})


as it should be?
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

User avatar
addi
Member
 
Posts: 605
Joined: Thu Sep 20, 2012 03:16

by addi » Thu Feb 20, 2014 15:06

brunob.santos wrote:
qwrwed wrote:In your node definition, set groups={not_in_craft_guide}.


is not working.

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("mod?:node?", {
    description = "dodename?",
    drawtype = "plantlike",
    tiles = {"side?"},
    set groups = {not_in_craft_guide},
    paramtype = "light",
    walkable = false,
    on_construct = function(pos)
        local meta = minetest.get_meta(pos)
        meta:set_string("infotext", "info?")
    end,
    inventory_image = "side?",
    is_ground_content = true,
    selection_box = {
        type = "fixed",
        fixed = {-0.28, -0.5, -0.28, 0.28, 0.5, 0.28}
    },
    groups = {tree=3,choppy=3,oddly_breakable_by_hand=5,flammable=3},
      sounds = default.node_sound_wood_defaults(),
})


as it should be?

minetest.register_node("mod?:node?", {
description = "dodename?",
drawtype = "plantlike",
tiles = {"side?"},
set groups = {not_in_craft_guide},
paramtype = "light",
walkable = false,
on_construct = function(pos)
local meta = minetest.get_meta(pos)
meta:set_string("infotext", "info?")
end,
inventory_image = "side?",
is_ground_content = true,
selection_box = {
type = "fixed",
fixed = {-0.28, -0.5, -0.28, 0.28, 0.5, 0.28}
},
groups = {tree=3,choppy=3,oddly_breakable_by_hand=5,flammable=3,not_in_craft_guide=1},
sounds = default.node_sound_wood_defaults(),
 

User avatar
BrunoMine
Member
 
Posts: 902
Joined: Thu Apr 25, 2013 17:29
GitHub: BrunoMine

by BrunoMine » Thu Feb 20, 2014 16:49

thank you!
My small square universe under construction ... Minemacro
Comunidade Minetest Brasil
www.minetestbrasil.com
 

Jouster27
Member
 
Posts: 117
Joined: Fri Mar 29, 2013 14:16

by Jouster27 » Sat Feb 22, 2014 00:33

Request: Can you make it so that unknown blocks display the identifiers on mouse-over?
 

acblonde
Member
 
Posts: 19
Joined: Wed Feb 26, 2014 13:28

by acblonde » Thu Feb 27, 2014 16:07

what monsters are there
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

by Krock » Thu Feb 27, 2014 16:31

acblonde wrote:what monsters are there

READ MOD TITLE wrote:[Mod] Craft Guide [craft_guide] - Shows crafts for all loaded mods.

*headdesks*

You've got into the wrong topic.
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

Landrover110
Member
 
Posts: 19
Joined: Mon Jan 13, 2014 09:38
In-game: Landrover

by Landrover110 » Mon Mar 24, 2014 17:12

Cool mod another reson to use minetest
 

User avatar
Capaverdeferro
Member
 
Posts: 68
Joined: Mon Feb 03, 2014 22:21

by Capaverdeferro » Sat Apr 19, 2014 14:55

when I search something, does not work! just have the recipe of the same
 

acblonde
Member
 
Posts: 19
Joined: Wed Feb 26, 2014 13:28

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by acblonde » Sat Jul 05, 2014 20:18

how do you enable a mod lol srry nothing related to this but I can't figure it out and I can't download the animal mod it won't work help
 

acblonde
Member
 
Posts: 19
Joined: Wed Feb 26, 2014 13:28

Re:

by acblonde » Sat Jul 05, 2014 20:20

Krock wrote:
acblonde wrote:what monsters are there

READ MOD TITLE wrote:[Mod] Craft Guide [craft_guide] - Shows crafts for all loaded mods.

*headdesks*

You've got into the wrong topic.

I know srry but how can you enable a mod in windows 8 with no viruses can't figure it out its sooooooooooo annoying
 

acblonde
Member
 
Posts: 19
Joined: Wed Feb 26, 2014 13:28

Re:

by acblonde » Sat Jul 05, 2014 20:21

Capaverdeferro wrote:when I search something, does not work! just have the recipe of the same

what do you wanna know the craft of I might help
 

User avatar
LionsDen
Member
 
Posts: 525
Joined: Thu Jun 06, 2013 03:19

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by LionsDen » Sat Jul 05, 2014 21:29

I have found a problem with recipes. If the recipe uses a group then it shows unknown node in the crafting grid. For example, a couple of recipes use group:wood and in the crafting guide they show up as unknown nodes.
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Linuxdirk » Sun Nov 02, 2014 15:43

LionsDen wrote:I have found a problem with recipes. If the recipe uses a group then it shows unknown node in the crafting grid. For example, a couple of recipes use group:wood and in the crafting guide they show up as unknown nodes.

I can confirm this :(
 

Miner59
Member
 
Posts: 46
Joined: Mon Sep 22, 2014 19:14

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Miner59 » Sun Nov 02, 2014 22:57

I use this mod too and my workaround is to look in the console window for the item names used in a recipe with unknown nodes. Every recipe you select in the craft guide shows as text in console too.
Of course you need to open minetest program then in a terminal window.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by deivan » Sun Nov 02, 2014 23:18

I solved this in my version, I generated the first random item of the group and added it in the place of the "unknow item". :)
 

User avatar
arcturian_vagabond
Member
 
Posts: 15
Joined: Thu Dec 11, 2014 01:58
In-game: posipil

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by arcturian_vagabond » Fri Dec 12, 2014 23:13

When I put a glass block into the Output slot the Cook slot shows unknown item. Is this a known bug? Is there a fix or work-around?

Image
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Don » Sat Dec 13, 2014 13:50

arcturian_vagabond wrote:When I put a glass block into the Output slot the Cook slot shows unknown item. Is this a known bug? Is there a fix or work-around?

Image

This is the bug that is discussed above. Glass is made by cooking group:sand. Hopefully someone will fix this soon.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Linuxdirk » Sat Dec 13, 2014 14:26

I wish that this “groups are unknown items” bug will be fixed by simply taking the first node from the group’s members as icon and add a little G for “group” in the lower right corner of the icon and the “X group” where X is group:X with first character in uppercase.
 

User avatar
Don
Member
 
Posts: 1641
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Don » Sat Dec 13, 2014 14:37

Linuxdirk wrote:I wish that this “groups are unknown items” bug will be fixed by simply taking the first node from the group’s members as icon and add a little G for “group” in the lower right corner of the icon and the “X group” where X is group:X with first character in uppercase.

Maybe someone can make a mod that adds images for the different groups
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Linuxdirk » Sat Dec 13, 2014 14:55

Don wrote:Maybe someone can make a mod that adds images for the different groups

… or write a patch that works as described and send a pull request.

Unfortunately my Lua skills are too low for that :)
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by cornernote » Sat Dec 13, 2014 15:03

If someone can send a pull request I'd be happy to accept it. Unfortunately I don't have time to code and test at the moment.
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by deivan » Sat Dec 13, 2014 15:19

I already coded it in my version Cornernote, copy and past... ;)
 

cornernote
Member
 
Posts: 844
Joined: Wed Jul 11, 2012 15:02

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by cornernote » Sat Dec 13, 2014 15:31

Hey devian,

I looked at the source of your version. It's not in english and my lua skills are somewhat neglected, so it wasn't easy to follow.

It also seems you took a different approach to collecting the recipes. You use minetest.get_craft_recipe and minetest.get_all_craft_recipes, whereas I override the function that registered the recipes.

Perhaps I'm missing something, but it does not seem like a copy and paste solution.

Feel free to do a pull request, just click the pencil (edit) icon here:
https://github.com/cornernote/minetest- ... _guide.lua
 

User avatar
Linuxdirk
Member
 
Posts: 497
Joined: Wed Sep 17, 2014 11:21
GitHub: dsohler
In-game: Linuxdirk

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by Linuxdirk » Sat Dec 13, 2014 15:44

cornernote wrote:[…] but it does not seem like a copy and paste solution.

Copy&Paste solutions are always the least desirable solutions of all possible solutions (so is coding in different languages than English, but that’s another topic *g*) :)
 

deivan
Member
 
Posts: 452
Joined: Fri Feb 15, 2013 10:16

Re: [Mod] Craft Guide [craft_guide] - Shows crafts for all l

by deivan » Sat Dec 13, 2014 15:52

Don't be a cry baby.... Is a function, you give the group and the function return a item from the group... Easy and clear...
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 37 guests

cron