Can you please post your source for the Treecapitator for Forge, because I am quite a new modder and I would like to see how to do the update reminder thing and the config
See the first news item in the OP. All the code is there.
I might be able to do something if MystCraft uses the dimension field when changing ages.
I have no idea. Please ask XCompWiz. I know that there is an API for talking to Mystcraft, and it uses forge. Beyond that, I have no clue.
---
A request for TreeCapitator. I want a tree assistant similar to the "tree chop 2" bukkit plugin. That had the option to lower the tree canopy -- for each block you wanted to put into your inventory, you had to spend the time to chop that block, but the tree would come down with gravity so you did not have to climb into the air to bring it down.
I am very concerned with over-agressive tree choppers. We actually use wood blocks for building stuff, and the idea of one chop ruining everything we have built is really not a happy idea. So, something along the lines of configurable, or keystroke controlled, choice of "Chop only one block, chop one block and bring the tree down, chop it all" (the last one not the default, and preferably op only) would be welcome.
OP states:
TreeCapitator: sometimes chopping one tree will also chop down a neighboring tree. This typically happens in jungle biomes or when two big trees are next to each other.
I would really like a "Be conservative -- I'd rather get an incomplete chop and not disturb other trees nearby" option. Can it be done?
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
A request for TreeCapitator. I want a tree assistant similar to the "tree chop 2" bukkit plugin. That had the option to lower the tree canopy -- for each block you wanted to put into your inventory, you had to spend the time to chop that block, but the tree would come down with gravity so you did not have to climb into the air to bring it down.
I am very concerned with over-agressive tree choppers. We actually use wood blocks for building stuff, and the idea of one chop ruining everything we have built is really not a happy idea. So, something along the lines of configurable, or keystroke controlled, choice of "Chop only one block, chop one block and bring the tree down, chop it all" (the last one not the default, and preferably op only) would be welcome.
OP states: I would really like a "Be conservative -- I'd rather get an incomplete chop and not disturb other trees nearby" option. Can it be done?
I'll think about possibly doing a system where the tree gets lower as you chop, but I'm not making any promises. As far as the other stuff, you can already limit the horizontal distance that the breaking effect will travel. If you set it to 6 I think that would take care of just about any issues with neighboring trees. Also, the smart tree detection should handle the concern with ruining a structure built out of logs... the code only considers a column of logs to be a tree if the topmost connected log in a column has at least 2 leaf blocks neighboring it (in the 3x3 box of blocks around it). If there aren't two leaf blocks adjacent to it the column of logs will not be felled. If that isn't enough, you can also set the sneakAction config setting to "enable", meaning that chopping will only happen if the player is sneaking.
Having the tree "fall" down by gravity would be pretty cool, but I imagine would add quite a bit of complexity. Having the sneak toggle able to set to full treecapitate, falling, or none, or the other way around, have normal tree cutting unless you use sneak, which can be set to any of the two options.
Rollback Post to RevisionRollBack
D_B
To tell them how to live is to prevent them living.
I'll think about possibly doing a system where the tree gets lower as you chop, but I'm not making any promises.
Thank you
As far as the other stuff, you can already limit the horizontal distance that the breaking effect will travel. If you set it to 6 I think that would take care of just about any issues with neighboring trees. Also, the smart tree detection should handle the concern with ruining a structure built out of logs... the code only considers a column of logs to be a tree if the topmost connected log in a column has at least 2 leaf blocks neighboring it (in the 3x3 box of blocks around it). If there aren't two leaf blocks adjacent to it the column of logs will not be felled. If that isn't enough, you can also set the sneakAction config setting to "enable", meaning that chopping will only happen if the player is sneaking.
Sounds like a plan, especially the "sneaking" feature.
(Vechs has a dungeon in a map I plan to attack where the dungeon is in a tree. I don't want to one-hit-chop an entire section of that map :-).
Have you seen the size of some mod trees? Extra Biomes seems to make 100+ block pines, and Twilight Forest makes really huge trees out of oak blocks.
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
Sounds like a plan, especially the "sneaking" feature.
(Vechs has a dungeon in a map I plan to attack where the dungeon is in a tree. I don't want to one-hit-chop an entire section of that map :-).
Have you seen the size of some mod trees? Extra Biomes seems to make 100+ block pines, and Twilight Forest makes really huge trees out of oak blocks.
One of the features I've been bouncing around in my head is a way to further limit the damage that each type of axe can do... eg- a wooden axe would only be allowed to break log blocks up to 3 blocks away, stone would travel 7 blocks, iron 15, gold/diamond 31, etc. Those numbers would be completely configurable, of course, and mod items could be added to any of the distance tiers. None of that is set in stone, but that's what I've been thinking.
I'm at a loss as to what could be causing my problem. In single player TreeCapitator works flawlessly running Forge builds 251 and 303, but on a local server the block I'm breaking "blinks" and then a little later the tree breaks. I've uploaded a video to show the problem.
My only thoughts is maybe it's an issue with it on my pc or my lan network. I have no other mods installed so far. I am using the FML 1.3.2.r06 version.
Edit: I just remembered that the newest version supports LAN games (quit during 1.2.5), but this server is actually running as a server on my network, not a lan-enabled single player game.
I'm at a loss as to what could be causing my problem. In single player TreeCapitator works flawlessly running Forge builds 251 and 303, but on a local server the block I'm breaking "blinks" and then a little later the tree breaks. I've uploaded a video to show the problem.
My only thoughts is maybe it's an issue with it on my pc or my lan network. I have no other mods installed so far. I am using the FML 1.3.2.r06 version.
Edit: I just remembered that the newest version supports LAN games (quit during 1.2.5), but this server is actually running as a server on my network, not a lan-enabled single player game.
It's just lag. TreeCapitator doesn't have any networking components (you don't even have to have it installed as the client), so when you break the first block the server is processing all the block breaks and then sending them as one or more packets to each client. Due to the way the core TC code works there isn't really a way around this.
Alright and thanks for the reply. I was just worried I was doing something wrong, since the 1.2.5 version had worked flawlessly. But honestly a slight lag is a small price to pay for the mod.
Ok, I'm a little puzzled as to whether I've just set the configs wrong, or if there's something else I'm messing up. I've only been using this a short while, and it seemed flawless. Today I made a brand new instance with Forge 307, a bunch of other mods and this. Unfortunately, when I go to chop down a tree only the block I chop breaks, as if the mod is not installed. Yet, if I downgrade to the previous version it complains about needing upgraded, so it knows it's there. The previous version also is not chopping down the whole tree. I can live without this, but don't want to. Any hints?
Ok, I'm a little puzzled as to whether I've just set the configs wrong, or if there's something else I'm messing up. I've only been using this a short while, and it seemed flawless. Today I made a brand new instance with Forge 307, a bunch of other mods and this. Unfortunately, when I go to chop down a tree only the block I chop breaks, as if the mod is not installed. Yet, if I downgrade to the previous version it complains about needing upgraded, so it knows it's there. The previous version also is not chopping down the whole tree. I can live without this, but don't want to. Any hints?
Please post your forge log and TreeCapitator config file contents in spoiler tags so I can take a look.
Hmm. I'm having a little trouble with the forge log. It says it's too long for the post. Any hints on how to post that? (got an idea.... let me just get that done and a link for it.)
The config file is
# Configuration file
# Generated on 10/12/12 8:50 PM
####################
# block
####################
block {
}
####################
# general
####################
general {
# Enable to cause item damage based on number of blocks destroyed [default: true]
allowItemDamage=false
# Enable to allow chopping down the entire tree even if your item does not have enough damage remaining to cover the number of blocks. [default: false]
allowMoreBlocksThanDamage=false
# Set to true to allow checking for mod updates, false to disable [default: true]
allowUpdateCheck=true
# IDs of items that can chop down trees. Use ',' to split item id from metadata and ';' to split items. [default: 271; 275; 258; 286; 279]
axeIDList=271; 275; 258; 286; 279; 7792; 26510; 26660; 26710; 26760; 26810; 27260; 27310; 27360; 27410; 27460; 27510; 27560; 27610; 27660; 27710; 27760; 27810; 27860; 28010; 28060; 27982; 28110; 28160; 28260; 28310; 28360; 28410; 28460; 28510; 28560; 28610; 28760; 28860; 30199
# The damage your item takes will be multiplied by this decimal number, ie- if you set it to 0.5F, your item will only take half as much damage when chopping an entire tree versus breaking blocks normally, or if you use 2.0F it will cause twice as much damage per block broken. [range: 0.01 ~ 100.0, default: 1.0]
damageMultiplier=1.0
# Enabling this will make leaves be destroyed when trees are chopped. [default: true]
destroyLeaves=true
# Flag to disable drops in Creative mode [default: false]
disableCreativeDrops=false
# Flag to disable tree chopping in Creative mode [default: false]
disableInCreative=false
# The hardness of logs for when you are using items that can chop down trees. [range: 0.0 ~ 100.0, default: 4.0]
logHardnessModified=4.0
# The hardness of logs for when you are using items that won't chop down the trees. [range: 0.0 ~ 100.0, default: 2.0]
logHardnessNormal=2.0
# The maximum horizontal distance that the log breaking algorithm will travel (use -1 for no limit). [range: -1 ~ 100, default: 10]
maxBreakDistance=10
# Whether you need an item from the IDList to chop down a tree. Disabling will let you chop trees with any item. [default: true]
needItem=true
# Setting this to false will allow the chopping to move downward as well as upward (and blocks below the one you break will be chopped) [default: true]
onlyDestroyUpwards=true
# IDs of items that when placed in the hotbar will allow leaves to be sheared when shearLeaves is true. Use ',' to split item id from metadata and ';' to split items. [default: 359]
shearIDList=359
# Enabling this will cause destroyed leaves to be sheared when a shearing item is in the hotbar (ignored if destroyLeaves is false). [default: false]
shearLeaves=false
# Enabling this will shear /some/ of the vines on a tree when a shearing item is in the hotbar (ignored if destroyLeaves is false). [default: false]
shearVines=false
# Set sneakAction = "disable" to disable tree chopping while sneaking, set sneakAction = "enable" to only enable tree chopping while sneaking. [default: disable]
sneakAction=disable
}
Hmm. I'm having a little trouble with the forge log. It says it's too long for the post. Any hints on how to post that? (got an idea.... let me just get that done and a link for it.)
The config file is
# Configuration file
# Generated on 10/12/12 8:50 PM
####################
# block
####################
block {
}
####################
# general
####################
general {
# Enable to cause item damage based on number of blocks destroyed [default: true]
allowItemDamage=false
# Enable to allow chopping down the entire tree even if your item does not have enough damage remaining to cover the number of blocks. [default: false]
allowMoreBlocksThanDamage=false
# Set to true to allow checking for mod updates, false to disable [default: true]
allowUpdateCheck=true
# IDs of items that can chop down trees. Use ',' to split item id from metadata and ';' to split items. [default: 271; 275; 258; 286; 279]
axeIDList=271; 275; 258; 286; 279; 7792; 26510; 26660; 26710; 26760; 26810; 27260; 27310; 27360; 27410; 27460; 27510; 27560; 27610; 27660; 27710; 27760; 27810; 27860; 28010; 28060; 27982; 28110; 28160; 28260; 28310; 28360; 28410; 28460; 28510; 28560; 28610; 28760; 28860; 30199
# The damage your item takes will be multiplied by this decimal number, ie- if you set it to 0.5F, your item will only take half as much damage when chopping an entire tree versus breaking blocks normally, or if you use 2.0F it will cause twice as much damage per block broken. [range: 0.01 ~ 100.0, default: 1.0]
damageMultiplier=1.0
# Enabling this will make leaves be destroyed when trees are chopped. [default: true]
destroyLeaves=true
# Flag to disable drops in Creative mode [default: false]
disableCreativeDrops=false
# Flag to disable tree chopping in Creative mode [default: false]
disableInCreative=false
# The hardness of logs for when you are using items that can chop down trees. [range: 0.0 ~ 100.0, default: 4.0]
logHardnessModified=4.0
# The hardness of logs for when you are using items that won't chop down the trees. [range: 0.0 ~ 100.0, default: 2.0]
logHardnessNormal=2.0
# The maximum horizontal distance that the log breaking algorithm will travel (use -1 for no limit). [range: -1 ~ 100, default: 10]
maxBreakDistance=10
# Whether you need an item from the IDList to chop down a tree. Disabling will let you chop trees with any item. [default: true]
needItem=true
# Setting this to false will allow the chopping to move downward as well as upward (and blocks below the one you break will be chopped) [default: true]
onlyDestroyUpwards=true
# IDs of items that when placed in the hotbar will allow leaves to be sheared when shearLeaves is true. Use ',' to split item id from metadata and ';' to split items. [default: 359]
shearIDList=359
# Enabling this will cause destroyed leaves to be sheared when a shearing item is in the hotbar (ignored if destroyLeaves is false). [default: false]
shearLeaves=false
# Enabling this will shear /some/ of the vines on a tree when a shearing item is in the hotbar (ignored if destroyLeaves is false). [default: false]
shearVines=false
# Set sneakAction = "disable" to disable tree chopping while sneaking, set sneakAction = "enable" to only enable tree chopping while sneaking. [default: disable]
sneakAction=disable
}
I'm not really sure what could be going on... there may be some sort of mod conflict that I haven't been made aware of yet, but I have no idea what mod it could be. What item are you using to chop the log blocks? Are they vanilla log blocks or mod blocks (mod blocks aren't supported)? Are you able to use TreeCapitator without the other mods installed? It would be helpful if you could try that and then add back in the other mods one at a time until TreeCapitator stops working. Then we would all know which mod is conflicting.
That log was vanilla (wooden) axe on vanilla tree. I'd tried it on EBXL trees, and it worked the last time I installed everything. This time it didn't.
I'll try uninstalling all the mods except this one and see what happens.
Found it. The BetterBlocks mod seems to conflict.
I don't know if the Forge log will help any or not. In any case, I know what to do to fix this now. I want Tree Cap more than BetterBlocks --- http://pastebin.com/k3GQs642
That log was vanilla (wooden) axe on vanilla tree. I'd tried it on EBXL trees, and it worked the last time I installed everything. This time it didn't.
I'll try uninstalling all the mods except this one and see what happens.
Did you happen to update EBXL? I think I heard that they introduced a custom log recently.
Hello, I'm not too sure how the Creative Commons Licence works, but can I use your code for the Mod Update Manager in the source.
That would be pretty cool.
Sure. I'm thinking about changing the code to grab the website/MCF URL from the second line in the version file.
I have no idea. Please ask XCompWiz. I know that there is an API for talking to Mystcraft, and it uses forge. Beyond that, I have no clue.
---
A request for TreeCapitator. I want a tree assistant similar to the "tree chop 2" bukkit plugin. That had the option to lower the tree canopy -- for each block you wanted to put into your inventory, you had to spend the time to chop that block, but the tree would come down with gravity so you did not have to climb into the air to bring it down.
I am very concerned with over-agressive tree choppers. We actually use wood blocks for building stuff, and the idea of one chop ruining everything we have built is really not a happy idea. So, something along the lines of configurable, or keystroke controlled, choice of "Chop only one block, chop one block and bring the tree down, chop it all" (the last one not the default, and preferably op only) would be welcome.
OP states: I would really like a "Be conservative -- I'd rather get an incomplete chop and not disturb other trees nearby" option. Can it be done?
* Promoting this week: Captive Minecraft 4, Winter Realm. Aka: Vertical Vanilla Viewing. Clicky!
* My channel with Mystcraft, and general Minecraft Let's Plays: http://www.youtube.com/user/Keybounce.
* See all my video series: http://www.minecraftforum.net/forums/minecraft-editions/minecraft-editions-show-your/2865421-keybounces-list-of-creation-threads
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
D_B
To tell them how to live is to prevent them living.
Thank you
Sounds like a plan, especially the "sneaking" feature.
(Vechs has a dungeon in a map I plan to attack where the dungeon is in a tree. I don't want to one-hit-chop an entire section of that map :-).
Have you seen the size of some mod trees? Extra Biomes seems to make 100+ block pines, and Twilight Forest makes really huge trees out of oak blocks.
* Promoting this week: Captive Minecraft 4, Winter Realm. Aka: Vertical Vanilla Viewing. Clicky!
* My channel with Mystcraft, and general Minecraft Let's Plays: http://www.youtube.com/user/Keybounce.
* See all my video series: http://www.minecraftforum.net/forums/minecraft-editions/minecraft-editions-show-your/2865421-keybounces-list-of-creation-threads
(In regard to a mod that gives realistic animal genetics):
Would you really rather have bees that make diamonds and oil with magical genetic blocks?
... did I really ask that?
My only thoughts is maybe it's an issue with it on my pc or my lan network. I have no other mods installed so far. I am using the FML 1.3.2.r06 version.
Edit: I just remembered that the newest version supports LAN games (quit during 1.2.5), but this server is actually running as a server on my network, not a lan-enabled single player game.
The config file is
# Configuration file
# Generated on 10/12/12 8:50 PM
####################
# block
####################
block {
}
####################
# general
####################
general {
# Enable to cause item damage based on number of blocks destroyed [default: true]
allowItemDamage=false
# Enable to allow chopping down the entire tree even if your item does not have enough damage remaining to cover the number of blocks. [default: false]
allowMoreBlocksThanDamage=false
# Set to true to allow checking for mod updates, false to disable [default: true]
allowUpdateCheck=true
# IDs of items that can chop down trees. Use ',' to split item id from metadata and ';' to split items. [default: 271; 275; 258; 286; 279]
axeIDList=271; 275; 258; 286; 279; 7792; 26510; 26660; 26710; 26760; 26810; 27260; 27310; 27360; 27410; 27460; 27510; 27560; 27610; 27660; 27710; 27760; 27810; 27860; 28010; 28060; 27982; 28110; 28160; 28260; 28310; 28360; 28410; 28460; 28510; 28560; 28610; 28760; 28860; 30199
# The damage your item takes will be multiplied by this decimal number, ie- if you set it to 0.5F, your item will only take half as much damage when chopping an entire tree versus breaking blocks normally, or if you use 2.0F it will cause twice as much damage per block broken. [range: 0.01 ~ 100.0, default: 1.0]
damageMultiplier=1.0
# Enabling this will make leaves be destroyed when trees are chopped. [default: true]
destroyLeaves=true
# Flag to disable drops in Creative mode [default: false]
disableCreativeDrops=false
# Flag to disable tree chopping in Creative mode [default: false]
disableInCreative=false
# The hardness of logs for when you are using items that can chop down trees. [range: 0.0 ~ 100.0, default: 4.0]
logHardnessModified=4.0
# The hardness of logs for when you are using items that won't chop down the trees. [range: 0.0 ~ 100.0, default: 2.0]
logHardnessNormal=2.0
# The maximum horizontal distance that the log breaking algorithm will travel (use -1 for no limit). [range: -1 ~ 100, default: 10]
maxBreakDistance=10
# Whether you need an item from the IDList to chop down a tree. Disabling will let you chop trees with any item. [default: true]
needItem=true
# Setting this to false will allow the chopping to move downward as well as upward (and blocks below the one you break will be chopped) [default: true]
onlyDestroyUpwards=true
# IDs of items that when placed in the hotbar will allow leaves to be sheared when shearLeaves is true. Use ',' to split item id from metadata and ';' to split items. [default: 359]
shearIDList=359
# Enabling this will cause destroyed leaves to be sheared when a shearing item is in the hotbar (ignored if destroyLeaves is false). [default: false]
shearLeaves=false
# Enabling this will shear /some/ of the vines on a tree when a shearing item is in the hotbar (ignored if destroyLeaves is false). [default: false]
shearVines=false
# Set sneakAction = "disable" to disable tree chopping while sneaking, set sneakAction = "enable" to only enable tree chopping while sneaking. [default: disable]
sneakAction=disable
}
####################
# item
####################
item {
}
I'll try uninstalling all the mods except this one and see what happens.
Found it. The BetterBlocks mod seems to conflict.
I don't know if the Forge log will help any or not. In any case, I know what to do to fix this now. I want Tree Cap more than BetterBlocks --- http://pastebin.com/k3GQs642
ETA: The EBXL trees don't come down, but even with EBXL installed the vanilla ones do.