Skip to content

Instantly share code, notes, and snippets.

View unascribed's full-sized avatar

Una unascribed

View GitHub Profile
@Override
public Multimap getAttributeModifiers(ItemStack stack) {
Multimap multimap = super.getAttributeModifiers(stack);
double damage = /* ... */;
multimap.put(SharedMonsterAttributes.attackDamage.getAttributeUnlocalizedName(),
new AttributeModifier(field_111210_e, "<My item> damage modifier", damage, 0));
return multimap;
}
if [ "$DESIRED_RELEASE" == "recommended" ]; then
# this is unholy, but Forge doesn't appear to supply an API, and
# their Maven repo appears to not be well formed
DESIRED_RELEASE=`curl -s http://files.minecraftforge.net/ |
grep -m 1 -A 2 '<td>Recommended' |
grep -v 'Recommended' |
cut -d '>' -f 2 |
cut -d '<' -f 1 |
tac |
head -c -1 |