BG-Software-LLC / WildTools

Trench Pickaxes, Tray Pickaxes, Sell Wands, Harvester Hoes, Cannon Wands and more in one plugin!
https://bg-software.com/wildtools/
GNU General Public License v3.0
25 stars 22 forks source link

WildTools still not supporting GenCubes #101

Closed ItzFabb-uwu closed 2 years ago

ItzFabb-uwu commented 2 years ago

Minecraft's Version

1.18.2

Plugin's Version

WildTools-2.12.0-b56

Describe the bug

Still when i break the cubes with 3by3 2by2 pickaxe it can breaks the outlines of the cubes

To Reproduce

Mine the cubes with a 3by3 Pickaxe

Additional Information

https://youtu.be/sV9V-7clfkk

ItzFabb-uwu commented 2 years ago

And no there is no issue at the console its just the wildtools you can break outlines/the border of the cubes + when i mines it the "items" won't get dropped inside the cubes

OmerBenGera commented 2 years ago

Do you have GenCubes's plugin name (the exact one from /pl) in the other-plugins list in your config file?

ItzFabb-uwu commented 2 years ago

yessir

ItzFabb-uwu commented 2 years ago

####################################################

WildTools Configuration

Developed by Ome_R

####################################################

Choose which prices plugin to check for prices (ShopGUIPlus, Essentials, CMI, newtShop, QuantumShop, EconomyShopGUI, WildTools).

prices-plugin: 'ShopGUIPlus'

Path to the logs file.

You may disable it by setting the path to be empty.

logs-file: 'logs.txt'

A list of prices. Use "TYPE" and "TYPE:DATA" formats.

prices-list:

Here you can configure which plugins will be called, etc.

Optimizing the lists will result better performance!

events-manipulations:

A list of all the plugins that handle claims here on your server.

If one of the plugins here cancel the events, then WT will know that the player doesn't have access.

claiming-plugins:

ItzFabb-uwu commented 2 years ago

Me and Developer of Gencubes Deadsilence4

https://media.discordapp.net/attachments/957858669637296128/959660274934218813/unknown.png

https://media.discordapp.net/attachments/957858669637296128/959660297201782794/unknown.png

https://media.discordapp.net/attachments/957858669637296128/959660749096103976/unknown.png

ItzFabb-uwu commented 2 years ago

! ![Uploading unknown.png…]() ![Uploading unknown.png…]() ![Uploading unknown.png…]()

Few of the sneak peak for the wildtools & gencubes

ItzFabb-uwu commented 2 years ago

so any news?

OmerBenGera commented 2 years ago

so any news?

Patient dude. Havent looked into it yet... its been less than a day...

Once I have more information I will let you know

DeadSilenceIV commented 2 years ago

Hello Omer, looking into WildTools API i didn't find a way of preventing some blocks from being destroyed while using the Trench pickaxe, am i missing something?. I really appreciate your help thanks :heart:.

DeadSilenceIV commented 2 years ago

i would also like to know if there's a way of preventing the blocks drops when using the Cuboid wand, maybe adding some kind of method to the CuboidWandUseEvent class might be helpful as i would be able to handle some blocks drops on my side.

OmerBenGera commented 2 years ago

Hello Omer, looking into WildTools API i didn't find a way of preventing some blocks from being destroyed while using the Trench pickaxe, am i missing something?. I really appreciate your help thanks ❤️.

Cancel BlockBreakEvent

OmerBenGera commented 2 years ago

i would also like to know if there's a way of preventing the blocks drops when using the Cuboid wand, maybe adding some kind of method to the CuboidWandUseEvent class might be helpful as i would be able to handle some blocks drops on my side.

People can configure the blocks to be dropped in the config file

DeadSilenceIV commented 2 years ago

Hello Omer, looking into WildTools API i didn't find a way of preventing some blocks from being destroyed while using the Trench pickaxe, am i missing something?. I really appreciate your help thanks heart.

Cancel BlockBreakEvent

Yeah, the thing is that i don't want to cancel the whole action, i just want to exclude some blocks from being broken when the Cuboid wand is used.

DeadSilenceIV commented 2 years ago

