Skip to content

Commit

Permalink
22w19a
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed May 12, 2022
1 parent 5c6ea72 commit 674a98c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 11 deletions.
9 changes: 5 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx4G
org.gradle.jvmargs=-Xmx4G -XX:+UseZGC
# Done to possibly help with build times.
org.gradle.parallel=true
org.gradle.caching=true

# Fabric Properties
# check these on https://fabricmc.net/develop
minecraft_version=22w18a
yarn_mappings=22w18a+build.6
minecraft_version=22w19a
yarn_mappings=22w19a+build.1
loader_version=0.14.5

# Mod Properties
Expand All @@ -15,4 +16,4 @@ org.gradle.parallel=true
archives_base_name = wilderwild

# Dependencies
fabric_version=0.52.1+1.19
fabric_version=0.52.2+1.19
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ public static void convertToSculk(WorldAccess world, BlockPos pos) {
BlockState stateReplace = world.getBlockState(newPos.offset(direction));
BlockState stateSetTo = null;
if (stateReplace.isOf(Blocks.SCULK_VEIN)) {
stateSetTo=stateReplace.with(AbstractLichenBlock.getProperty(direction.getOpposite()), true);
stateSetTo=stateReplace.with(MultifaceGrowthBlock.getProperty(direction.getOpposite()), true);
}
if (stateReplace.isAir()) {
stateSetTo=Blocks.SCULK_VEIN.getDefaultState().with(AbstractLichenBlock.getProperty(direction.getOpposite()), true);
stateSetTo=Blocks.SCULK_VEIN.getDefaultState().with(MultifaceGrowthBlock.getProperty(direction.getOpposite()), true);
}
if (stateReplace==Blocks.WATER.getDefaultState()) {
stateSetTo=Blocks.SCULK_VEIN.getDefaultState().with(AbstractLichenBlock.getProperty(direction.getOpposite()), true).with(Properties.WATERLOGGED, true);
stateSetTo=Blocks.SCULK_VEIN.getDefaultState().with(MultifaceGrowthBlock.getProperty(direction.getOpposite()), true).with(Properties.WATERLOGGED, true);
}
if (stateSetTo!=null) { world.setBlockState(newPos.offset(direction), stateSetTo, 3); }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import net.minecraft.world.World;
import net.minecraft.world.WorldView;

public class PollenBlock extends AbstractLichenBlock {
public class PollenBlock extends MultifaceGrowthBlock {
private final LichenGrower grower = new LichenGrower(this);
public PollenBlock(Settings settings) {
super(settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public void keepRunning(ServerWorld serverWorld, WardenEntity wardenEntity, long

wardenEntity.playSound(SoundEvents.ENTITY_WARDEN_SONIC_BOOM, 3.0F, 1.0F);
if (!blocked) {
target.damage(DamageSource.SONIC_BOOM, 10.0F);
target.damage(DamageSource.method_43964(wardenEntity), 10.0F);
double d = 0.5D * (1.0D - target.getAttributeValue(EntityAttributes.GENERIC_KNOCKBACK_RESISTANCE));
double e = 2.5D * (1.0D - target.getAttributeValue(EntityAttributes.GENERIC_KNOCKBACK_RESISTANCE));
target.addVelocity(vec3d3.getX() * e, vec3d3.getY() * d, vec3d3.getZ() * e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ public static void addSwampFeatures(GenerationSettings.Builder builder) {
@Overwrite
public static void addTallBirchTrees(GenerationSettings.Builder builder) {
}
/** @author FrozenBlock
* @reason Replaced with new Taiga Trees */
@Overwrite
public static void addTaigaTrees(GenerationSettings.Builder builder) {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public abstract class RegisterBlocks {
);


public static final AbstractLichenBlock POLLEN_BLOCK = registerLichenBlock("pollen",
public static final MultifaceGrowthBlock POLLEN_BLOCK = registerMultifaceBlock("pollen",
new PollenBlock(FabricBlockSettings
.copyOf(Blocks.GRASS)
.collidable(false)
Expand Down Expand Up @@ -169,7 +169,7 @@ private static HollowedLogBlock createHollowedLogBlock(MapColor topMapColor, Map
.strength(2.0F).sounds(BlockSoundGroup.WOOD));
}

private static AbstractLichenBlock registerLichenBlock(String name, AbstractLichenBlock block, ItemGroup group) {
private static MultifaceGrowthBlock registerMultifaceBlock(String name, MultifaceGrowthBlock block, ItemGroup group) {
registerBlockItem(name, block, group);
return Registry.register(Registry.BLOCK, new Identifier(WilderWild.MOD_ID, name), block);
}
Expand Down

7 comments on commit 674a98c

@AViewFromTheTop

This comment was marked as abuse.

@MerpisMe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MerpisMe here's how to get out of art block: Draw Greenblatt's SpongeBob a few times

it didnt work i just got a square and three circles

@AViewFromTheTop

This comment was marked as abuse.

@MerpisMe
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it didnt work i just got a square and three circles

??????????????

3F31D43C-4A31-4EB4-915D-B7639666F779

@AViewFromTheTop

This comment was marked as abuse.

@MerpisMe
Copy link
Contributor

@MerpisMe MerpisMe commented on 674a98c May 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok first of all drawing on PAPER is going to be infinitely easier

sir i made that using my drawing tablet
(edit: also im joking i've drawn spongebob before)

@AViewFromTheTop

This comment was marked as abuse.

Please sign in to comment.