CraftBook 3

CraftBook 3

139k Downloads

mc1202 erasing items

LadyCailinBot opened this issue ยท 10 comments

commented

CRAFTBOOK-2267 - Reported by MUDcraft

The Container Collector MC1202 currently behaves as follows:

Add a clock to run it, and a chest above it.
Line 3 specifies the quantify to dispense. Provided that you put 64 of the block ID into the chest it will dispense up to 64 of that block with each clock cycle, without debiting the chest. If you specify 64 on line 3, but only put a single block in the chest, the it will only dispense a single item at a time, but it will do so indefinitely without removing the original item from the chest.

The contents of the chest act only as a template for replication of both item ID and stack size, not as a block bag.

This is currently an unrestricted IC.

I suggest that it ought to be using the chest as a block bag rather than as a template for replication and that one of the parameters ought to be an item ID filter... Line 3 Block ID, Line 4 Qty to remove from the chest as dispensed items.

commented

Comment by me4502

Hmm... Bukkit must've changed how items are removed from a chest, as it calls the remove function. But I'll look into it anyway

commented

Comment by me4502

Fixed.

commented

Comment by MUDcraft

http://pastebin.com/rDLPixvg

MC1202 now clears one slot in the chest (regardless of the number of items in the stack), per pulse but does not dispense them. They just get deleted.

commented

Comment by me4502

Fixed.

commented

Comment by MUDcraft

build 1355
MC1222 is no longer only deleting. It is dispensing, but it is ignoring line 3 (amount)
It dispenses 1 item per tick.

http://pastebin.com/g5yA932R
Server log contains errors prior to MC1222 testing related to WE //Set with console error:
java.lang.NoClassDeffFoundError: net/minecraft/server/Block

But no server log errors for MC1222

commented

Comment by me4502

Hmm... The amount works fine for me... How are you doing it?

commented

Comment by MUDcraft

Line 3 '16'
one redstone and one lever. (see png attached)

commented

Comment by MUDcraft

build 1356
MC1202 still dispenses a single block.

commented

Comment by MUDcraft

Tested out the MC1202 on your server and it works just fine.
No idea what the difference might be.

commented

Comment by me4502

Hmm idk... Maybe different bukkit builds?