Configurified the Meteor Ritual - Modpacks and users can edit all of the major properties of the meteor ritual, including what items need to be dropped onto the ritual as well as what you get in the ritual, radius, etc. The config will refresh if there is a version change unless you set "resyncOnVersionChange" to false.
This commit is contained in:
parent
63febfeb85
commit
4c79a4f2ff
8 changed files with 199 additions and 31 deletions
|
@ -6,9 +6,11 @@ import java.util.Map;
|
|||
|
||||
import net.minecraft.block.state.IBlockState;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import WayofTime.bloodmagic.api.ItemStackWrapper;
|
||||
import WayofTime.bloodmagic.util.Utils;
|
||||
|
||||
public class MeteorRegistry
|
||||
{
|
||||
|
@ -25,7 +27,9 @@ public class MeteorRegistry
|
|||
|
||||
public static void registerMeteor(ItemStack stack, List<MeteorComponent> componentList, float explosionStrength, int radius, int maxWeight)
|
||||
{
|
||||
MeteorHolder holder = new MeteorHolder(componentList, explosionStrength, radius, maxWeight);
|
||||
ResourceLocation resource = Utils.getResourceForItem(stack);
|
||||
|
||||
MeteorHolder holder = new MeteorHolder(resource, stack.getItemDamage(), componentList, explosionStrength, radius, maxWeight);
|
||||
|
||||
registerMeteor(stack, holder);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue