Page 1 of 1

[Fork] of Don's mychisel mod

PostPosted: Sat Jan 20, 2018 16:26
by Gundul
[Fork] mychisel


the original mod is from don, which you can see here
Image

https://forum.minetest.net/viewtopic.php?f=11&t=13104

This mod is about carving stuff out of blocks. Use the chivel on wooden planks or stone
and you will carve nice patterns into it. I made a fork and added an api to add more nodes
to be carved out of blocks with the chivel. Also this mod works now on multiplayer servers
which it didn't before. If technic mod is present you will recieve a rechargeable tool instead
of an wearout one.

First mod I added to mychisel with its new api is the "facade" mod from TumeniNodes:
https://forum.minetest.net/viewtopic.php?f=9&t=18208
Image


Here is a copy of the new description file in the mod folder, including description of the api:
Code: Select all
A chisel that allows you to shape blocks.
If technic mod is present the chisel will be rechargeable.

To craft a chisel just put a steel ingot and a brown wool in the crafting grid. The steel goes above the wool.
(different recipe for technic device)

Once you have your chisel you can set the style by right clicking.

There are 5 styles to choose from(default)
- horizontal groove
- vertical groove
- cross groves (this matches up with the vertical and horizontal grooves
- square
- 4 edges

Right click until you see the style you want in the chat then point at the node and left click.
Each node can be cut 4 times. Each time you chisel the groove will get a little deeper.

Shift right click to change the supported mod. Here the list of supported mods:
default (mychisel mod)    5 styles
facade         10 styles

Only certain nodes can be chiseled. Here are the supported nodes


   Cobble
   Sandstone
   Clay
   Coal Block
   Stone
   Desert Stone"
   Wood
   Acacia Wood
   Aspen Wood
   Pine Wood
   Desert Cobble
   Jungle Wood
   Sandstone Brick
   Stone Brick
   Desert Stone Brick

Forum - https://forum.minetest.net/viewtopic.php?f=11&t=13104



*************************************************************************
*************************************************************************
*** added 01/2018 by Gundul                                           ***
*** chiselapi:                                                        ***
*************************************************************************
*************************************************************************

Fist init your mod with mychisel:
 
     chisel.add_mod(modname,number)
    
     modname = the name of your mod
     number  = number of different styles for each node
    
    
  Then register your nodes with mychisel:
 
     chisel.register_node(modname, prefix, raw, design)
    
     modname = the name of your node
     prefix  = prefix of your new node name right behind the ":", usually the name of the raw material without "modname:"
     raw     = name of the raw material for example "default:stone"
     design  = name of your nodestyle after beeing chiseled
    

  Naming your nodes:
 
   In your mod the nodes should be named like this: modname..":"..prefix.."_"..design
   
   
   
  depends.txt:
 
      In your modfolder add this line to your depends.txt: mychisel?
     
     
   
    
    
     Example:  you made a mod named "pillar" with 3 different pillar designs
    
        first register your mod: chisel.add_mod(pillar,3)
       
       
        then register each node of it:

        chisel.register_node("pillar", "stone", "default:stone", "round")
        chisel.register_node("pillar", "stone", "default:stone", "square")
        chisel.register_node("pillar", "stone", "default:stone", "hexagon")
       
       
        Do this for every material your mod supports:
       
        chisel.register_node("pillar", "sandstone", "default:sandstone", "round")
        chisel.register_node("pillar", "sandstone", "default:sandstone", "square")
        chisel.register_node("pillar", "sandstone", "default:sandstone", "hexagon")
        ...
       
       
        In your mod the nodes should have names like:
       
            pillar:stone_round
            pillar:stone_square
            pillar:stone_hexagon
            pillar:sandstone_round
            ...



Downloads:
If you want to try yourself, download and check from my github page :

mychisel fork: https://github.com/berengma/mychisel/archive/master.zip
facade fork: https://github.com/berengma/facade/archive/master.zip

Re: [Fork] of Don's mychisel mod

PostPosted: Sat Jan 20, 2018 17:26
by azekill_DIABLO
+1 very nice addition for building!

Re: [Fork] of Don's mychisel mod

PostPosted: Sun Jan 21, 2018 00:50
by TumeniNodes
Only one question.

I am testing this out before I merge your PR
But, when I shift/right click, I only get default options, facade does not come up

I have installed both your MyChisel fork and Facade fork, and have tried with both creative enabled and off
I did not look at the code fully, not sure what the issue might be

Re: [Fork] of Don's mychisel mod

PostPosted: Sun Jan 21, 2018 08:12
by Gundul
TumeniNodes wrote:Only one question.

I am testing this out before I merge your PR
But, when I shift/right click, I only get default options, facade does not come up

I have installed both your MyChisel fork and Facade fork, and have tried with both creative enabled and off
I did not look at the code fully, not sure what the issue might be


I will look into this. What minetest version did you use ? Any other mods installed ?

I setup a testserver to try the mods out:
(Minetest 0.4.16 stable)

gundul.ddnss.de
Port 39155

It is only a Raspberry Pi2, so not too fast :)

