Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Block_break not functioning correctly - no item drops and modifying the block to "air" #59

Closed
dddeeefff opened this issue Dec 9, 2012 · 1 comment

Comments

@dddeeefff
Copy link

I'm running:
Craftbukkit 1.4.5 B 0.1
CommandHelper 2255 (latest)

I was trying to make sure sponges gave out no drops:

bind(block_break, array(id: sponge-break-id'), array(type: 19), @event,
       modify_event('drops', '')
        if(nequals(pmode(player()),'CREATIVE'),
                _notify_admins('break-rare-block', @event['block']['type'])
          )
   )

(where _notify_admins() is a simple script that tells the admins what happened)

The sponge did not drop an item entity of itself. In addition, hawkeye recorded the block broken as being "air" not sponge. In addition, a player was able to break the block despite not being a member of the Worldguard region the block was in.

So I did an experiment, and tried using the code to drop dirt blocks instead. I copied and altered the code found here:
http://wiki.sk89q.com/wiki/CommandHelper/Event_API/block_break
I found that the dirt blocks did not drop as expected.

That seems to be a problem with something I did- don't know what yet though. Ignore that bit

@LadyCailin
Copy link
Member

I'm gonna close this, since it's on redmine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants