Fix explosion resistance and wither immunity of aion blocks

This commit is contained in:
Zontreck 2022-05-30 13:32:45 -07:00
parent 86ed462a41
commit 26d6cd4d5e
11 changed files with 28 additions and 16 deletions

View file

@ -16,7 +16,7 @@ plugins {
apply plugin: 'net.minecraftforge.gradle'
version = '1.1.2'
version = '1.1.3'
group = 'dev.zontreck.shapedaionresources' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'shapedaionresources'

View file

@ -10,6 +10,7 @@ import net.minecraft.world.item.Item;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.block.OreBlock;
import net.minecraft.world.level.block.SoundType;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.material.Material;
import net.minecraftforge.eventbus.api.IEventBus;
@ -29,16 +30,16 @@ public class ModBlocks {
public static final RegistryObject<Block> AION_ORE_BLOCK = BLOCKS.register("aion_ore_block", () -> new OreBlock(BlockBehaviour.Properties.of(Material.METAL).requiresCorrectToolForDrops().strength(9f).explosionResistance(10).destroyTime(10)));
public static final RegistryObject<Block> AION_ORE_BLOCK = BLOCKS.register("aion_ore_block", () -> new OreBlock(BlockBehaviour.Properties.of(Material.METAL).requiresCorrectToolForDrops().strength(9f).explosionResistance(1200).destroyTime(10)));
public static final RegistryObject<Item> AION_ORE_BLOCK_I = ITEMS.register("aion_ore_block", () -> new BlockItem(AION_ORE_BLOCK.get(), new Item.Properties().tab(CreativeModeTab.TAB_MISC)));
public static final RegistryObject<Block> DEEPSLATE_AION_ORE_BLOCK = BLOCKS.register("deepslate_aion_ore_block", () -> new OreBlock(BlockBehaviour.Properties.of(Material.METAL).requiresCorrectToolForDrops().strength(9f).explosionResistance(10).destroyTime(10)));
public static final RegistryObject<Block> DEEPSLATE_AION_ORE_BLOCK = BLOCKS.register("deepslate_aion_ore_block", () -> new OreBlock(BlockBehaviour.Properties.of(Material.METAL).requiresCorrectToolForDrops().strength(9f).explosionResistance(1200).destroyTime(10)));
public static final RegistryObject<Item> DEEPSLATE_AION_ORE_BLOCK_I = ITEMS.register("deepslate_aion_ore_block", () -> new BlockItem(DEEPSLATE_AION_ORE_BLOCK.get(), new Item.Properties().tab(CreativeModeTab.TAB_MISC)));
public static final RegistryObject<Block> AION_BLOCK = BLOCKS.register("aion_block", () -> new Block(BlockBehaviour.Properties.of(Material.HEAVY_METAL).requiresCorrectToolForDrops().strength(9f).explosionResistance(10).destroyTime(10)));
public static final RegistryObject<Block> AION_BLOCK = BLOCKS.register("aion_block", () -> new Block(BlockBehaviour.Properties.of(Material.STONE).requiresCorrectToolForDrops().strength(9f).explosionResistance(100000f).destroyTime(10).sound(SoundType.NETHERITE_BLOCK)));
public static final RegistryObject<Item> AION_BLOCK_I = ITEMS.register("aion_block", () -> new BlockItem(AION_BLOCK.get(), new Item.Properties().tab(CreativeModeTab.TAB_MISC)));

View file

@ -14,7 +14,7 @@ public class EventHandler {
@SubscribeEvent(priority = EventPriority.HIGH)
public static void addOresToBiomes(final BiomeLoadingEvent ev){
ShapedAionResources.LOGGER.info("Biome loading event called. Registering aion ores");
//ShapedAionResources.LOGGER.info("Biome loading event called. Registering aion ores");
OreGenerator.generateOres(ev);
}
}

View file

@ -0,0 +1,6 @@
{
"replace": false,
"values": [
"shapedaionresources:aion_block"
]
}

View file

@ -8,6 +8,11 @@
"type": "minecraft:item",
"name": "shapedaionresources:aion_block"
}
],
"conditions": [
{
"condition": "minecraft:survives_explosion"
}
]
}
]

View file

@ -2,16 +2,16 @@
"name": "Flutterling",
"description": "Flutterlings are tiny, moth-like fae creatures that love living in the hollows of trees. While they are weak and fragile, they can easily climb or fly out of danger when faced with it.",
"powers": [
"flutterling:flutter",
"flutterling:night_vision",
"flutterling:flight",
"flutterling:nocturnal",
"flutterling:soundeffect",
"flutterling:armor_allergy",
"flutterling:armor_weight",
"flutterling:fae_weakness",
"flutterling:soul_lantern_allergy",
"flutterling:tiny_fae",
"shapedaionresources:flutter",
"shapedaionresources:night_vision",
"shapedaionresources:flight",
"shapedaionresources:nocturnal",
"shapedaionresources:soundeffect",
"shapedaionresources:armor_allergy",
"shapedaionresources:armor_weight",
"shapedaionresources:fae_weakness",
"shapedaionresources:soul_lantern_allergy",
"shapedaionresources:tiny_fae",
"extraorigins:nimble",
"extraorigins:small_appetite",
"origins:climbing"

View file

@ -3,5 +3,5 @@
"description": "While you can glide like the best of them, you can only fly with some effort, fluttering to slowly gain altitude while gliding.",
"type": "origins:elytra_flight",
"render_elytra": true,
"texture_location": "flutterling:textures/entity/elytra.png"
"texture_location": "shapedaionresources:textures/entity/elytra.png"
}