Rogier
4d71fb9942
Add privilege for rotating nodes (disabled by default)
2015-03-12 10:52:04 +01:00
Rogier
6c57148563
Complete the split into a wrench API and separate registration of default wrenches
...
This allows external mods to register their own wrenches, or to register their
own recipes for existing wrenches
2015-02-07 13:16:50 +01:00
Rogier
01f735cde8
[WIP] Crude split of init.lua in preparation of restucture
2015-02-07 11:53:47 +01:00
Rogier
d72886c12f
Remove bitwise operations (bit.xxx()), which are not in lua 5.1 and earlier
2015-02-06 23:32:30 +01:00
Rogier
f3e6e35af8
Fix submode setting when right-clicking a non-rotatable node
2015-02-06 19:05:07 +01:00
Rogier
2242f541e7
Make dependency on default optional (and disable initial crafting recipe if default not found)
2015-02-06 17:45:23 +01:00
Rogier
7b575983c1
Update README, and add more comments to init.lua
2015-02-06 12:51:25 +01:00
Rogier
b45b069d4a
Add 'cube' and 'linear' methods for representing the orientation mode of wrenches
...
The cube method has pictures, the linear method does not (yet)
2015-02-06 12:51:25 +01:00
Rogier
6b9ecc0121
Fix problem of some recipies not being created sometimes
2015-02-06 12:51:25 +01:00
Rogier
82b4c14b6b
Added a player-relative positioning mode.
...
The existing (absolute) positioning mode sets a fixed orientation
relative to the world.
The new relative mode, sets the orientation relative to the player
(or specifically, relative to the punched side of the node).
E.g.:
In absolute mode, if a wrench is configured using a chest with
the lock-side facing north, and the lid facing east. then every subsequent
chest that is positioned, will get its lock-side facing north, and its
lid east.
In relative mode, if a wrench is configured using a chest, by punching
the side with the lock, while the lid is to the right, then every
subsequent chest that is positioned, will get its lock-side on the
side the player punched, and the lid to the right of the player.
2015-02-06 12:51:25 +01:00
Rogier
c0096d686e
Fix up/down rotation when hitting the bottom side of a node
2015-02-06 12:51:25 +01:00
Rogier
a8ffcb97bd
No need to check for diggability - the node is not being digged
2015-02-06 12:51:25 +01:00
Rogier
ee19ddfad1
Renamed mod to 'rotate' (to avoid conflict with technic wrench mod)
2015-02-06 12:51:25 +01:00
Rogier
04f8e91f9c
Add a positioning mode for wrenches
...
(The desired orientation is copied from an existing node,
subsequent punches set the punched node to exactly that orientation)
2015-02-06 12:51:25 +01:00
Rogier
9d623ad111
Determine rotation based on pointed-to side of the node instead of faced side
2015-02-06 12:51:25 +01:00
Rogier
9f67306e06
Fix crash when rotating from below or above
2015-02-06 12:51:25 +01:00
Rogier
f0cf684342
Add a setting to disable the wooden wrench (e.g. to prevent vandalism)
2015-02-06 12:51:25 +01:00
Rogier
6ee1edfd69
Fix for attempted rotation of some unrotatable node types
2015-02-02 18:28:44 +01:00
Rogier
40d3ec5353
Refine debug setting
2015-02-02 18:28:15 +01:00
Rogier
5803677d6f
Add wooden wrench for players without metals
2015-02-02 17:54:45 +01:00
Rogier
26a95424e2
Parameterize last hard-coded usage of mod name
2015-02-02 17:35:40 +01:00
Rogier
9a055080bb
Add support for different crafting recipes, and change the default one
...
The previous recipe conflicts with technic's wrench
(the mod's name conflicts as well. To be renamed...)
2015-02-02 17:35:01 +01:00
Rogier
bd77cd9bae
Slight change to wear calculation
2015-02-02 16:36:15 +01:00
Rogier
c32af87b77
Alert user when using an unconfigured wrench
2015-02-02 16:36:15 +01:00
Rogier
8e63035a5d
Add/replace generated pictures, and enable copper and gold wrenches
2015-02-02 16:36:15 +01:00
Rogier
76c947de8f
Add support for wrenches of different materials
2015-02-02 15:29:29 +01:00
Rogier
34e1b9038a
Initial implementation of wrench
2015-02-02 15:29:06 +01:00