Towny and Switch Blocks from Other Mods

50 views
Skip to first unread message

Eric Williamson

unread,
Aug 5, 2014, 1:39:47 PM8/5/14
to towny-a...@googlegroups.com
Is it possible to extend Towny to cover Block IDs outside of Vanilla? I am working on a server with TerraFirmaCraft and would like Towny to recognize the TFC doors and such with regard to Switch rights. A sample block ID from the TFC.cfg is:

    I:DoorWhiteElm=2054

I've tried adding various forms (2054, '2054', DoorWhiteElm, WHITE_ELM_DOOR, etc.) in the Switch ID section of the config.yml but haven't found a working solution yet.

I appreciate any help. Thanks!

LlmDl

unread,
Aug 5, 2014, 2:09:43 PM8/5/14
to towny-a...@googlegroups.com
If its a modded block use x2054,

On Tue, 05 Aug 2014 12:39:47 -0500, Eric Williamson <eri...@gmail.com>
wrote:
--
Using Opera's revolutionary email client: http://www.opera.com/mail/

Eric Williamson

unread,
Aug 5, 2014, 3:11:43 PM8/5/14
to towny-a...@googlegroups.com
Hmm, I have tried that one as well with no luck. The section looks like this, perhaps I'm still formatting something wrong:

  # Items which can be blocked or enabled via town/plot flags
 
# 25 - noteblock
 
# 54 - chest ...etc
  switch_ids
: DISPENSER,NOTE_BLOCK,CHEST,FURNACE,BURNING_FURNACE,WOODEN_DOOR,LEVER,STONE_PLATE,IRON_DOOR_BLOCK,WOOD_PLATE,STONE_BUTTON,TRAP_DOOR,JUKEBOX,DIODE_BLOCK_OFF,DIODE_BLOCK_ON,FENCE_GATE,TRAPPED_CHEST,GOLD_PLATE,IRON_PLATE,REDSTONE_COMPARATOR_OFF,REDSTONE_COMPARATOR_ON,BEACON,HOPPER,DROPPER,MINECART,STORAGE_MINECART,POWERED_MINECART,CARROT_STICK,EXPLOSIVE_MINECART,HOPPER_MINECART,x1500,x1501,x1502,x1503,x1505,x1507,x1508,x1510,x1511,x1512,x1514,x1515,x1516,x1517,x1519,x1523,x1524,x2003,x2006,x2007,x2010,x2011,x2013,x2015,x2023,x2024,x2041,x2042,x2043,x2044,x2045,x2046,x2047,x2048,x2049,x2050,x2051,x2052,x2053,x2054,x2055,x2056,x2057,x2060,x2061,x2065,x2067,x2100,x2128,x2132,x3969,x4063,x4064,x4065,x4067,x4068,x4070,x4071,x4072,x4073,x4074,x4075,x4078,x4079,x4089,x4090,x4091,x4093


Eric Williamson

unread,
Aug 5, 2014, 4:43:15 PM8/5/14
to towny-a...@googlegroups.com
I dug through the support tickets and found a fellow with similar issues from Thermal Expansion. My guess is this is a problem between TFC and MCPC+ as faced there, so no solution. I have been able to get LWC to readily recognize all the blocks, so we'll just lock them individually that way.

LlmDl

unread,
Aug 5, 2014, 6:54:54 PM8/5/14
to towny-a...@googlegroups.com
I have just been informed you are using the wrong numbers. Use a
clay-brick item on the blocks you want to lock and it will tell you the
proper number to use.


On Tue, 05 Aug 2014 12:39:47 -0500, Eric Williamson <eri...@gmail.com>
wrote:

Eric Williamson

unread,
Aug 5, 2014, 7:51:11 PM8/5/14
to towny-a...@googlegroups.com
I'm not sure what you mean? Like, take a Vanilla brick (ID 336) and right click the blocks or something? I tried a few versions of that with no result. I do appreciate the assistance thus far.

LlmDl

unread,
Aug 6, 2014, 12:07:00 AM8/6/14
to towny-a...@googlegroups.com
File an issue ticket on the tracker, you might not be on the right version.

http://code.google.com/a/eclipselabs.org/p/towny/issues/entry?template=Defect%20report%20from%20user


On Tue, 05 Aug 2014 18:51:10 -0500, Eric Williamson <eri...@gmail.com>
wrote:

> I'm not sure what you mean? Like, take a Vanilla brick (ID 336) and right
> click the blocks or something? I tried a few versions of that with no
> result. I do appreciate the assistance thus far.
>


Eric Williamson

unread,
Aug 6, 2014, 2:47:50 PM8/6/14
to towny-a...@googlegroups.com
I can certainly do so, but want to be sure I'm not wasting y'alls time first if possible. It looks like my problem is identical to the one reported here:


The only differences are (1) he's on version 87 and I'm using the latest version of Towny, TownyChat, and Questioner and (2) he's trying with TE and I'm using TFC (this one is basically identical in that neither mod offers official support for MCPC+, which I'm using).

Given that, if the problem is unsolvable on your end, I'd simply just write it off as something I ca't fix and work around it with LWC. But, if there's something else that might result in an actual fix I'll certainly file that ticket.

Thanks!

LlmDl

unread,
Aug 6, 2014, 3:36:31 PM8/6/14
to towny-a...@googlegroups.com
You should be able to just use a brick (item 336), right click or left
click and see the block id of the containers. Your version of towny
includes that feature.

On Wed, 06 Aug 2014 13:47:50 -0500, Eric Williamson <eri...@gmail.com>
wrote:

> https://code.google.com/a/eclipselabs.org/p/towny/issues/detail?id=2072

Eric Williamson

unread,
Aug 6, 2014, 10:54:56 PM8/6/14
to towny-a...@googlegroups.com
Ah, I figured it out...I needed to do the /townyadmin toggle debug command first to get the brick working. Good to go now with that. It returns a value of X2054 for the test item (White Elm Door) which I thought I had used. Turns out, however, that I used lower case and that was the problem. Since turning it to upper case, all my tests are coming out positive. So, I think I'm good to go, and certainly appreciate the assistance. A side question, is there anywhere that documents the debug approach? Because that's definitely handy!

Thanks again for all the help. Love Towny even more now...

Eric
Reply all
Reply to author
Forward
0 new messages