Compare commits
2
Commits
1b2908660a
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
17fe8bbdc6
|
||
|
|
b6b1dd464f
|
No files matched your search
@@ -1,8 +1,13 @@
|
|||||||
# For info on the mod go to either
|
# For info on the mod go to either
|
||||||
* [the wiki](https://git.smthng.de/Jenny/Enhanced-Explosives/wiki)
|
|
||||||
* [modrinth](https://modrinth.com/mod/enhanced-explosives)
|
* [modrinth](https://modrinth.com/mod/enhanced-explosives)
|
||||||
* [curseforge](https://www.curseforge.com/minecraft/mc-mods/enhanced-explosives)
|
* [curseforge](https://www.curseforge.com/minecraft/mc-mods/enhanced-explosives)
|
||||||
|
* in-game wiki (guidebook & patchouli)
|
||||||
|
|
||||||
# How to run the mod in an IDE
|
# How to run / build the mod in an IDE
|
||||||
* If you use Intellij, you can import the project from git
|
* git clone the project
|
||||||
* You will have to run "runData" once, else textures will be missing
|
* run the _runData_ gradle task, it generates the item & block models
|
||||||
|
* the data generation only works in versions =>1.20.1, as I didn't backport it. If you want to build the
|
||||||
|
mod for versions before that, you can run the _runData_ gradle task in the 1.20.1 branch and switch back to the
|
||||||
|
branch for your desired version
|
||||||
|
* run _runClient_ to start a minecraft session, or run _jar_ to generate a .jar file of the mod (located at _.
|
||||||
|
/build/reobfJar/output.jar_)
|
||||||
@@ -114,6 +114,10 @@ minecraft {
|
|||||||
|
|
||||||
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
|
// Specify the modid for data generation, where to output the resulting resource, and where to look for existing resources.
|
||||||
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
|
||||||
|
|
||||||
|
// fixes patchouli mixin error
|
||||||
|
property 'mixin.env.remapRefMap', 'true'
|
||||||
|
property 'mixin.env.refMapRemappingFile', "${projectDir}/build/createSrgToMcp/output.srg"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
package com.jenny.enhancedexplosives.blocks;
|
||||||
|
|
||||||
|
import com.jenny.enhancedexplosives.entities.tnt.bedrockPrimedTNT;
|
||||||
|
import com.jenny.enhancedexplosives.entities.tnt.selectivePrimedTNT;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.core.Direction;
|
||||||
|
import net.minecraft.sounds.SoundEvents;
|
||||||
|
import net.minecraft.sounds.SoundSource;
|
||||||
|
import net.minecraft.world.entity.LivingEntity;
|
||||||
|
import net.minecraft.world.entity.player.Player;
|
||||||
|
import net.minecraft.world.level.Explosion;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.level.block.TntBlock;
|
||||||
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
|
import net.minecraft.world.level.gameevent.GameEvent;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
public class bedrockTNTBlock extends TntBlock {
|
||||||
|
public final float pRadius;
|
||||||
|
public final int fuseTime;
|
||||||
|
|
||||||
|
public bedrockTNTBlock(Properties p_57422_, float pRadius, int fuseTime) {
|
||||||
|
super(p_57422_);
|
||||||
|
this.pRadius = pRadius;
|
||||||
|
this.fuseTime = fuseTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCaughtFire(@NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) {
|
||||||
|
explode(world, pos, igniter, this.pRadius, this.fuseTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static void explode(Level p_57434_, BlockPos p_57435_, float pRadius, int fuseTime) {
|
||||||
|
explode(p_57434_, p_57435_, (LivingEntity)null, pRadius, fuseTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
private static void explode(Level p_57437_, BlockPos p_57438_, @Nullable LivingEntity p_57439_, float pRadius, int fuseTime) {
|
||||||
|
if (!p_57437_.isClientSide) {
|
||||||
|
bedrockPrimedTNT primedtnt = new bedrockPrimedTNT(p_57437_, (double)p_57438_.getX() + (double)0.5F, (double)p_57438_.getY(), (double)p_57438_.getZ() + (double)0.5F, p_57439_, pRadius, fuseTime);
|
||||||
|
p_57437_.addFreshEntity(primedtnt);
|
||||||
|
p_57437_.playSound((Player)null, primedtnt.getX(), primedtnt.getY(), primedtnt.getZ(), SoundEvents.TNT_PRIMED, SoundSource.BLOCKS, 1.0F, 1.0F);
|
||||||
|
p_57437_.gameEvent(p_57439_, GameEvent.PRIME_FUSE, p_57438_);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void wasExploded(Level level, @NotNull BlockPos blockPos, @NotNull Explosion pExplosion) {
|
||||||
|
if (!level.isClientSide) {
|
||||||
|
int ft = (short) (level.random.nextInt(fuseTime / 4) + fuseTime / 8);
|
||||||
|
bedrockPrimedTNT primedtnt = new bedrockPrimedTNT(level, (double) blockPos.getX() + (double) 0.5F, (double) blockPos.getY(), (double) blockPos.getZ() + (double) 0.5F, pExplosion.getIndirectSourceEntity(), pRadius, ft);
|
||||||
|
level.addFreshEntity(primedtnt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -61,6 +61,12 @@ public class blocks {
|
|||||||
public static final RegistryObject<Block> TNT_REPULSIVE = BLOCKS.register("tnt_repulsive", () -> new repulsiveTNTBlock(DEFAULT_PROPS, 4.0f, 80, 1));
|
public static final RegistryObject<Block> TNT_REPULSIVE = BLOCKS.register("tnt_repulsive", () -> new repulsiveTNTBlock(DEFAULT_PROPS, 4.0f, 80, 1));
|
||||||
public static final RegistryObject<Item> TNT_REPULSIVE_ITEM = ITEMS.register("tnt_repulsive", () -> new BlockItemTooltip(TNT_REPULSIVE.get(), new Item.Properties()));
|
public static final RegistryObject<Item> TNT_REPULSIVE_ITEM = ITEMS.register("tnt_repulsive", () -> new BlockItemTooltip(TNT_REPULSIVE.get(), new Item.Properties()));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> TNT_BEDROCK = BLOCKS.register("tnt_bedrock", () -> new bedrockTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED), 4.0f, 80));
|
||||||
|
public static final RegistryObject<Item> TNT_BEDROCK_ITEM = ITEMS.register("tnt_bedrock", () -> new BlockItemTooltip(TNT_BEDROCK.get(), new Item.Properties()));
|
||||||
|
|
||||||
|
public static final RegistryObject<Block> TNT_ENTITY = BLOCKS.register("tnt_entity", () -> new entityTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.COLOR_RED), 4.0f, 80));
|
||||||
|
public static final RegistryObject<Item> TNT_ENTITY_ITEM = ITEMS.register("tnt_entity", () -> new BlockItemTooltip(TNT_ENTITY.get(), new Item.Properties()));
|
||||||
|
|
||||||
|
|
||||||
public static void register(IEventBus bus) {
|
public static void register(IEventBus bus) {
|
||||||
BLOCKS.register(bus);
|
BLOCKS.register(bus);
|
||||||
|
|||||||
@@ -0,0 +1,59 @@
|
|||||||
|
package com.jenny.enhancedexplosives.blocks;
|
||||||
|
|
||||||
|
import com.jenny.enhancedexplosives.entities.tnt.EntityPrimedTNT;
|
||||||
|
import com.jenny.enhancedexplosives.entities.tnt.bedrockPrimedTNT;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.core.Direction;
|
||||||
|
import net.minecraft.sounds.SoundEvents;
|
||||||
|
import net.minecraft.sounds.SoundSource;
|
||||||
|
import net.minecraft.world.entity.LivingEntity;
|
||||||
|
import net.minecraft.world.entity.player.Player;
|
||||||
|
import net.minecraft.world.level.Explosion;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.level.block.TntBlock;
|
||||||
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
|
import net.minecraft.world.level.gameevent.GameEvent;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
|
||||||
|
public class entityTNTBlock extends TntBlock {
|
||||||
|
public final float pRadius;
|
||||||
|
public final int fuseTime;
|
||||||
|
|
||||||
|
public entityTNTBlock(Properties p_57422_, float pRadius, int fuseTime) {
|
||||||
|
super(p_57422_);
|
||||||
|
this.pRadius = pRadius;
|
||||||
|
this.fuseTime = fuseTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onCaughtFire(@NotNull BlockState state, @NotNull Level world, @NotNull BlockPos pos, @Nullable Direction face, @Nullable LivingEntity igniter) {
|
||||||
|
explode(world, pos, igniter, this.pRadius, this.fuseTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
public static void explode(Level p_57434_, BlockPos p_57435_, float pRadius, int fuseTime) {
|
||||||
|
explode(p_57434_, p_57435_, (LivingEntity)null, pRadius, fuseTime);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
private static void explode(Level p_57437_, BlockPos p_57438_, @Nullable LivingEntity p_57439_, float pRadius, int fuseTime) {
|
||||||
|
if (!p_57437_.isClientSide) {
|
||||||
|
EntityPrimedTNT primedtnt = new EntityPrimedTNT(p_57437_, (double)p_57438_.getX() + (double)0.5F, (double)p_57438_.getY(), (double)p_57438_.getZ() + (double)0.5F, p_57439_, pRadius, fuseTime);
|
||||||
|
p_57437_.addFreshEntity(primedtnt);
|
||||||
|
p_57437_.playSound((Player)null, primedtnt.getX(), primedtnt.getY(), primedtnt.getZ(), SoundEvents.TNT_PRIMED, SoundSource.BLOCKS, 1.0F, 1.0F);
|
||||||
|
p_57437_.gameEvent(p_57439_, GameEvent.PRIME_FUSE, p_57438_);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void wasExploded(Level level, @NotNull BlockPos blockPos, @NotNull Explosion pExplosion) {
|
||||||
|
if (!level.isClientSide) {
|
||||||
|
int ft = (short) (level.random.nextInt(fuseTime / 4) + fuseTime / 8);
|
||||||
|
EntityPrimedTNT primedtnt = new EntityPrimedTNT(level, (double) blockPos.getX() + (double) 0.5F, (double) blockPos.getY(), (double) blockPos.getZ() + (double) 0.5F, pExplosion.getIndirectSourceEntity(), pRadius, ft);
|
||||||
|
level.addFreshEntity(primedtnt);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -31,6 +31,8 @@ public class ModBlockStateProvider extends BlockStateProvider {
|
|||||||
sideTopBottom(blocks.TNT_128);
|
sideTopBottom(blocks.TNT_128);
|
||||||
sideTopBottom(blocks.TNT_ENDER);
|
sideTopBottom(blocks.TNT_ENDER);
|
||||||
sideTopBottom(blocks.TNT_CLAYMORE);
|
sideTopBottom(blocks.TNT_CLAYMORE);
|
||||||
|
sideTopBottom(blocks.TNT_BEDROCK);
|
||||||
|
sideTopBottom(blocks.TNT_ENTITY);
|
||||||
SideTop(blocks.TNT_BLACK_HOLE);
|
SideTop(blocks.TNT_BLACK_HOLE);
|
||||||
SideTop(blocks.TNT_REPULSIVE);
|
SideTop(blocks.TNT_REPULSIVE);
|
||||||
SideOnlyTNT(blocks.TNT_CLUSTER_2);
|
SideOnlyTNT(blocks.TNT_CLUSTER_2);
|
||||||
|
|||||||
@@ -50,6 +50,15 @@ public class entities {
|
|||||||
ENTITY_TYPES.register("tnt_repulsive", () -> EntityType.Builder.<repulsivePrimedTNT>of(repulsivePrimedTNT::new, MobCategory.MISC)
|
ENTITY_TYPES.register("tnt_repulsive", () -> EntityType.Builder.<repulsivePrimedTNT>of(repulsivePrimedTNT::new, MobCategory.MISC)
|
||||||
.fireImmune().sized(0.98F, 0.98F).clientTrackingRange(10).updateInterval(10).build("tnt_repulsive"));
|
.fireImmune().sized(0.98F, 0.98F).clientTrackingRange(10).updateInterval(10).build("tnt_repulsive"));
|
||||||
|
|
||||||
|
public static final RegistryObject<EntityType<bedrockPrimedTNT>> TNT_BEDROCK =
|
||||||
|
ENTITY_TYPES.register("tnt_bedrock", () -> EntityType.Builder.<bedrockPrimedTNT>of(bedrockPrimedTNT::new, MobCategory.MISC)
|
||||||
|
.sized(0.98F, 0.7F).fireImmune().clientTrackingRange(8).build("tnt_bedrock"));
|
||||||
|
|
||||||
|
public static final RegistryObject<EntityType<EntityPrimedTNT>> TNT_ENTITY =
|
||||||
|
ENTITY_TYPES.register("tnt_entity", () -> EntityType.Builder.<EntityPrimedTNT>of(EntityPrimedTNT::new, MobCategory.MISC)
|
||||||
|
.sized(0.98F, 0.7F).fireImmune().clientTrackingRange(8).build("tnt_entity"));
|
||||||
|
|
||||||
|
|
||||||
public static final RegistryObject<EntityType<tntArrow>> ARROW_TNT =
|
public static final RegistryObject<EntityType<tntArrow>> ARROW_TNT =
|
||||||
ENTITY_TYPES.register("arrow_tnt", () -> EntityType.Builder.<tntArrow>of(tntArrow::new, MobCategory.MISC)
|
ENTITY_TYPES.register("arrow_tnt", () -> EntityType.Builder.<tntArrow>of(tntArrow::new, MobCategory.MISC)
|
||||||
.sized(0.48F, 0.48F).clientTrackingRange(64).build("arrow_tnt"));
|
.sized(0.48F, 0.48F).clientTrackingRange(64).build("arrow_tnt"));
|
||||||
@@ -89,6 +98,8 @@ public class entities {
|
|||||||
EntityRenderers.register(TNT_CLAYMORE.get(), BaseTNTRenderer::new);
|
EntityRenderers.register(TNT_CLAYMORE.get(), BaseTNTRenderer::new);
|
||||||
EntityRenderers.register(TNT_ENDER.get(), BaseTNTRenderer::new);
|
EntityRenderers.register(TNT_ENDER.get(), BaseTNTRenderer::new);
|
||||||
EntityRenderers.register(TNT_REPULSIVE.get(), BaseTNTRenderer::new);
|
EntityRenderers.register(TNT_REPULSIVE.get(), BaseTNTRenderer::new);
|
||||||
|
EntityRenderers.register(TNT_BEDROCK.get(), BaseTNTRenderer::new);
|
||||||
|
EntityRenderers.register(TNT_ENTITY.get(), BaseTNTRenderer::new);
|
||||||
|
|
||||||
EntityRenderers.register(TNT_SELECTIVE.get(), SelectiveTNTRenderer::new);
|
EntityRenderers.register(TNT_SELECTIVE.get(), SelectiveTNTRenderer::new);
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
package com.jenny.enhancedexplosives.entities.tnt;
|
||||||
|
|
||||||
|
import com.jenny.enhancedexplosives.blocks.blocks;
|
||||||
|
import com.jenny.enhancedexplosives.entities.entities;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
import net.minecraft.world.entity.LivingEntity;
|
||||||
|
import net.minecraft.world.level.BlockGetter;
|
||||||
|
import net.minecraft.world.level.Explosion;
|
||||||
|
import net.minecraft.world.level.ExplosionDamageCalculator;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.level.block.Block;
|
||||||
|
import net.minecraft.world.level.block.Blocks;
|
||||||
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
|
import net.minecraft.world.phys.Vec3;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
public class EntityPrimedTNT extends basePrimedTNT {
|
||||||
|
static class noEntityExplosionCalculator extends ExplosionDamageCalculator {
|
||||||
|
public boolean shouldBlockExplode(@NotNull Explosion pExplosion, @NotNull BlockGetter pReader, @NotNull BlockPos pPos, @NotNull BlockState pState, float pPower) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntityPrimedTNT(Level pLevel, double pX, double pY, double pZ, @Nullable LivingEntity pOwner, float power, int fuse) {
|
||||||
|
super(entities.TNT_ENTITY.get(), pLevel, pOwner, new Vec3(pX, pY, pZ), fuse, power);
|
||||||
|
}
|
||||||
|
|
||||||
|
public EntityPrimedTNT(EntityType<EntityPrimedTNT> entityType, Level level) {
|
||||||
|
super(entityType, level, null);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void explode() {
|
||||||
|
noEntityExplosionCalculator dmgCalc = new noEntityExplosionCalculator();
|
||||||
|
this.level().explode(this, null, dmgCalc, position(), getPower(), false, Level.ExplosionInteraction.TNT);
|
||||||
|
}
|
||||||
|
|
||||||
|
public BlockPos getBlockBelow() {
|
||||||
|
return new BlockPos((int) Math.floor(getX()), (int) Math.floor(getY()) - 1, (int) Math.floor(getZ()));
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBlock() {
|
||||||
|
return level().getBlockState(getBlockBelow()).getBlock().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Block renderBlock() {
|
||||||
|
return blocks.TNT_ENTITY.get();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
package com.jenny.enhancedexplosives.entities.tnt;
|
||||||
|
|
||||||
|
import com.jenny.enhancedexplosives.blocks.blocks;
|
||||||
|
import com.jenny.enhancedexplosives.entities.entities;
|
||||||
|
import net.minecraft.core.BlockPos;
|
||||||
|
import net.minecraft.world.entity.EntityType;
|
||||||
|
import net.minecraft.world.entity.LivingEntity;
|
||||||
|
import net.minecraft.world.level.BlockGetter;
|
||||||
|
import net.minecraft.world.level.Explosion;
|
||||||
|
import net.minecraft.world.level.ExplosionDamageCalculator;
|
||||||
|
import net.minecraft.world.level.Level;
|
||||||
|
import net.minecraft.world.level.block.Block;
|
||||||
|
import net.minecraft.world.level.block.Blocks;
|
||||||
|
import net.minecraft.world.level.block.state.BlockState;
|
||||||
|
import net.minecraft.world.phys.Vec3;
|
||||||
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
|
import javax.annotation.Nullable;
|
||||||
|
import java.util.Objects;
|
||||||
|
|
||||||
|
public class bedrockPrimedTNT extends basePrimedTNT {
|
||||||
|
static class noExplosionCalculator extends ExplosionDamageCalculator {
|
||||||
|
public boolean shouldBlockExplode(@NotNull Explosion pExplosion, @NotNull BlockGetter pReader, @NotNull BlockPos pPos, @NotNull BlockState pState, float pPower) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public bedrockPrimedTNT(Level pLevel, double pX, double pY, double pZ, @Nullable LivingEntity pOwner, float power, int fuse) {
|
||||||
|
super(entities.TNT_BEDROCK.get(), pLevel, pOwner, new Vec3(pX, pY, pZ), fuse, power);
|
||||||
|
}
|
||||||
|
|
||||||
|
public bedrockPrimedTNT(EntityType<bedrockPrimedTNT> entityType, Level level) {
|
||||||
|
super(entityType, level, null);
|
||||||
|
}
|
||||||
|
@Override
|
||||||
|
protected void explode() {
|
||||||
|
noExplosionCalculator dmgCalc = new noExplosionCalculator();
|
||||||
|
this.level().explode(this, null, dmgCalc, position(), getPower(), false, Level.ExplosionInteraction.TNT);
|
||||||
|
explodeBelow();
|
||||||
|
}
|
||||||
|
|
||||||
|
public BlockPos getBlockBelow() {
|
||||||
|
return new BlockPos((int) Math.floor(getX()), (int) Math.floor(getY()) - 1, (int) Math.floor(getZ()));
|
||||||
|
}
|
||||||
|
|
||||||
|
public String getBlock() {
|
||||||
|
return level().getBlockState(getBlockBelow()).getBlock().toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
private void explodeBelow()
|
||||||
|
{
|
||||||
|
if (Objects.equals(getBlock(), Blocks.BEDROCK.toString())) {
|
||||||
|
level().destroyBlock(getBlockBelow(), false);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Block renderBlock() {
|
||||||
|
return blocks.TNT_BEDROCK.get();
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,13 +2,13 @@ modLoader = "javafml"
|
|||||||
logoFile = "logo.png"
|
logoFile = "logo.png"
|
||||||
loaderVersion = "${loader_version_range}"
|
loaderVersion = "${loader_version_range}"
|
||||||
license = "${mod_license}"
|
license = "${mod_license}"
|
||||||
issueTrackerURL = "https://git.smthng.de/Jenny/Enhanced-Explosives/issues" #optional
|
|
||||||
[[mods]]
|
[[mods]]
|
||||||
modId = "${mod_id}"
|
modId = "${mod_id}"
|
||||||
version = "${mod_version}"
|
version = "${mod_version}"
|
||||||
displayName = "${mod_name}"
|
displayName = "${mod_name}"
|
||||||
authors = "${mod_authors}"
|
authors = "${mod_authors}"
|
||||||
displayTest = "MATCH_VERSION"
|
displayTest = "MATCH_VERSION"
|
||||||
|
displayURL = "https://git.smthng.de/Jenny/Enhanced-Explosives"
|
||||||
description = '''${mod_description}'''
|
description = '''${mod_description}'''
|
||||||
[[dependencies."${mod_id}"]] #optional
|
[[dependencies."${mod_id}"]] #optional
|
||||||
modId = "forge"
|
modId = "forge"
|
||||||
|
|||||||
@@ -14,6 +14,8 @@
|
|||||||
<link ref=":se_selective_tnt">Selective</link>
|
<link ref=":se_selective_tnt">Selective</link>
|
||||||
<link ref=":se_ender_tnt">Ender TNT</link>
|
<link ref=":se_ender_tnt">Ender TNT</link>
|
||||||
<link ref=":se_repulsive_tnt">Repulsive TNT</link>
|
<link ref=":se_repulsive_tnt">Repulsive TNT</link>
|
||||||
|
<link ref=":se_bedrock_tnt">Bedrock TNT</link>
|
||||||
|
<link ref=":se_entity_tnt">Entity TNT</link>
|
||||||
<title>Arrows</title>
|
<title>Arrows</title>
|
||||||
<link ref=":ch_tnt_arrow">TNT Arrow</link>
|
<link ref=":ch_tnt_arrow">TNT Arrow</link>
|
||||||
<link ref=":se_concussive_arrow">Concussive Arrow</link>
|
<link ref=":se_concussive_arrow">Concussive Arrow</link>
|
||||||
@@ -91,6 +93,22 @@
|
|||||||
<p>This TNT will push entities away when primed.</p>
|
<p>This TNT will push entities away when primed.</p>
|
||||||
</section>
|
</section>
|
||||||
</chapter>
|
</chapter>
|
||||||
|
<chapter id="ch_bedrock_tnt">
|
||||||
|
<section id="se_bedrock_tnt">
|
||||||
|
<page_title>
|
||||||
|
<title>Bedrock TNT</title>
|
||||||
|
</page_title>
|
||||||
|
<p>This TNT will destroy the one bedrock block below it.</p>
|
||||||
|
</section>
|
||||||
|
</chapter>
|
||||||
|
<chapter id="ch_entity_tnt">
|
||||||
|
<section id="se_entity_tnt">
|
||||||
|
<page_title>
|
||||||
|
<title>Entity TNT</title>
|
||||||
|
</page_title>
|
||||||
|
<p>This TNT won't destroy blocks but hurt entities.</p>
|
||||||
|
</section>
|
||||||
|
</chapter>
|
||||||
<chapter id="ch_tnt_arrow">
|
<chapter id="ch_tnt_arrow">
|
||||||
<section id="se_tnt_arrow">
|
<section id="se_tnt_arrow">
|
||||||
<page_title>
|
<page_title>
|
||||||
|
|||||||
@@ -13,6 +13,8 @@
|
|||||||
"block.enhancedexplosives.tnt_selective": "Selective TNT",
|
"block.enhancedexplosives.tnt_selective": "Selective TNT",
|
||||||
"block.enhancedexplosives.tnt_ender": "Ender TNT",
|
"block.enhancedexplosives.tnt_ender": "Ender TNT",
|
||||||
"block.enhancedexplosives.tnt_repulsive": "Repulsive TNT",
|
"block.enhancedexplosives.tnt_repulsive": "Repulsive TNT",
|
||||||
|
"block.enhancedexplosives.tnt_bedrock": "Bedrock TNT",
|
||||||
|
"block.enhancedexplosives.tnt_entity": "Entity TNT",
|
||||||
|
|
||||||
"tooltip.enhancedexplosives.tnt_cluster_2": "splits into 2 small TNTs",
|
"tooltip.enhancedexplosives.tnt_cluster_2": "splits into 2 small TNTs",
|
||||||
"tooltip.enhancedexplosives.tnt_cluster_4": "splits into 4 small TNTs",
|
"tooltip.enhancedexplosives.tnt_cluster_4": "splits into 4 small TNTs",
|
||||||
|
|||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "Bedrock TNT",
|
||||||
|
"icon": "enhancedexplosives:tnt_bedrock",
|
||||||
|
"category": "enhancedexplosives:tnts",
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"type": "patchouli:crafting",
|
||||||
|
"text": "This TNT removes the block below it if it's bedrock.",
|
||||||
|
"recipe": "enhancedexplosives:tnt_bedrock"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+12
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "Entity TNT",
|
||||||
|
"icon": "enhancedexplosives:tnt_entity",
|
||||||
|
"category": "enhancedexplosives:tnts",
|
||||||
|
"pages": [
|
||||||
|
{
|
||||||
|
"type": "patchouli:crafting",
|
||||||
|
"text": "This TNT does not damage blocks.",
|
||||||
|
"recipe": "enhancedexplosives:tnt_entity"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 459 B |
Binary file not shown.
|
After Width: | Height: | Size: 563 B |
Binary file not shown.
|
After Width: | Height: | Size: 459 B |
Binary file not shown.
|
After Width: | Height: | Size: 151 B |
Binary file not shown.
|
After Width: | Height: | Size: 1016 B |
Binary file not shown.
|
After Width: | Height: | Size: 515 B |
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "enhancedexplosives:tnt_bedrock"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:block",
|
||||||
|
"pools": [
|
||||||
|
{
|
||||||
|
"rolls": 1,
|
||||||
|
"entries": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item",
|
||||||
|
"name": "enhancedexplosives:tnt_entity"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Yurrr!",
|
"name": "EE Manual",
|
||||||
"landing_text": "Skrrr Skrr",
|
"landing_text": "If you find bugs or have suggestions for improving this mod, please message me on curseforge, my discord, or gitea (link in mod info).",
|
||||||
"version": 1,
|
"version": 1,
|
||||||
"creative_tab": "enhancedexplosives:enhancedexplosives",
|
"creative_tab": "enhancedexplosives:enhancedexplosives",
|
||||||
"use_resource_pack": true
|
"use_resource_pack": true
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shaped",
|
||||||
|
"category": "redstone",
|
||||||
|
"pattern": [
|
||||||
|
"AA ",
|
||||||
|
"AA ",
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"A": {
|
||||||
|
"item": "enhancedexplosives:tnt_128"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "enhancedexplosives:tnt_bedrock"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"category": "redstone",
|
||||||
|
"ingredients":[
|
||||||
|
{
|
||||||
|
"item": "minecraft:tnt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:water_bucket"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"item": "enhancedexplosives:tnt_entity"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -10,6 +10,6 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "enhancedexplosives:tnt_black_hole"
|
"item": "enhancedexplosives:tnt_repulsive"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
{
|
||||||
|
"type": "minecraft:crafting_shapeless",
|
||||||
|
"category": "combat",
|
||||||
|
"ingredients":[
|
||||||
|
{
|
||||||
|
"item": "minecraft:tnt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"item": "minecraft:obsidian"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"result": {
|
||||||
|
"item": "enhancedexplosives:tnt_selective"
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in new issue
Block a user