Timber mod?


#1

Please simply port or make a timber or tree mod :), if there are already plans from a dev to port/re-create it here, or someone else has plans please inform me? :stuck_out_tongue: thanks! I am sure alot of members would love this plugin on sponge.


#2

#3

Thanks for the info! I will try it out :slight_smile:


#4

One more question i have is, can i configure more than one axe? or what? i have not checked the config yet, just curious
EDIT: nvm just saw ur spoiler thanks! :smiley:


#5

It seems your plugin does not work,

My config file:

Whether to consume durability from tools that support it.

consumeDurability=true

Whether to consume the item after usage. NOT WORKING YET

consumeItem=false

Enable/disable this plugin functionality

enabled=true

List of items that can be used as axe

items=[
"minecraft:golden_axe",
"minecraft:diamond_axe"
"minecraft:iron_axe"
"minecraft:wooden_axe"
"minecraft:stone_axe"
]

Maximum amount of blocks that will be destroyed in one hit

maxBlocks=200
version=5

My error:

[10:37:41 ERROR] [Sponge]: Could not pass ChangeBlockEvent$Break$Impl to Plugin{
id=TreeDestroyage, name=TreeDestroyage, version=0.7, source=mods\TreeDestroyage-
0.7-19-all.jar}
java.lang.NoSuchMethodError: org.spongepowered.api.event.cause.Cause.of(Ljava/la
ng/Object;[Ljava/lang/Object;)Lorg/spongepowered/api/event/cause/Cause;
at net.mineguild.TreeDestroyage.event.BreakBlockHandler.lambda$handle$3(
BreakBlockHandler.java:81) ~[BreakBlockHandler.class:?]
at net.mineguild.TreeDestroyage.event.BreakBlockHandler$$Lambda$332/1982
818185.accept(Unknown Source) ~[?:?]
at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_51]
at net.mineguild.TreeDestroyage.event.BreakBlockHandler.handle(BreakBloc
kHandler.java:80) ~[BreakBlockHandler.class:?]
at org.spongepowered.common.event.listener.BreakListener_BreakBlockHandl
er_handle40.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredLi
stener.java:86) ~[RegisteredListener.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventMan
ager.java:258) [SpongeEventManager.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventMan
ager.java:269) [SpongeEventManager.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:131) [S
pongeImpl.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.CauseTracker.handleBlockCaptures(Cause
Tracker.java:730) [CauseTracker.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.CauseTracker.handlePostTickCaptures(Ca
useTracker.java:404) [CauseTracker.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUti
l.java:116) [PacketUtil.class:1.8.9-4.1.0-BETA-314]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(S
ourceFile:39) [fh$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fh$1.cla
ss:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [
?:1.8.0_51]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_51]
at net.minecraft.util.Util.func_181617_a(SourceFile:44) [g.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:143) [Mi
necraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFil
e:299) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:535) [Mi
necraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:451) [MinecraftSe
rver.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_51]
[10:37:44 ERROR] [Sponge]: Could not pass ChangeBlockEvent$Break$Impl to Plugin{
id=TreeDestroyage, name=TreeDestroyage, version=0.7, source=mods\TreeDestroyage-
0.7-19-all.jar}
java.lang.NoSuchMethodError: org.spongepowered.api.event.cause.Cause.of(Ljava/la
ng/Object;[Ljava/lang/Object;)Lorg/spongepowered/api/event/cause/Cause;
at net.mineguild.TreeDestroyage.event.BreakBlockHandler.lambda$handle$3(
BreakBlockHandler.java:81) ~[BreakBlockHandler.class:?]
at net.mineguild.TreeDestroyage.event.BreakBlockHandler$$Lambda$332/1982
818185.accept(Unknown Source) ~[?:?]
at java.util.ArrayList.forEach(Unknown Source) ~[?:1.8.0_51]
at net.mineguild.TreeDestroyage.event.BreakBlockHandler.handle(BreakBloc
kHandler.java:80) ~[BreakBlockHandler.class:?]
at org.spongepowered.common.event.listener.BreakListener_BreakBlockHandl
er_handle40.handle(Unknown Source) ~[?:?]
at org.spongepowered.common.event.RegisteredListener.handle(RegisteredLi
stener.java:86) ~[RegisteredListener.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventMan
ager.java:258) [SpongeEventManager.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.SpongeEventManager.post(SpongeEventMan
ager.java:269) [SpongeEventManager.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.SpongeImpl.postEvent(SpongeImpl.java:131) [S
pongeImpl.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.CauseTracker.handleBlockCaptures(Cause
Tracker.java:730) [CauseTracker.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.event.CauseTracker.handlePostTickCaptures(Ca
useTracker.java:404) [CauseTracker.class:1.8.9-4.1.0-BETA-314]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUti
l.java:116) [PacketUtil.class:1.8.9-4.1.0-BETA-314]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$0(S
ourceFile:39) [fh$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [fh$1.cla
ss:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [
?:1.8.0_51]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_51]
at net.minecraft.util.Util.func_181617_a(SourceFile:44) [g.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(SourceFile:143) [Mi
necraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(SourceFil
e:299) [ko.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(SourceFile:535) [Mi
necraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(SourceFile:451) [MinecraftSe
rver.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_51]

My plugins: this tree mod, worldedit, essentialcmds, all for 1.8.9 latest: spongevanilla-1.8.9-4.1.0-BETA-314
any help or idea why your mod not only does not work but gives an error? can you help me fix this? o.0


#6

If I were to guess, version 0.7 is utilizing Sponge API 3.x. Try one of the 0.8 development builds on Jenkins. I've never used this plugin so you would be better off asking questions on TreeDestroyage thread.


#7

Okay...can anyone suggest a better plugin? perhaps that is utilizing the current Sponge API?


#8

Pretty sure that's the only one


#9

I have been thinking of making my own plugin however, first I would like to ask if anyone knows how to update a plugin to the new API? would i have to recode most of the plugin?


#10

No, it should only require minor changes if it's not working. Basically fix the red code.


#11

And, of course, recode the parts that are workarounds for unimplemented sections. :3


#12

I have tried to update there plugin, but since I am a noob, and it has a ton of errors with the new API, i give up after trying for hours lol, can anyone else make one or what? I will try2 contact the mod-coder to see if they can update it.


#13

Fixed the error.

https://www.dropbox.com/s/tb0mypadeup0dyk/TreeDestroyage-0.8-DEV-API4.1.0-0-all.jar?dl=0

Also submitted a pull request.


TreeDestroyage UPDATED - By: TrenTech
#14

Thanks! :smiley: I am not only here to just "use" this mod, or your contributions to the mod, I am also curious what you changed in the code and to what?, also what do you mean by a pull request?


#15

In short, a pull request is a set of changes that someone has proposed to add to the project. Here's the link to it:


#16

Thought this was the best way to get the developers attention as I have no plans on supporting this plugin. This was just a favor for a member.