[Fork] of Don's mychisel mod

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

[Fork] of Don's mychisel mod

by Gundul » Sat Jan 20, 2018 16:26

[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
 

User avatar
azekill_DIABLO
Member
 
Posts: 7381
Joined: Wed Oct 29, 2014 20:05
Location: Under my desk (but I can't see my monitor now X'[ )
GitHub: azekillDIABLO
In-game: azekill_DIABLO

Re: [Fork] of Don's mychisel mod

by azekill_DIABLO » Sat Jan 20, 2018 17:26

+1 very nice addition for building!
【Voxellar 2.0】 ; 【MILA】 update ; 【Rec_a_MT】 ; 【BB,HD】 update ; 【▶ Youtube】 This person worked too hard to be forgotten: Feedback me!
 

User avatar
TumeniNodes
Member
 
Posts: 2417
Joined: Fri Feb 26, 2016 19:49
Location: in the dark recesses of the mind
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes

Re: [Fork] of Don's mychisel mod

by TumeniNodes » Sun Jan 21, 2018 00:50

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
My brain, is AES256 encrypted, even I don't know wth I'm thinking...
 

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [Fork] of Don's mychisel mod

by Gundul » Sun Jan 21, 2018 08:12

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
 

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [Fork] of Don's mychisel mod

by Gundul » Sun Jan 21, 2018 12:25

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
 

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [Fork] of Don's mychisel mod

by Gundul » Fri Mar 30, 2018 15:53

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.
 

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [Fork] of Don's mychisel mod

by Gundul » Sun May 06, 2018 07:48

--- 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
 

KCoombes
Member
 
Posts: 395
Joined: Thu Jun 11, 2015 23:19
Location: SW Florida, USA
In-game: Knatt

Re: [Fork] of Don's mychisel mod

by KCoombes » Sun May 06, 2018 17:26

Please add silver_sandstone, as it is now part of default MTG.
 

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [Fork] of Don's mychisel mod

by Gundul » Mon May 07, 2018 17:00

KCoombes wrote:Please add silver_sandstone, as it is now part of default MTG.

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

User avatar
Phoenixflo44
Member
 
Posts: 366
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44
 

User avatar
LMD
Member
 
Posts: 395
Joined: Sat Apr 08, 2017 08:16
Location: Bonn, Germany
GitHub: appgurueu
In-game: LMD + PRO_LMD + Limo

Re: [Fork] of Don's mychisel mod

by LMD » Fri Jul 13, 2018 12:47

"Please add silver_sandstone, as it is now part of default MTG."
use minetest.registered_nodes to make chisel work for all nodes.
 

Gundul
Member
 
Posts: 327
Joined: Thu Aug 27, 2015 10:55
Location: Europe/Asia
GitHub: berengma
IRC: Gundul

Re: [Fork] of Don's mychisel mod

by Gundul » Fri Jul 13, 2018 19:51

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.
 

User avatar
LMD
Member
 
Posts: 395
Joined: Sat Apr 08, 2017 08:16
Location: Bonn, Germany
GitHub: appgurueu
In-game: LMD + PRO_LMD + Limo

Re: [Fork] of Don's mychisel mod

by LMD » Sat Jul 14, 2018 09:03

You could check whether the nodes have a certain flag.
 


Return to WIP Mods



Who is online

Users browsing this forum: No registered users and 3 guests