Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Block Breaking speed

Comments in 'Plugin Development' started by Creeperface, Feb 29, 2016.

  1. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    i want to make easy plugin to disable speed mine hack but idk how to calculate block breaking speed with efficiency enchantment :/

    i tried this: but doesn't work.
    PHP:
     time time 1.3 effLevel
  2. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    Hope it will be public :p

    Take a look at Bukkit anti-fast break plugins.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Skullex and Muqsit like this.
  4. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    how can it help me? idk how much is breaking faster with this enchantment
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Basically, if the client wants to do something, you can't stop him by sending him a packet.
    PocketKiller likes this.
  6. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    No but i want to disable fast block breaking in annihilation and client can't change server data
  7. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    maybe, on break, start a task with ticks as hardness * 20 -3, if block is broke do whatever...
    Not tested.
  8. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    pocketmine already has protection for that and it calculation with Haste effect, but not with efficiency enchantment
    PEMapModder likes this.
  9. Skullex
    Offline

    Skullex Active Member

    Joined:
    Nov 14, 2015
    Posts:
    212
    Minecraft User:
    Skullex
    Increase Block Hardness? Maybe?
  10. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    1. won't work 2. everyone won't be able to break it then.
    Skullex likes this.
  11. Skullex
    Offline

    Skullex Active Member

    Joined:
    Nov 14, 2015
    Posts:
    212
    Minecraft User:
    Skullex
    Hmm, good point
  12. Creeperface
    Offline

    Creeperface Notable Member Plugin Developer

    Joined:
    Nov 8, 2014
    Posts:
    1,346
    Plugins:
    4
    Minecraft User:
    CreeperFace
    i measured breaking time of stone with stone and diamond pickaxes with custom efficiency levels and i got time in miliseconds. Have you any idea how to calculate it?

    DIAMOND PICKAXE:
    without eff: 284
    1: 236
    2: 184
    3: 100
    4: 49
    5: 17

    IRON PICKAXE:
    without eff: 384
    1: 301
    2: 235
    3: 133
    4: 50
    5: 16

    but times are not entirely accurate +/- 10 miliseconds

Share This Page

Advertisement