[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing • View topic - Builder's Helper and Carpenter's Blocks

Cheshire Cat Computing

Software support and information
It is currently Tue Mar 26, 2019 5:53 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Fri Sep 11, 2015 2:54 pm 
Offline
Silver User

Joined: Fri Jul 10, 2015 8:20 pm
Posts: 12
They work together well for 1.7.10 (unfortunately CP blocks will not be updated anymore :cry: ) Rotation is a problem because of the way CP blocks uses different blocks for facing). If anybody is interested i have some plans using CP blocks.


Top
 Profile Send private message  
 
PostPosted: Fri Sep 11, 2015 4:55 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
One of the things on the wishlist is to allow user configuration in the cheshirecat.cfg file to specify how to rotate custom blocks.

Under MC1.8, if the custom block uses the standard blockstates for FACING and AXIS then it will be handled automatically. However, if it uses its own custom states, or just the DV to indicate direction (as in 1.7) then Builders Helper is unable to rotate it.

The way it is likely to be done will be via specifying the DV for each rotation. Then the rotate function can simply move the DV on to the next item in the list --
customrotate {
S:module:blockname=n,e,s,w
}

If you can post a link to the CP Blocks project page I might be able to see how they are implemented?

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Fri Sep 11, 2015 7:07 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I have custom rotation rules working in v2.6beta2, though only for MC1.8

They require you to know the DV values for each possible facing of the custom block, and its internal name (use F3 to get these pieces of information). I'm still trying to effectively test this out, though, as everything is a bit of an unknown...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Sun Sep 13, 2015 9:30 am 
Offline
Silver User

Joined: Fri Jul 10, 2015 8:20 pm
Posts: 12
Carpenter's Blocks official page http://www.carpentersblocks.com/downloads.html states it will not be updated for versions 1.8. The code for the 1.7 version can be downloaded from the site, but not sure it worth your time to make updates for a ver 1.7 only mod, but of course that's up to you. Thanks again for you help.


Top
 Profile Send private message  
 
PostPosted: Sun Sep 13, 2015 3:48 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
I'll need to get the custom rotation code ported over to my 1.7 branch (shouldn't be too hard) and then I can take a look. It all depends on whether they use DV for rotation, or a tile entity -- if the latter, then I wont be able to support it.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Tue Sep 15, 2015 3:00 pm 
Offline
Silver User

Joined: Fri Jul 10, 2015 8:20 pm
Posts: 12
I haven't programmed in Java in many years, still trying to find my way back into it.

Here is what the saved plan for a CP block looks like:
BLOCK CarpentersBlocks:blockCarpentersSlope 0,0,0 {cbOwner:"bb217a1a-2d0a-478f-a4f0-82f7971f913e",cbMetadata:0s,cbChiselDesign_6:"",cbChiselDesign_4:"",cbChiselDesign_5:"",cbDesign:"",id:"TileEntityCarpentersBlock",cbAttrList:[0:{cbAttribute:6b,id:98s,Count:1b,Damage:0s,},],cbChiselDesign_2:"",cbChiselDesign_3:"",cbChiselDesign_0:"",cbChiselDesign_1:"",}

It's the cbMetadata contains what CP block to use.

CARPENTER'S BLOCKS - block facing/type:
WEDGE_SE = 0
WEDGE_NW = 1
WEDGE_NE = 2
WEDGE_SW = 3

WEDGE_NEG_N = 4
WEDGE_NEG_S = 5
WEDGE_NEG_W = 6
WEDGE_NEG_E = 7

WEDGE_POS_N = 8
WEDGE_POS_S = 9
WEDGE_POS_W = 10
WEDGE_POS_E = 11

WEDGE_INT_NEG_SE = 12
WEDGE_INT_NEG_NW = 13
WEDGE_INT_NEG_NE = 14
WEDGE_INT_NEG_SW = 15

WEDGE_INT_POS_SE = 16
WEDGE_INT_POS_NW = 17
WEDGE_INT_POS_NE = 18
WEDGE_INT_POS_SW = 19

WEDGE_EXT_NEG_SE = 20
WEDGE_EXT_NEG_NW = 21
WEDGE_EXT_NEG_NE = 22
WEDGE_EXT_NEG_SW = 23

WEDGE_EXT_POS_SE = 24
WEDGE_EXT_POS_NW = 25
WEDGE_EXT_POS_NE = 26
WEDGE_EXT_POS_SW = 27

OBL_INT_NEG_SE = 28
OBL_INT_NEG_NW = 29
OBL_INT_NEG_NE = 30
OBL_INT_NEG_SW = 31

OBL_INT_POS_SE = 32
OBL_INT_POS_NW = 33
OBL_INT_POS_NE = 34
OBL_INT_POS_SW = 35

OBL_EXT_NEG_SE = 36
OBL_EXT_NEG_NW = 37
OBL_EXT_NEG_NE = 38
OBL_EXT_NEG_SW = 39

OBL_EXT_POS_SE = 40
OBL_EXT_POS_NW = 41
OBL_EXT_POS_NE = 42
OBL_EXT_POS_SW = 43

PRISM_NEG = 44
PRISM_POS = 45
PRISM_1P_POS_N = 46
PRISM_1P_POS_S = 47

PRISM_1P_POS_W = 48
PRISM_1P_POS_E = 49
PRISM_2P_POS_NS = 50
PRISM_2P_POS_WE = 51

PRISM_2P_POS_SE = 52
PRISM_2P_POS_NW = 53
PRISM_2P_POS_NE = 54
PRISM_2P_POS_SW = 55

PRISM_3P_POS_NWE = 56
PRISM_3P_POS_SWE = 57
PRISM_3P_POS_NSW = 58
PRISM_3P_POS_NSE = 59

PRISM_POS_4P = 60
PRISM_WEDGE_POS_N = 61
PRISM_WEDGE_POS_S = 62
PRISM_WEDGE_POS_W = 63

PRISM_WEDGE_POS_E = 64


Top
 Profile Send private message  
 
PostPosted: Tue Sep 15, 2015 3:09 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
OK, in that case, it means that the current custom-block support in Builders Helper v2.6+ will not support Carpenters Blocks.

This is because the support only works on blocks where the orientation is held in the DV. From what you say above, the orientation is held in the cbMetadata short attribute of the associated Tile Entity, and the mod never affects Tile Entities when rotating.

Of course, it isn't impossible to do, but it would mean a lot of work as rotation code would need to be added to the Tile Entity handler, plus there would need to be a flixibly configurable way to define Tile Entity rotation rules.

At least I now have the numerical values and the NBT field name and type for whe I get around to doing it...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group