Add imbuement altar
- Adds imbuement altar block and associated tile entity - Adds basic functionality for imbuing wizard armour (other stuff to be decided) - Incorporates imbuement altar into glowing overlay model event (this could do with being tidied up and generalised) - Adds a TESR for the ray effect (based on some of the oldest code in the entire mod, which definitely needs improving!) - Adds a simple sound effect for the imbuement process, needs upgrading to a ticked sound later
This commit is contained in:
@@ -436,6 +436,7 @@ public final class WizardryItems {
|
||||
registerItemBlock(registry, WizardryBlocks.dark_oak_lectern);
|
||||
|
||||
registerItemBlock(registry, WizardryBlocks.receptacle);
|
||||
registerItemBlock(registry, WizardryBlocks.imbuement_altar);
|
||||
|
||||
// Items
|
||||
|
||||
@@ -708,6 +709,7 @@ public final class WizardryItems {
|
||||
((TileEntityReceptacle)tileEntity).setElement(Element.values()[stack.getMetadata()]);
|
||||
stack.shrink(1);
|
||||
world.checkLight(pos);
|
||||
// TESTME: Do we need this?
|
||||
world.notifyBlockUpdate(pos, source.getBlockState(), source.getBlockState(), 3);
|
||||
return stack;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user