i would also like to know if there's a way of preventing the blocks drops when using the Cuboid wand, maybe adding some kind of method to the CuboidWandUseEvent class might be helpful as i would be able to handle some blocks drops on my side.

People can configure the blocks to be dropped in the config file

The reason of why i want to prevent the block drops it's because they're supposed to be added into the Cube's inventory and not being thrown on floor.

DeadSilenceIV commented 2 years ago

In this case i would like to exclude the cube borders from being broken.

https://youtu.be/sV9V-7clfkk?t=25

OmerBenGera commented 2 years ago

Hello Omer, looking into WildTools API i didn't find a way of preventing some blocks from being destroyed while using the Trench pickaxe, am i missing something?. I really appreciate your help thanks heart.

Cancel BlockBreakEvent

Yeah, the thing is that i don't want to cancel the whole action, i just want to exclude some blocks from being broken when the Cuboid wand is used.

Its similar to vanilla - cancelling BlockBreakEvent to prevent people from breaking blocks... how else do you prevent them from breaking the blocks?

OmerBenGera commented 2 years ago

If you already cancel the event, then @ItzFabb-uwu should add the plugin to the claiming-plugins list so the plugin respects the cancelation of the event.

OmerBenGera commented 2 years ago

Any news regarding this?

ItzFabb-uwu commented 2 years ago

No fixes what soever.. im waiting till gencubes update

OmerBenGera commented 2 years ago

No fixes what soever.. im waiting till gencubes update

The issue is that players are able to break blocks that they cannot break while using regular pickaxes, right?

ItzFabb-uwu commented 2 years ago

Yeah

OmerBenGera commented 2 years ago

Yeah

Even after adding it to the claiming-plugins list in your config (Not other-plugins as I said before)? I know I told you to this already, just making sure

ItzFabb-uwu commented 2 years ago

I have added that

OmerBenGera commented 2 years ago

I have added that

  • GenCubes
  • gencubes
  • GENCUBES
  • Gencubes #still wont work

Send me your entire config.

@DeadSilenceIV , may I get access to your plugin so I can test it out on localhost?

DeadSilenceIV commented 2 years ago

Sure, let me add you on spigot

OmerBenGera commented 2 years ago

Sure, let me add you on spigot

Thanks. My spigot is Ome_R

OmerBenGera commented 2 years ago

I tested it and by adding GenCubes to the claiming-plugins list in the config, players cannot break the mine.

# Here you can configure which plugins will be called, etc.
# Optimizing the lists will result better performance!
events-manipulations:
  # A list of all the plugins that handle claims here on your server.
  # If one of the plugins here cancel the events, then WT will know that the player doesn't have access.
  claiming-plugins:
  - GenCubes
  # A list of all the other plugins that needs to know about breaking of blocks.
  # You can add your custom shops plugins, spawners plugin and more.
  # WildTools will not care if events are cancelled from this list. Therefore, if WildTools needs to know
  # if the events are cancelled from a plugin, add it to the 'claiming-plugins' section.
  other-plugins: []
OmerBenGera commented 2 years ago

@DeadSilenceIV If you want to override drops for WildTools (so blocks are not dropped inside mines), you can do that by registering your own DropsProvider. You can find javadocs here: https://bg-software.com/wildtools/api/

For registering your own DropsProvider, use WildToolsAPI.getWildTools().getProviders#addDropsProvider You should check if the block that was broken is inside a GenCube, and if it is return an empty list (this way WildTools will think there are no drops to drop, and will not drop any), otherwise return null (to tell the plugin to handle drops on its own in the rest of the world)

ItzFabb-uwu commented 2 years ago

I dont know how it did get fixed the only issue is that the item dannot get stored inside the cubes https://pastebin.com/pNSQWke2

OmerBenGera commented 2 years ago

I dont know how it did get fixed the only issue is that the item dannot get stored inside the cubes https://pastebin.com/pNSQWke2

Items were stored fine for me. They were stored as well as dropped, which I explained to @DeadSilenceIV how to fix it.

OmerBenGera commented 2 years ago

I am closing this as it's fixed from WT's side.