From 72b06842bcfc6e01c9d1c7af01464f3d93fce382 Mon Sep 17 00:00:00 2001 From: FromNowOnJenny Date: Tue, 21 Jan 2025 04:56:32 +0100 Subject: [PATCH] init --- build.gradle | 190 ++++++++++++++++++ gradle.properties | 49 +++++ settings.gradle | 16 ++ .../jenny/compressedtnt/Compressedtnt.java | 113 +++++++++++ .../blocks/StrongerPrimedTNT.java | 23 +++ .../blocks/strongerTNTBlock.java | 48 +++++ .../compressedtnt/datagen/DataGenerators.java | 26 +++ .../datagen/ModBlockStateProvider.java | 75 +++++++ src/main/resources/META-INF/mods.toml | 63 ++++++ .../compressedtnt/blockstates/tnt_128.json | 7 + .../compressedtnt/blockstates/tnt_16.json | 7 + .../compressedtnt/blockstates/tnt_32.json | 7 + .../compressedtnt/blockstates/tnt_64.json | 7 + .../compressedtnt/blockstates/tnt_8.json | 7 + .../textures/block/tnt_128_bottom.png | Bin 0 -> 149 bytes .../textures/block/tnt_128_side.png | Bin 0 -> 352 bytes .../textures/block/tnt_128_top.png | Bin 0 -> 458 bytes .../textures/block/tnt_16_bottom.png | Bin 0 -> 152 bytes .../textures/block/tnt_16_side.png | Bin 0 -> 355 bytes .../textures/block/tnt_16_top.png | Bin 0 -> 523 bytes .../textures/block/tnt_32_bottom.png | Bin 0 -> 152 bytes .../textures/block/tnt_32_side.png | Bin 0 -> 356 bytes .../textures/block/tnt_32_top.png | Bin 0 -> 519 bytes .../textures/block/tnt_64_bottom.png | Bin 0 -> 152 bytes .../textures/block/tnt_64_side.png | Bin 0 -> 357 bytes .../textures/block/tnt_64_top.png | Bin 0 -> 531 bytes .../textures/block/tnt_8_bottom.png | Bin 0 -> 152 bytes .../textures/block/tnt_8_side.png | Bin 0 -> 353 bytes .../textures/block/tnt_8_top.png | Bin 0 -> 548 bytes .../data/compressedtnt/recipes/tnt_128.json | 17 ++ .../data/compressedtnt/recipes/tnt_16.json | 17 ++ .../data/compressedtnt/recipes/tnt_32.json | 17 ++ .../data/compressedtnt/recipes/tnt_64.json | 17 ++ .../data/compressedtnt/recipes/tnt_8.json | 17 ++ src/main/resources/pack.mcmeta | 6 + 35 files changed, 729 insertions(+) create mode 100644 build.gradle create mode 100644 gradle.properties create mode 100644 settings.gradle create mode 100644 src/main/java/com/jenny/compressedtnt/Compressedtnt.java create mode 100644 src/main/java/com/jenny/compressedtnt/blocks/StrongerPrimedTNT.java create mode 100644 src/main/java/com/jenny/compressedtnt/blocks/strongerTNTBlock.java create mode 100644 src/main/java/com/jenny/compressedtnt/datagen/DataGenerators.java create mode 100644 src/main/java/com/jenny/compressedtnt/datagen/ModBlockStateProvider.java create mode 100644 src/main/resources/META-INF/mods.toml create mode 100644 src/main/resources/assets/compressedtnt/blockstates/tnt_128.json create mode 100644 src/main/resources/assets/compressedtnt/blockstates/tnt_16.json create mode 100644 src/main/resources/assets/compressedtnt/blockstates/tnt_32.json create mode 100644 src/main/resources/assets/compressedtnt/blockstates/tnt_64.json create mode 100644 src/main/resources/assets/compressedtnt/blockstates/tnt_8.json create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_128_bottom.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_128_side.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_128_top.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_16_bottom.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_16_side.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_16_top.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_32_bottom.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_32_side.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_32_top.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_64_bottom.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_64_side.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_64_top.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_8_bottom.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_8_side.png create mode 100644 src/main/resources/assets/compressedtnt/textures/block/tnt_8_top.png create mode 100644 src/main/resources/data/compressedtnt/recipes/tnt_128.json create mode 100644 src/main/resources/data/compressedtnt/recipes/tnt_16.json create mode 100644 src/main/resources/data/compressedtnt/recipes/tnt_32.json create mode 100644 src/main/resources/data/compressedtnt/recipes/tnt_64.json create mode 100644 src/main/resources/data/compressedtnt/recipes/tnt_8.json create mode 100644 src/main/resources/pack.mcmeta diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..f30f23e --- /dev/null +++ b/build.gradle @@ -0,0 +1,190 @@ +plugins { + id 'eclipse' + id 'idea' + id 'net.minecraftforge.gradle' version '[6.0.16,6.2)' + id 'org.parchmentmc.librarian.forgegradle' version '1.+' +} + + +group = mod_group_id +version = mod_version + +base { + archivesName = mod_id +} + +java { + toolchain.languageVersion = JavaLanguageVersion.of(17) +} + +minecraft { + // The mappings can be changed at any time and must be in the following format. + // Channel: Version: + // official MCVersion Official field/method names from Mojang mapping files + // parchment YYYY.MM.DD-MCVersion Open community-sourced parameter names and javadocs layered on top of official + // + // You must be aware of the Mojang license when using the 'official' or 'parchment' mappings. + // See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md + // + // Parchment is an unofficial project maintained by ParchmentMC, separate from MinecraftForge + // Additional setup is needed to use their mappings: https://parchmentmc.org/docs/getting-started + // + // Use non-default mappings at your own risk. They may not always work. + // Simply re-run your setup task after changing the mappings to update your workspace. + minecraft { + mappings channel: 'parchment', version: '2023.09.03-1.20.1' + } + + // When true, this property will have all Eclipse/IntelliJ IDEA run configurations run the "prepareX" task for the given run configuration before launching the game. + // In most cases, it is not necessary to enable. + // enableEclipsePrepareRuns = true + // enableIdeaPrepareRuns = true + + // This property allows configuring Gradle's ProcessResources task(s) to run on IDE output locations before launching the game. + // It is REQUIRED to be set to true for this template to function. + // See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html + copyIdeResources = true + + // When true, this property will add the folder name of all declared run configurations to generated IDE run configurations. + // The folder name can be set on a run configuration using the "folderName" property. + // By default, the folder name of a run configuration is the name of the Gradle project containing it. + // generateRunFolders = true + + // This property enables access transformers for use in development. + // They will be applied to the Minecraft artifact. + // The access transformer file can be anywhere in the project. + // However, it must be at "META-INF/accesstransformer.cfg" in the final mod jar to be loaded by Forge. + // This default location is a best practice to automatically put the file in the right place in the final jar. + // See https://docs.minecraftforge.net/en/latest/advanced/accesstransformers/ for more information. + // accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') + + // Default run configurations. + // These can be tweaked, removed, or duplicated as needed. + runs { + // applies to all the run configs below + configureEach { + workingDirectory project.file('run') + + // Recommended logging data for a userdev environment + // The markers can be added/remove as needed separated by commas. + // "SCAN": For mods scan. + // "REGISTRIES": For firing of registry events. + // "REGISTRYDUMP": For getting the contents of all registries. + property 'forge.logging.markers', 'REGISTRIES' + + + // Recommended logging level for the console + // You can set various levels here. + // Please read: https://stackoverflow.com/questions/2031163/when-to-use-the-different-log-levels + property 'forge.logging.console.level', 'debug' + + mods { + "${mod_id}" { + source sourceSets.main + } + } + } + + client { + // Comma-separated list of namespaces to load gametests from. Empty = all namespaces. + property 'forge.enabledGameTestNamespaces', mod_id + } + + server { + property 'forge.enabledGameTestNamespaces', mod_id + args '--nogui' + } + + // This run config launches GameTestServer and runs all registered gametests, then exits. + // By default, the server will crash when no gametests are provided. + // The gametest system is also enabled by default for other run configs under the /test command. + gameTestServer { + property 'forge.enabledGameTestNamespaces', mod_id + } + + data { + // example of overriding the workingDirectory set in configureEach above + workingDirectory project.file('run-data') + + // 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/') + } + } +} + +// Include resources generated by data generators. +sourceSets.main.resources { srcDir 'src/generated/resources' } + +repositories { + // Put repositories for dependencies here + // ForgeGradle automatically adds the Forge maven and Maven Central for you + + // If you have mod jar dependencies in ./libs, you can declare them as a repository like so. + // See https://docs.gradle.org/current/userguide/declaring_repositories.html#sub:flat_dir_resolver + // flatDir { + // dir 'libs' + // } +} + +dependencies { + // Specify the version of Minecraft to use. + // Any artifact can be supplied so long as it has a "userdev" classifier artifact and is a compatible patcher artifact. + // The "userdev" classifier will be requested and setup by ForgeGradle. + // If the group id is "net.minecraft" and the artifact id is one of ["client", "server", "joined"], + // then special handling is done to allow a setup of a vanilla dependency without the use of an external repository. + minecraft "net.minecraftforge:forge:${minecraft_version}-${forge_version}" + + // Example mod dependency with JEI - using fg.deobf() ensures the dependency is remapped to your development mappings + // The JEI API is declared for compile time use, while the full JEI artifact is used at runtime + // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-common-api:${jei_version}") + // compileOnly fg.deobf("mezz.jei:jei-${mc_version}-forge-api:${jei_version}") + // runtimeOnly fg.deobf("mezz.jei:jei-${mc_version}-forge:${jei_version}") + + // Example mod dependency using a mod jar from ./libs with a flat dir repository + // This maps to ./libs/coolmod-${mc_version}-${coolmod_version}.jar + // The group id is ignored when searching -- in this case, it is "blank" + // implementation fg.deobf("blank:coolmod-${mc_version}:${coolmod_version}") + + // For more info: + // http://www.gradle.org/docs/current/userguide/artifact_dependencies_tutorial.html + // http://www.gradle.org/docs/current/userguide/dependency_management.html + +} + +// This block of code expands all declared replace properties in the specified resource targets. +// A missing property will result in an error. Properties are expanded using ${} Groovy notation. +// When "copyIdeResources" is enabled, this will also run before the game launches in IDE environments. +// See https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html +tasks.named('processResources', ProcessResources).configure { + var replaceProperties = [minecraft_version : minecraft_version, minecraft_version_range: minecraft_version_range, + forge_version : forge_version, forge_version_range: forge_version_range, + loader_version_range: loader_version_range, + mod_id : mod_id, mod_name: mod_name, mod_license: mod_license, mod_version: mod_version, + mod_authors : mod_authors, mod_description: mod_description,] + + inputs.properties replaceProperties + + filesMatching(['META-INF/mods.toml', 'pack.mcmeta']) { + expand replaceProperties + [project: project] + } +} + +// Example for how to get properties into the manifest for reading at runtime. +tasks.named('jar', Jar).configure { + manifest { + attributes(["Specification-Title" : mod_id, + "Specification-Vendor" : mod_authors, + "Specification-Version" : "1", // We are version 1 of ourselves + "Implementation-Title" : project.name, + "Implementation-Version" : project.jar.archiveVersion, + "Implementation-Vendor" : mod_authors, + "Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")]) + } + + // This is the preferred method to reobfuscate your jar file + finalizedBy 'reobfJar' +} + +tasks.withType(JavaCompile).configureEach { + options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation +} diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 0000000..7e08599 --- /dev/null +++ b/gradle.properties @@ -0,0 +1,49 @@ +org.gradle.jvmargs=-Xmx3G +org.gradle.daemon=false +# The Minecraft version must agree with the Forge version to get a valid artifact +minecraft_version=1.20.1 +# The Minecraft version range can use any release version of Minecraft as bounds. +# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly +# as they do not follow standard versioning conventions. +minecraft_version_range=[1.20.1] +# The Forge version must agree with the Minecraft version to get a valid artifact +forge_version=47.3.22 +# The Forge version range can use any version of Forge as bounds or match the loader version range +forge_version_range=[47,) +# The loader version range can only use the major version of Forge/FML as bounds +loader_version_range=[47,) +# The mapping channel to use for mappings. +# The default set of supported mapping channels are ["official", "snapshot", "snapshot_nodoc", "stable", "stable_nodoc"]. +# Additional mapping channels can be registered through the "channelProviders" extension in a Gradle plugin. +# +# | Channel | Version | | +# |-----------|----------------------|--------------------------------------------------------------------------------| +# | official | MCVersion | Official field/method names from Mojang mapping files | +# | parchment | YYYY.MM.DD-MCVersion | Open community-sourced parameter names and javadocs layered on top of official | +# +# You must be aware of the Mojang license when using the 'official' or 'parchment' mappings. +# See more information here: https://github.com/MinecraftForge/MCPConfig/blob/master/Mojang.md +# +# Parchment is an unofficial project maintained by ParchmentMC, separate from Minecraft Forge. +# Additional setup is needed to use their mappings, see https://parchmentmc.org/docs/getting-started +mapping_channel=official +# The mapping version to query from the mapping channel. +# This must match the format required by the mapping channel. +mapping_version=1.20.1 +# The unique mod identifier for the mod. Must be lowercase in English locale. Must fit the regex [a-z][a-z0-9_]{1,63} +# Must match the String constant located in the main mod class annotated with @Mod. +mod_id=compressedtnt +# The human-readable display name for the mod. +mod_name=Compressed TNT +# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. +mod_license=All Rights Reserved +# The mod version. See https://semver.org/ +mod_version=0.0.1 +# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. +# This should match the base package used for the mod sources. +# See https://maven.apache.org/guides/mini/guide-naming-conventions.html +mod_group_id=com.jenny +# The authors of the mod. This is a simple text string that is used for display purposes in the mod list. +mod_authors= +# The description of the mod. This is a simple multiline text string that is used for display purposes in the mod list. +mod_description= diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..a8eaa67 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,16 @@ +pluginManagement { + repositories { + gradlePluginPortal() + maven { + name = 'MinecraftForge' + url = 'https://maven.minecraftforge.net/' + } + maven { url = 'https://maven.parchmentmc.org' } + } +} + +plugins { + id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' +} + +rootProject.name = 'compressedtnt' diff --git a/src/main/java/com/jenny/compressedtnt/Compressedtnt.java b/src/main/java/com/jenny/compressedtnt/Compressedtnt.java new file mode 100644 index 0000000..237be7a --- /dev/null +++ b/src/main/java/com/jenny/compressedtnt/Compressedtnt.java @@ -0,0 +1,113 @@ +package com.jenny.compressedtnt; + +import com.jenny.compressedtnt.blocks.*; + +import com.mojang.logging.LogUtils; +import net.minecraft.core.registries.Registries; +import net.minecraft.network.chat.Component; +import net.minecraft.world.item.BlockItem; +import net.minecraft.world.item.CreativeModeTab; +import net.minecraft.world.item.CreativeModeTabs; +import net.minecraft.world.item.Item; +import net.minecraft.world.level.block.Block; +import net.minecraft.world.level.block.state.BlockBehaviour; +import net.minecraft.world.level.material.MapColor; +import net.minecraftforge.api.distmarker.Dist; +import net.minecraftforge.common.MinecraftForge; +import net.minecraftforge.event.BuildCreativeModeTabContentsEvent; +import net.minecraftforge.event.server.ServerStartingEvent; +import net.minecraftforge.eventbus.api.IEventBus; +import net.minecraftforge.eventbus.api.SubscribeEvent; +import net.minecraftforge.fml.ModLoadingContext; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.config.ModConfig; +import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; +import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent; +import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; +import net.minecraftforge.registries.DeferredRegister; +import net.minecraftforge.registries.ForgeRegistries; +import net.minecraftforge.registries.RegistryObject; +import org.slf4j.Logger; + +// The value here should match an entry in the META-INF/mods.toml file +@Mod(Compressedtnt.MODID) +public class Compressedtnt { + + // Define mod id in a common place for everything to reference + public static final String MODID = "compressedtnt"; + // Directly reference a slf4j logger + private static final Logger LOGGER = LogUtils.getLogger(); + + public static final DeferredRegister BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, MODID); + public static final DeferredRegister ITEMS = DeferredRegister.create(ForgeRegistries.ITEMS, MODID); + + public static final DeferredRegister CREATIVE_MODE_TABS = DeferredRegister.create(Registries.CREATIVE_MODE_TAB, MODID); + + public static final RegistryObject TNT_8 = BLOCKS.register("tnt_8", () -> new strongerTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.STONE), 8.0f, 80)); + public static final RegistryObject TNT_8_ITEM = ITEMS.register("tnt_8", () -> new BlockItem(TNT_8.get(), new Item.Properties())); + + public static final RegistryObject TNT_16 = BLOCKS.register("tnt_16", () -> new strongerTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.STONE), 16.0f, 80)); + public static final RegistryObject TNT_16_ITEM = ITEMS.register("tnt_16", () -> new BlockItem(TNT_16.get(), new Item.Properties())); + + public static final RegistryObject TNT_32 = BLOCKS.register("tnt_32", () -> new strongerTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.STONE), 32.0f, 80)); + public static final RegistryObject TNT_32_ITEM = ITEMS.register("tnt_32", () -> new BlockItem(TNT_32.get(), new Item.Properties())); + + public static final RegistryObject TNT_64 = BLOCKS.register("tnt_64", () -> new strongerTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.STONE), 64.0f, 80)); + public static final RegistryObject TNT_64_ITEM = ITEMS.register("tnt_64", () -> new BlockItem(TNT_64.get(), new Item.Properties())); + + public static final RegistryObject TNT_128 = BLOCKS.register("tnt_128", () -> new strongerTNTBlock(BlockBehaviour.Properties.of().mapColor(MapColor.STONE), 128.0f, 80)); + public static final RegistryObject TNT_128_ITEM = ITEMS.register("tnt_128", () -> new BlockItem(TNT_128.get(), new Item.Properties())); + + + public static final RegistryObject CREATIVE_TAB = CREATIVE_MODE_TABS.register("compressedtnt", () -> CreativeModeTab.builder().withTabsBefore(CreativeModeTabs.COMBAT).icon(() -> TNT_8_ITEM.get().getDefaultInstance()).displayItems((parameters, output) -> { + output.accept(TNT_8.get()); + output.accept(TNT_16.get()); + output.accept(TNT_32.get()); + output.accept(TNT_64.get()); + output.accept(TNT_128.get()); + }).title(Component.literal("Compressed TNT")).build()); + + public Compressedtnt() { + IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus(); + + modEventBus.addListener(this::commonSetup); + + // Register the Deferred Register to the mod event bus so blocks get registered + BLOCKS.register(modEventBus); + // Register the Deferred Register to the mod event bus so items get registered + ITEMS.register(modEventBus); + // Register the Deferred Register to the mod event bus so tabs get registered + CREATIVE_MODE_TABS.register(modEventBus); + + // Register ourselves for server and other game events we are interested in + MinecraftForge.EVENT_BUS.register(this); + + // Register the item to a creative tab + modEventBus.addListener(this::addCreative); + } + + private void commonSetup(final FMLCommonSetupEvent event) { + + } + + // Add the example block item to the building blocks tab + private void addCreative(BuildCreativeModeTabContentsEvent event) { + + } + + // You can use SubscribeEvent and let the Event Bus discover methods to call + @SubscribeEvent + public void onServerStarting(ServerStartingEvent event) { + + } + + // You can use EventBusSubscriber to automatically register all static methods in the class annotated with @SubscribeEvent + @Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD, value = Dist.CLIENT) + public static class ClientModEvents { + + @SubscribeEvent + public static void onClientSetup(FMLClientSetupEvent event) { + + } + } +} \ No newline at end of file diff --git a/src/main/java/com/jenny/compressedtnt/blocks/StrongerPrimedTNT.java b/src/main/java/com/jenny/compressedtnt/blocks/StrongerPrimedTNT.java new file mode 100644 index 0000000..9b2d048 --- /dev/null +++ b/src/main/java/com/jenny/compressedtnt/blocks/StrongerPrimedTNT.java @@ -0,0 +1,23 @@ +package com.jenny.compressedtnt.blocks; + +import net.minecraft.world.entity.LivingEntity; +import net.minecraft.world.entity.item.PrimedTnt; +import net.minecraft.world.level.Level; + +import javax.annotation.Nullable; + +public class StrongerPrimedTNT extends PrimedTnt { + final float pRadius; + + public StrongerPrimedTNT (Level pLevel, double pX, double pY, double pZ, @Nullable LivingEntity pOwner, float pRadius, int fuseTime) { + super(pLevel, pX, pY, pZ, pOwner); + this.pRadius = pRadius; + this.setFuse(fuseTime); + } + + @Override + protected void explode() { + float $$0 = pRadius; + this.level().explode(this, this.getX(), this.getY((double)0.0625F), this.getZ(), pRadius, Level.ExplosionInteraction.TNT); + } +} diff --git a/src/main/java/com/jenny/compressedtnt/blocks/strongerTNTBlock.java b/src/main/java/com/jenny/compressedtnt/blocks/strongerTNTBlock.java new file mode 100644 index 0000000..8f2520c --- /dev/null +++ b/src/main/java/com/jenny/compressedtnt/blocks/strongerTNTBlock.java @@ -0,0 +1,48 @@ +package com.jenny.compressedtnt.blocks; + +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.Level; +import net.minecraft.world.level.block.TntBlock; +import net.minecraft.world.level.block.state.BlockBehaviour; +import net.minecraft.world.level.block.state.BlockState; +import net.minecraft.world.level.gameevent.GameEvent; + +import javax.annotation.Nullable; + +public class strongerTNTBlock extends TntBlock { + public final float pRadius; + public final int fuseTime; + + public strongerTNTBlock(BlockBehaviour.Properties p_57422_, float pRadius, int fuseTime) { + super(p_57422_); + this.pRadius = pRadius; + this.fuseTime = fuseTime; + } + + + public void onCaughtFire(BlockState state, Level world, 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 */ + @Deprecated + private static void explode(Level p_57437_, BlockPos p_57438_, @Nullable LivingEntity p_57439_, float pRadius, int fuseTime) { + if (!p_57437_.isClientSide) { + StrongerPrimedTNT primedtnt = new StrongerPrimedTNT(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_); + } + + } +} diff --git a/src/main/java/com/jenny/compressedtnt/datagen/DataGenerators.java b/src/main/java/com/jenny/compressedtnt/datagen/DataGenerators.java new file mode 100644 index 0000000..790ee06 --- /dev/null +++ b/src/main/java/com/jenny/compressedtnt/datagen/DataGenerators.java @@ -0,0 +1,26 @@ +package com.jenny.compressedtnt.datagen; + +import net.minecraft.core.HolderLookup; +import net.minecraft.data.DataGenerator; +import net.minecraft.data.PackOutput; +import net.minecraftforge.common.data.ExistingFileHelper; +import net.minecraftforge.data.event.GatherDataEvent; +import net.minecraftforge.eventbus.api.SubscribeEvent; +import net.minecraftforge.fml.common.Mod; +import org.jetbrains.annotations.NotNull; +import java.util.concurrent.CompletableFuture; + +import static com.jenny.compressedtnt.Compressedtnt.MODID; + +@Mod.EventBusSubscriber(modid = MODID, bus = Mod.EventBusSubscriber.Bus.MOD) +public class DataGenerators { + @SubscribeEvent + public static void gatherData(@NotNull GatherDataEvent event) { + DataGenerator generator = event.getGenerator(); + PackOutput packOutput = generator.getPackOutput(); + ExistingFileHelper existingFileHelper = event.getExistingFileHelper(); + CompletableFuture lookupProvider = event.getLookupProvider(); + + generator.addProvider(event.includeClient(), new ModBlockStateProvider(packOutput, existingFileHelper)); + } +} \ No newline at end of file diff --git a/src/main/java/com/jenny/compressedtnt/datagen/ModBlockStateProvider.java b/src/main/java/com/jenny/compressedtnt/datagen/ModBlockStateProvider.java new file mode 100644 index 0000000..21cad70 --- /dev/null +++ b/src/main/java/com/jenny/compressedtnt/datagen/ModBlockStateProvider.java @@ -0,0 +1,75 @@ +package com.jenny.compressedtnt.datagen; + +import com.jenny.compressedtnt.Compressedtnt; + +import net.minecraft.data.PackOutput; +import net.minecraft.resources.ResourceLocation; +import net.minecraft.world.level.block.*; +import net.minecraftforge.client.model.generators.BlockStateProvider; +import net.minecraftforge.common.data.ExistingFileHelper; +import net.minecraftforge.registries.ForgeRegistries; +import net.minecraftforge.registries.RegistryObject; +import net.minecraftforge.client.model.generators.ModelFile; + +import static com.jenny.compressedtnt.Compressedtnt.MODID; + +public class ModBlockStateProvider extends BlockStateProvider { + public ModBlockStateProvider(PackOutput output, ExistingFileHelper exFileHelper) { + super(output, MODID, exFileHelper); + } + + @Override + protected void registerStatesAndModels() { + sideTopBottom(Compressedtnt.TNT_8.get()); + sideTopBottom(Compressedtnt.TNT_16.get()); + sideTopBottom(Compressedtnt.TNT_32.get()); + sideTopBottom(Compressedtnt.TNT_64.get()); + sideTopBottom(Compressedtnt.TNT_128.get()); + } + + private void blockWithItem(RegistryObject blockRegistryObject) { + simpleBlockWithItem(blockRegistryObject.get(), cubeAll(blockRegistryObject.get())); + } + + private void SideTop(RegistryObject blockRegistryObject) { + simpleBlockWithItem(blockRegistryObject.get(), topSide(blockRegistryObject.get())); + } + + private void blockItem(RegistryObject blockRegistryObject) { + simpleBlockItem(blockRegistryObject.get(), new ModelFile.UncheckedModelFile(MODID + + ":block/" + ForgeRegistries.BLOCKS.getKey(blockRegistryObject.get()).getPath())); + } + + private void topBottom2Sides(RegistryObject blockRegistryObject) { + simpleBlockWithItem(blockRegistryObject.get(), northEastTopBottom(blockRegistryObject.get())); + } + + private ResourceLocation key(Block block) { + return ForgeRegistries.BLOCKS.getKey(block); + } + + private String name(Block block) { + return key(block).getPath(); + } + + private ResourceLocation extend(ResourceLocation rl, String suffix) { + return new ResourceLocation(rl.getNamespace(), rl.getPath() + suffix); + } + + public void sideTopBottom(Block block) { + ModelFile model = models().cubeBottomTop(name(block), extend(blockTexture(block), "_side"), extend(blockTexture(block), "_bottom"), extend(blockTexture(block), "_top")); + simpleBlockItem(block, model); + } + + public ModelFile northEastTopBottom(Block block) { + return models().cube(name(block), extend(blockTexture(block), "_bottom"), extend(blockTexture(block), "_top"), extend(blockTexture(block), "_nw"), extend(blockTexture(block), "_se"), extend(blockTexture(block), "_se"), extend(blockTexture(block), "_nw")).texture("particle", extend(blockTexture(block), "_se")); + } + + public ModelFile cube(Block block) { + return models().cube(name(block), extend(blockTexture(block), "_bottom"), extend(blockTexture(block), "_top"), extend(blockTexture(block), "_north"), extend(blockTexture(block), "_south"), extend(blockTexture(block), "_east"), extend(blockTexture(block), "_west")).texture("particle", extend(blockTexture(block), "_north")); + } + + public ModelFile topSide(Block block) { + return models().cubeColumn(name(block), extend(blockTexture(block), ""), extend(blockTexture(block), "_top")); + } +} \ No newline at end of file diff --git a/src/main/resources/META-INF/mods.toml b/src/main/resources/META-INF/mods.toml new file mode 100644 index 0000000..46176cf --- /dev/null +++ b/src/main/resources/META-INF/mods.toml @@ -0,0 +1,63 @@ +# This is an example mods.toml file. It contains the data relating to the loading mods. +# There are several mandatory fields (#mandatory), and many more that are optional (#optional). +# The overall format is standard TOML format, v0.5.0. +# Note that there are a couple of TOML lists in this file. +# Find more information on toml format here: https://github.com/toml-lang/toml +# The name of the mod loader type to load - for regular FML @Mod mods it should be javafml +modLoader = "javafml" #mandatory +# A version range to match for said mod loader - for regular FML @Mod it will be the forge version +loaderVersion = "${loader_version_range}" #mandatory This is typically bumped every Minecraft version by Forge. See our download page for lists of versions. +# The license for you mod. This is mandatory metadata and allows for easier comprehension of your redistributive properties. +# Review your options at https://choosealicense.com/. All rights reserved is the default copyright stance, and is thus the default here. +license = "${mod_license}" +# A URL to refer people to when problems occur with this mod +#issueTrackerURL="https://change.me.to.your.issue.tracker.example.invalid/" #optional +# A list of mods - how many allowed here is determined by the individual mod loader +[[mods]] #mandatory +# The modid of the mod +modId = "${mod_id}" #mandatory +# The version number of the mod +version = "${mod_version}" #mandatory +# A display name for the mod +displayName = "${mod_name}" #mandatory +# A URL to query for updates for this mod. See the JSON update specification https://docs.minecraftforge.net/en/latest/misc/updatechecker/ +#updateJSONURL="https://change.me.example.invalid/updates.json" #optional +# A URL for the "homepage" for this mod, displayed in the mod UI +#displayURL="https://change.me.to.your.mods.homepage.example.invalid/" #optional +# A file name (in the root of the mod JAR) containing a logo for display +#logoFile="compressedtnt.png" #optional +# A text field displayed in the mod UI +#credits="Thanks for this example mod goes to Java" #optional +# A text field displayed in the mod UI +authors = "${mod_authors}" #optional +# Display Test controls the display for your mod in the server connection screen +# MATCH_VERSION means that your mod will cause a red X if the versions on client and server differ. This is the default behaviour and should be what you choose if you have server and client elements to your mod. +# IGNORE_SERVER_VERSION means that your mod will not cause a red X if it's present on the server but not on the client. This is what you should use if you're a server only mod. +# IGNORE_ALL_VERSION means that your mod will not cause a red X if it's present on the client or the server. This is a special case and should only be used if your mod has no server component. +# NONE means that no display test is set on your mod. You need to do this yourself, see IExtensionPoint.DisplayTest for more information. You can define any scheme you wish with this value. +# IMPORTANT NOTE: this is NOT an instruction as to which environments (CLIENT or DEDICATED SERVER) your mod loads on. Your mod should load (and maybe do nothing!) whereever it finds itself. +#displayTest="MATCH_VERSION" # MATCH_VERSION is the default if nothing is specified (#optional) + +# The description text for the mod (multi line!) (#mandatory) +description = '''${mod_description}''' +# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional. +[[dependencies."${mod_id}"]] #optional +# the modid of the dependency +modId = "forge" #mandatory +# Does this dependency have to exist - if not, ordering below must be specified +mandatory = true #mandatory +# The version range of the dependency +versionRange = "${forge_version_range}" #mandatory +# An ordering relationship for the dependency - BEFORE or AFTER required if the dependency is not mandatory +# BEFORE - This mod is loaded BEFORE the dependency +# AFTER - This mod is loaded AFTER the dependency +ordering = "NONE" +# Side this dependency is applied on - BOTH, CLIENT, or SERVER +side = "BOTH"# Here's another dependency +[[dependencies."${mod_id}"]] +modId = "minecraft" +mandatory = true +# This version range declares a minimum of the current minecraft version up to but not including the next major version +versionRange = "${minecraft_version_range}" +ordering = "NONE" +side = "BOTH" diff --git a/src/main/resources/assets/compressedtnt/blockstates/tnt_128.json b/src/main/resources/assets/compressedtnt/blockstates/tnt_128.json new file mode 100644 index 0000000..012b0de --- /dev/null +++ b/src/main/resources/assets/compressedtnt/blockstates/tnt_128.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "compressedtnt:block/tnt_128" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/compressedtnt/blockstates/tnt_16.json b/src/main/resources/assets/compressedtnt/blockstates/tnt_16.json new file mode 100644 index 0000000..a15fd88 --- /dev/null +++ b/src/main/resources/assets/compressedtnt/blockstates/tnt_16.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "compressedtnt:block/tnt_16" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/compressedtnt/blockstates/tnt_32.json b/src/main/resources/assets/compressedtnt/blockstates/tnt_32.json new file mode 100644 index 0000000..411ea60 --- /dev/null +++ b/src/main/resources/assets/compressedtnt/blockstates/tnt_32.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "compressedtnt:block/tnt_32" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/compressedtnt/blockstates/tnt_64.json b/src/main/resources/assets/compressedtnt/blockstates/tnt_64.json new file mode 100644 index 0000000..ec9299f --- /dev/null +++ b/src/main/resources/assets/compressedtnt/blockstates/tnt_64.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "compressedtnt:block/tnt_64" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/compressedtnt/blockstates/tnt_8.json b/src/main/resources/assets/compressedtnt/blockstates/tnt_8.json new file mode 100644 index 0000000..2654481 --- /dev/null +++ b/src/main/resources/assets/compressedtnt/blockstates/tnt_8.json @@ -0,0 +1,7 @@ +{ + "variants": { + "": { + "model": "compressedtnt:block/tnt_8" + } + } +} \ No newline at end of file diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_128_bottom.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_128_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..d60af12e54c5a8aff4eaa89afc52ee8722c2e891 GIT binary patch literal 149 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|{5@S9Lo9le zuOu4()jx9N^Z_9F@a}#(8wdpb@Nx3l!^4ImEz_x20#v?)&%W0F7qwboFyt=akR{03n+*r~m)} literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_128_side.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_128_side.png new file mode 100644 index 0000000000000000000000000000000000000000..2c145dca590f6f2c1b0b10b53804a29c56aaae23 GIT binary patch literal 352 zcmV-m0iXVfP)Px$8c9S!R5*>rk}*reKoo$#D?!0SqK;`m=x{Eswu^IrLI=TJ|AC8B7iSk;oC^H` z)>*+HaG4vhAjFQv5Uyk>c@CkW85}}~zU}+&-n(~qPxbfv0+6c}iy|XX$24ItS1SM( zMTW?dymi=!TWlG-FQ7z3qA0@G8i3R}fQtWf03BmMMC5Bam0ousz3xET!DYqPTCvvF z+&`aA*P5fSO~)A2`|Cuu`i1ko y3jq*WmO>rSguRn$G)vi(cRz{VqR48ZDgOb8%GE_xX~i@E0000Px$gh@m}R5*>5lCf&zKomuff*sZpfhiIUsT@eape9=grrm{ssiOE#@&l<#WNXnL?jN=fb&C?#9H zIAGvUe3Ha){dR#r@egu0z3A+L2nD}>{-$5|?9JzcCGfu+&4tRBvYWwTwz6GsG6&Td zr6fAmEM_apml6?*Lk7*AyR?+D_3eG#*@IK`KRrwm&1U$JrvLx|07*qoM6N<$f^YH7 Aw*UYD literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_16_bottom.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_16_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..b06f0a5a171b3274cdca74824f8280230a92129d GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|f;?RuLo9le zMebVsw_iPrml+5SzmIm800EDOn>VbwX)q<{{+RaR6vKgQu&X%Q~loCIE|8HPrwB literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_16_side.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_16_side.png new file mode 100644 index 0000000000000000000000000000000000000000..272d1b61edfafa9c00aec0286f95e845ac089e19 GIT binary patch literal 355 zcmV-p0i6DcP)Px$9Z5t%R5*>rlCeqyK@f(&oEHczc$ShJ3RkQTAS6xRz&?UtuWyjXDvh;`HdcW= zfU#DPwArg~!GLh45DPD`)dj{PUdR;|M~Y1M{X0AJ@9fkL<1Yd58X38ruy=Gu752SG z20(5nET;?Vx*B_I8M`k~6A_8ym_R82GUou+{GSF8X$>MG?@1z^c27F(p0t|XH5+5Z z7*o=U9Ak`#hf&iMIm-SPVB7Jx8pk~zm{H~`@7^^rg+X4c|IT9Y|P zpcG-)EZH0l2V7jbFBHx;BT$NiutlUbwU?){Z1W5L zxqJh#oGw3%h?>+WBzVpXg0?l;lT?W81B7({002ovPDHLkV1jyy BmOcOg literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_16_top.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_16_top.png new file mode 100644 index 0000000000000000000000000000000000000000..f388635529d9372c0b5e9c3030eabee36028adc8 GIT binary patch literal 523 zcmV+m0`&cfP)Px$#Ysd#R5*>5k}+r#Q5?p9mqf0mVCW!-g)UuOI+@|oN~BkA2)cL3a)VESbB8{*OfWI(He*W=|bdJBLlp;F3Af+9Tp;baD1weFo!O$up zWlL-0&WCs7MA-cvVYNc!c(A?!K;gmd_+!V5^=4B)1~4WW46PCX=FUN8=Al($dVf2` zz_@$#bDWh?$`*yqCM%sTLI{*n+MVmxvl*;(x|IEz<`6j^L7` zt!tZ!1Ay>&4#c_j_@K^$qNPFaGnyHuNsC zc2M?f>@{C88WeTsmrJWayp5!xPtV_I2Kkw%?#o8lCcpKTuv)>GS)>uRF-`b7XL9S= zYpfriS&L42|7el#PwJHY8f(!hyW?M143eI+v=Aa?ds1Ix@NdTd=|8rc5+zo%f$;zU N002ovPDHLkV1lhk?s5PC literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_32_bottom.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_32_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..00a7fd84cb0a7c418920fab3ee337ed8c6b2ae94 GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|f;?RuLo9le zMW){SG5_m+F=ik*oPR8v2LzUUh>ZB3Z8&90PFeyGyvR#SOL+1{sq_312gQUbB6EJs t7h;b1SD-oJNqWh@42hn$g9e<;43GBapV{(%$9$ma44$rjF6*2UngDq^HNgM? literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_32_side.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_32_side.png new file mode 100644 index 0000000000000000000000000000000000000000..3f71b6ca8ba60b9231bec315a7be8c9f10cc34a9 GIT binary patch literal 356 zcmV-q0h|7bP)Px$9!W$&R5*>rlCeqyK@f(&JFW>!SQ|x>LnXxq(h3QJ&yhl~*Eg`SN@H!Kja4AM z##+G#*mQv$7$Tf0k|v8RDaRt_$Q2exicI(Yvort9?gpoaGXa=~j%9hskvpRZNAu7D zuq+SJvkCK3qY#H|8M|)~h=>dZ1GG{AIPU>6{!as_83Q6BpQDkqnr&${+fuEZXKbw% zYi&+jpRv}8h)6h2623+W505vb>6HHKedc(5bq7EkS8(3b>vjP6cz;4G#W+cbYR2Ha zM=M1fS8`+ax*aYqZ*!}p=@jQZi}ai0x>;SKRw|d=ELcyr8Cog!;wm*`2;N@$vehf> z*PjJI&n7F^gAPx$!AV3xR5*>5l0R$PP!vax9fJtLXb3hmLkL!&W58&5rNJdNTJi-l=mT`IAP~?J z1O-vL8r-E_t9*bCokTE{8s16IY(VSUg;`@D- zD~*TmZnMy~Mhqu5Y2>iY832ps9sp_N08ncV)MbE5p1~|J0cdIC(w=9DNqzIOz@VBj zu-$-Kb3jWQW4i&f#3Zgy5r^m4Zh+D0QELuZ#$9zju1|{$jt(v`Iz7c9jU2*I;`@Ds z5a`hy%M$-*koA0Ya6uSK^^j!=wZF@#a@PZKcwV@iU-ivPmT|YhNO>To!~nuj;(4d4 z%zOpI$rNJBJplL=KBlFO@%=uYcUt&e2tgV-Se7VwagRaU8WDz)ZO&+0qkDa4UX*%Z zbb82-FKDcEHS=ZM1^&2^P3Y@~SBk;L{+9RLb_0HFykR)8+4;GT?FMKXTz`MSUg~2$ z{mk*n4R7B+VfE!1MyJQ|$qmD+U;h|nb1ut5h(g))!wX literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_64_bottom.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_64_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..49b2cb795f7a6014412e25c4243853bcf161a8c3 GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|f;?RuLo9le z=jiPExL s7f(WBQlP@g^Dq8fG?3tJP84Eexcfd^rE;0xM4;&mp00i_>zopr03}B^00000 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_64_side.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_64_side.png new file mode 100644 index 0000000000000000000000000000000000000000..19edeaca12f80794f026692423bf686c7feee131 GIT binary patch literal 357 zcmV-r0h<1aP)Px$A4x<(R5*>rlCes|P!xv0#yH&}j*#Sh*o5?@}mI|>&r)IcQN{)lJG=oFv(6fF2z31HjoO>EyyWavZb#kI2p|f>F9d@Tq z4nR~Sl=Csu?ZaB^ux4z&Ktn_%j$=Hf0LZNcSn_`wK&Ul{h`bMn(r$I6-RelwKVGsi zMvO5PZE?pKBO)TsC{6horrh0Mk!2GGPq)h#FE4HY2m+tnTKc^%0Ix3(cuFx!Q`}H% za%=IFA_)A7&3>=T>DhIql`NZ(Tgxo_WbZ)#4$)Jpa=4nXaJCwrQtSjxLak{$KMrJ_ zUvS^fO90CG7y!rJuf^`kVm1H7y1e;KbfY4v2zB`fLGRFFT4n6F00000NkvXXu0mjf Dr#hK2 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_64_top.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_64_top.png new file mode 100644 index 0000000000000000000000000000000000000000..736cef83a75abd3d61a83d55ce6921a14ae509ad GIT binary patch literal 531 zcmV+u0_^>XP)Px$%}GQ-R5*>5k}+%BKmdh5TQ(+i2pS5u2h)-c{sA7YxK43{{(>_22V{vL5bC8! zxDhm~!9$@PYc1V6iy(>-y&;3?5K>IR&_b|>giOVt_&T(@*o~m%ZI8Qy_r80%ado09 z%S`|-^49>|#}_KgO@i(afa38Mw(;~{KF?oCDOn~{R=t-v)E5n;lmIM~DfLAI-|uUm z8$A4^QWIM-t*C>SIP^FKAYXU{fR{J`92ExoF+gsWL4DBx;JkF2*}1-G5N({SG04rz zbCuQ6_xl_b28`MPLI|XkI-TntWHT7G1Dx%B&B03?!cgM-eS{D!lPQ)Z))*8%-h82W zyhSrHbmtKPtFo*=39z6QbqJ9dzHyhqMgE#M&t4IRk}O3VC$xXNW}mE002ovPDHLkV1iw$?Y95` literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_8_bottom.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_8_bottom.png new file mode 100644 index 0000000000000000000000000000000000000000..8d62feb6e9610e7abf6280e6e329cd1e5d1443cd GIT binary patch literal 152 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`jKx9jP7LeL$-D$|f;?RuLo9le z=WGxB@;_QPj12@HX787j00NJPoA+EzN=>*IbLapNY?!oj=E0-glU3}5nOhq!)-HNb t@5PhA8J?hc^8AZG7Y!tMn-hiD7{33^*;E|s`W9$9gQu&X%Q~loCIGHrHOv42 literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_8_side.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_8_side.png new file mode 100644 index 0000000000000000000000000000000000000000..48a69d7b54371f2f04c53aa3ba6f55fba1f043dc GIT binary patch literal 353 zcmV-n0iOPeP)Px$8%ab#R5*>rk}prgKp2OgmST3I7?P!HQc`gwDAX1b3}0e`1P|W;gPK8Oz@V1Q z!_biM0j^UcYr?W6WdcRTsV#XCW6dfM&BR{!{C@A<`{&N7f7b<|mb*m5IUgrGRAIN4 zy9Ep;3#ziqhOzw%91)QuN$`~dAh#Bv;Qus$SZfdw`5cX;)oe?v*_K9dTCg!jj4>r` zm1B$%5fOKsrc6gE_Yc=(*^K_nT~YDs@)m$F49Kme*X;oC{`QEk6yr3-i?t@V7GEjC zFetUz>vlN5xG9a2WixVX`N_VB4)t=0zEUM~{lKcT_3)KqFKiHNjr024myKTG>}g*B z29pH<#|Iu&*qa{hE{#92DsTTMdeLxR5~}hqJQ~L>Yx9?b00000NkvXXu0mjfCySVY literal 0 HcmV?d00001 diff --git a/src/main/resources/assets/compressedtnt/textures/block/tnt_8_top.png b/src/main/resources/assets/compressedtnt/textures/block/tnt_8_top.png new file mode 100644 index 0000000000000000000000000000000000000000..f729e98861d4a3e840ec38b9fe7737b8708e87f7 GIT binary patch literal 548 zcmV+<0^9wGP)Px$-bqA3R5*>5lCf(OQ5?rV$sH+&!->JdIjB$}1Vmg6Pg)`l2mKE+bjc8K$xsN~ z&=Lq7ricVGI7yH|uR}(+${T`W@X^jjf(SX>G896GKypnS!ksxAkiP8$@AuyC_xXJj zZ-3rfjLbOzo8u$^H(`Bb&apfPfZJO~{CKY2h?h?SN+~+SfK{#(4O*ELN+|$3!+=&M zh3hsWPJH-ycM*cwv)SG2QYjkbYL@^M9_j#8iUt6U_9Q9>NUS<&Wl{i?2Gg}Ow=yXX z&VrbOWaz;192)HjrNI=-b7*B!r28|@4|lLU2fv)B(VkGx>Cydke-?Ledh!y#oR2(I ziUv|DT(^l3g3d6&wnfZ=p8a+OTSttwAe#B~gxIldfl>;Sr6VZ~K56cC2b<$0=Z8B; zsaSUo&I0N=J?1FNfl>+|kWx{t?niBg9RQ^JT|i%-1Ay_iq%@e~x=pIp{n+n92r5M* z8YgrR%K?DdvyoDft6gIDY=Brc!d$G)fnUz^?Dbbh<~-VYJ+~|<4W`kC9=!V!InbU~ zZ`CZ%;rn}y-MudUqXd@cu(1J8tY6%Jvmia#CVNrf@rz?-uYTi~^JFgy+`0Pv*Fm`F mbu5I4wY|#M9Q-@u|M(B8EeV4egpVWu0000