Skip to content

Commit

Permalink
Updated mod to 1.19.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Negative-light committed Dec 24, 2022
1 parent 038bd5a commit 9ca5694
Show file tree
Hide file tree
Showing 20 changed files with 35,565 additions and 1,693 deletions.
Binary file modified .gradle/7.3/checksums/md5-checksums.bin
Binary file not shown.
Binary file modified .gradle/7.3/checksums/sha1-checksums.bin
Binary file not shown.
Binary file modified .gradle/7.3/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/7.3/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/7.3/fileHashes/fileHashes.bin
Binary file not shown.
2 changes: 1 addition & 1 deletion .gradle/buildOutputCleanup/cache.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#Sat Jan 01 14:23:16 EST 2022
#Sat Jul 23 12:09:12 EDT 2022
gradle.version=7.3
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified .gradle/file-system.probe
Binary file not shown.
7 changes: 3 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ apply plugin: 'org.parchmentmc.librarian.forgegradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'

version = '1.18.1-0.0.0'
version = '1.19.2-1.1.0'
group = 'com.negative_light.compressedstone' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'compressedstone'

Expand All @@ -36,8 +36,7 @@ minecraft {
//
// 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.
mappings channel: 'official', version: '1.18.1'
mappings channel: 'parchment', version: '2021.12.19-1.18.1'
mappings channel: 'parchment', version: '1.19.2-2022.11.27-1.19.2'

// accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') // Currently, this location cannot be changed from the default.

Expand Down Expand Up @@ -132,7 +131,7 @@ dependencies {
// Specify the version of Minecraft to use. If this is any group other than 'net.minecraft', it is assumed
// that the dep is a ForgeGradle 'patcher' dependency, and its patches will be applied.
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
minecraft 'net.minecraftforge:forge:1.18.1-39.0.9'
minecraft 'net.minecraftforge:forge:1.19.2-43.2.0'

// Real mod deobf dependency examples - these get remapped to your current mappings
// compileOnly fg.deobf("mezz.jei:jei-${mc_version}:${jei_version}:api") // Adds JEI API as a compile dependency
Expand Down
3,327 changes: 1,736 additions & 1,591 deletions build/_applyBinpatches_2/log.txt

Large diffs are not rendered by default.

33,683 changes: 33,683 additions & 0 deletions build/_atJar_4/accesstransform.log

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build/_atJar_4/log.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Java Launcher: C:\Program Files\Eclipse Adoptium\jdk-17.0.1.12-hotspot\bin\java.exe
Arguments: '--inJar, C:\Users\night\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.1-39.0.9\forge-1.18.1-39.0.9-injected.jar, --outJar, C:\Users\night\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.18.1-39.0.9_mapped_parchment_2021.12.19-1.18.1\forge-1.18.1-39.0.9_mapped_parchment_2021.12.19-1.18.1.jar, --logFile, accesstransform.log, --atFile, C:\Users\night\CODE\MODING\FORGE\CompresedStone\build\_atJar_4\parent_at.cfg'
Java Launcher: C:\Users\night\.gradle\jdks\jdk-17.0.3+7\bin\java.exe
Arguments: '--inJar, C:\Users\night\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.19.2-43.2.0\forge-1.19.2-43.2.0-injected.jar, --outJar, C:\Users\night\.gradle\caches\forge_gradle\minecraft_user_repo\net\minecraftforge\forge\1.19.2-43.2.0_mapped_official_1.19.2\forge-1.19.2-43.2.0_mapped_official_1.19.2.jar, --logFile, accesstransform.log, --atFile, D:\CODE\JAVA\MINECRAFT\MODS\compressedstone\build\_atJar_4\parent_at.cfg'
Classpath:
- C:\Users\night\.gradle\caches\forge_gradle\maven_downloader\net\minecraftforge\accesstransformers\8.0.7\accesstransformers-8.0.7-fatjar.jar
Working directory: C:\Users\night\CODE\MODING\FORGE\CompresedStone\build\_atJar_4
Working directory: D:\CODE\JAVA\MINECRAFT\MODS\compressedstone\build\_atJar_4
Main class: net.minecraftforge.accesstransformer.TransformerProcessor
====================================
181 changes: 131 additions & 50 deletions build/_atJar_4/parent_at.cfg

Large diffs are not rendered by default.

Binary file modified build/_compileJava_3/mcp/client/Start.class
Binary file not shown.
2 changes: 1 addition & 1 deletion build/downloadMCMeta/version.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,14 @@

import com.negative_light.compressedstone.block.ModBlocks;
import com.negative_light.compressedstone.item.ModItems;
import net.minecraft.world.item.Items;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.block.Blocks;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.InterModComms;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent;
import net.minecraftforge.fml.event.lifecycle.InterModEnqueueEvent;
import net.minecraftforge.fml.event.lifecycle.InterModProcessEvent;
import net.minecraftforge.event.server.ServerStartingEvent;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import java.util.stream.Collectors;

// The value here should match an entry in the META-INF/mods.toml file
@Mod(Compressedstone.MOD_ID)
public class Compressedstone {
Expand All @@ -47,7 +36,6 @@ public Compressedstone() {
private void setup(final FMLCommonSetupEvent event) {
// some preinit code
LOGGER.info("HELLO FROM PREINIT");
LOGGER.info("DIRT BLOCK >> {}", Blocks.DIRT.getRegistryName());
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@
import net.minecraft.world.InteractionResult;
import net.minecraft.world.entity.player.Player;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.PickaxeItem;
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.level.material.PushReaction;
import net.minecraft.world.phys.BlockHitResult;
import net.minecraftforge.registries.RegistryObject;

import java.util.logging.Logger;

public class StoneworkBlock extends Block {

Expand Down Expand Up @@ -49,7 +46,7 @@ public InteractionResult use(BlockState pState, Level pLevel, BlockPos pPos, Pla
Item playerItem = pPlayer.getMainHandItem().getItem();
if(playerItem instanceof PickaxeItem)
pLevel.setBlockAndUpdate(pPos, pushEntitiesUp(pState, pathType.get().defaultBlockState(), pLevel, pPos));
LOGGER.warn("PLAYER INTERACTION");

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,21 @@

import net.minecraft.core.BlockPos;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.item.context.BlockPlaceContext;
import net.minecraft.world.level.Level;
import net.minecraft.world.level.block.*;
import net.minecraft.world.level.block.state.BlockBehaviour;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.material.PushReaction;
import net.minecraft.world.phys.shapes.VoxelShape;

import java.util.Random;

import static net.minecraft.world.effect.MobEffects.*;

public class StoneworkPathBlock extends DirtPathBlock {
public StoneworkPathBlock(Properties properties) {
super(properties);
}


@Override
public PushReaction getPistonPushReaction(BlockState pState) {
return PushReaction.BLOCK;
}
Expand All @@ -32,24 +26,13 @@ public boolean useShapeForLightOcclusion(BlockState p_153159_) {
@Override
public void stepOn(Level pLevel, BlockPos pPos, BlockState pState, Entity pEntity) {

if (!pLevel.isClientSide) {
if(pEntity instanceof LivingEntity){
LivingEntity entity = ((LivingEntity) pEntity);
/*entity.addEffect(new MobEffectInstance(MOVEMENT_SPEED,
1,
2,false,false));*/
}
//LOGGER.info("PLAYER ON PATH");

}
//LOGGER.info("Living Entity on Path");
super.stepOn(pLevel, pPos, pState, pEntity);
}

@Override
public void tick(BlockState p_153133_, ServerLevel p_153134_, BlockPos p_153135_, Random p_153136_) {
public void tick(BlockState blockState, ServerLevel level, BlockPos pos, RandomSource randomSource) {
//DO NOTHING WE DON"T WANT TO BECOME DIRT

}

public BlockState getStateForPlacement(BlockPlaceContext p_153131_) {
Expand Down
10 changes: 3 additions & 7 deletions src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ modId="compressedstone" #mandatory
# see the associated build.gradle script for how to populate this completely automatically during a build
version="${file.jarVersion}" #mandatory
# A display name for the mod
displayName="Example Mod" #mandatory
displayName="Negative's Stoneworks" #mandatory
# A URL to query for updates for this mod. See the JSON update specification https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/
#updateJSONURL="https://change.me.example.invalid/updates.json" #optional
# A URL for the "homepage" for this mod, displayed in the mod UI
Expand All @@ -34,11 +34,7 @@ credits="Thanks for this example mod goes to Java" #optional
authors="Negative_light" #optional
# The description text for the mod (multi line!) (#mandatory)
description='''
This is a long form description of the mod. You can write whatever you want here
Have some lorem ipsum.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magna. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Sed sagittis luctus odio eu tempus. Interdum et malesuada fames ac ante ipsum primis in faucibus. Pellentesque volutpat ligula eget lacus auctor sagittis. In hac habitasse platea dictumst. Nunc gravida elit vitae sem vehicula efficitur. Donec mattis ipsum et arcu lobortis, eleifend sagittis sem rutrum. Cras pharetra quam eget posuere fermentum. Sed id tincidunt justo. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
This mod is for the purpose of learngin forge by me Negative_light. All it does is add a few special blocks
'''
# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
[[dependencies.examplemod]] #optional
Expand All @@ -57,6 +53,6 @@ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed mollis lacinia magn
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="[1.18.1,1.19)"
versionRange="[1.18.1,1.20)"
ordering="NONE"
side="BOTH"
Binary file not shown.

0 comments on commit 9ca5694

Please sign in to comment.