[Edit]
I have no idea why it does so.
It works on my home pc. It works on my testserver.
But it does not work on my main server "Jungle".
Same issue than you have, facade mod is not loaded.

confusing

Re: [Fork] of Don's mychisel mod

PostPosted: Sun Jan 21, 2018 12:25
by Gundul
confusing ended just a minute ago.
Solutions can be so easy. I just forgot to push
the latest fixes of facade mod fork to github.
The api was working all the time.

It is all up to date on my github now !

Also the two mods running on my server jungle and they work.
https://forum.minetest.net/viewtopic.php?f=10&t=13125

Re: [Fork] of Don's mychisel mod

PostPosted: Fri Mar 30, 2018 15:53
by Gundul
The chisel can be repaired now if the anvil mod is installed.
I made a pull request on minetest-mods/mychisel.

Until then it can be downloaded from my github.

Re: [Fork] of Don's mychisel mod

PostPosted: Sun May 06, 2018 07:48
by Gundul
--- New in mychisel ---

    - I added all default metallblocks to the default program of mychisel.
    - The command /chisel now shows you all installed mods working with chisel and all supported materials

A github pull request is made on minetest-mods/mychisel but not accepted yet. Anyone who wants to try this out
can download it here:

https://github.com/berengma/mychisel/archive/master.zip

Re: [Fork] of Don's mychisel mod

PostPosted: Sun May 06, 2018 17:26
by KCoombes
Please add silver_sandstone, as it is now part of default MTG.

Re: [Fork] of Don's mychisel mod

PostPosted: Mon May 07, 2018 17:00
by Gundul
KCoombes wrote:Please add silver_sandstone, as it is now part of default MTG.

So is desert_sandstone.
Added the two, including its bricks.

Re: [Fork] of Don's mychisel mod

PostPosted: Mon May 07, 2018 17:28
by Phoenixflo44
It's best if you can cut a pixel out of a block

Re: [Fork] of Don's mychisel mod

PostPosted: Fri Jul 13, 2018 12:47
by LMD
"Please add silver_sandstone, as it is now part of default MTG."
use minetest.registered_nodes to make chisel work for all nodes.

Re: [Fork] of Don's mychisel mod

PostPosted: Fri Jul 13, 2018 19:51
by Gundul
LMD wrote:"Please add silver_sandstone, as it is now part of default MTG."
use minetest.registered_nodes to make chisel work for all nodes.


Please read the post from KCoombes 3 posts before.
And maybe you want to check my GitHub. You find the link below my name on the left.

Make chisel work for all nodes is not intended.

Re: [Fork] of Don's mychisel mod

PostPosted: Sat Jul 14, 2018 09:03
by LMD
You could check whether the nodes have a certain flag.