Skip to content

Commit

Permalink
wallpapers
Browse files Browse the repository at this point in the history
props - trash, trash(spread), puddle, pebbles, dust, gravel patch, driftwood
mycelium foliage
devtextures
warped roots retexture
warped stalks
iron plating set
hazard marker set
metal ladder + sfx
???
glowing mushrooms
jelly :3
some unused stuff
ice-nuclearcrackhead239 committed Dec 29, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a7cbb33 commit 0ae0441
Showing 269 changed files with 3,794 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -44,3 +44,4 @@ replay_*.log
# respack

AAAA_v5_BLACKMESAINBOUND/
/schematics - Shortcut.lnk
Original file line number Diff line number Diff line change
@@ -42,14 +42,29 @@ public static void init() {
ModBlocks.SPEED_PAD,
ModBlocks.BOUNCE_PAD,
ModBlocks.CRIMSON_STALKS,
ModBlocks.VOID_LAMP
ModBlocks.WARPED_STALKS,
ModBlocks.TRASH,
ModBlocks.TRASH_SPREAD,
ModBlocks.FIREBLU,
ModBlocks.GRAVEL_PATCH,
ModBlocks.VOID_LAMP,
ModBlocks.GLOWING_MUSHROOMS,
ModBlocks.METAL_LADDER,
ModBlocks.MYCELIA,
ModBlocks.MYCELIA_BLOOM,
ModBlocks.MYCELIA_STALKS,
ModBlocks.MYCELIAL_EYE
);

BlockRenderLayerMap.INSTANCE.putBlocks(RenderLayer.getTranslucent(),
ModBlocks.PORTAL_GLASS_TRANSPARENT,
ModBlocks.DARK_GLASS,
ModBlocks.AGONIZED_GLASS,
ModBlocks.FORCEFIELD,
ModBlocks.JELLY_TRANSLUCENT,
//ModBlocks.FORCEFIELD_WATER,
ModBlocks.PUDDLE,
ModBlocks.DUST,
ModBlocks.FLESH_MESH,
ModBlocks.WATER_SILK
);
Original file line number Diff line number Diff line change
@@ -7,6 +7,7 @@
import net.minecraft.client.color.world.BiomeColors;
import net.minecraft.item.BlockItem;
import net.minecraft.registry.Registries;
import net.minecraft.util.Colors;
import net.minecraft.world.biome.GrassColors;

public class ModColorProviders {
@@ -15,7 +16,7 @@ public class ModColorProviders {
public static void init() {
//blocks
ColorProviderRegistry.BLOCK.register(
(state, view, pos, tintIndex) -> view != null && pos != null ? BiomeColors.getGrassColor(view, pos) : GrassColors.getDefaultColor(),
(state, view, pos, tintIndex) -> view != null && pos != null ? BiomeColors.getGrassColor(view, pos) : Colors.WHITE,
ModBlocks.WATER_SILK
);

Original file line number Diff line number Diff line change
@@ -49,8 +49,36 @@ public class ModItemGroups {
entries.add(ModBlocks.SILT);
entries.add(ModBlocks.ROPE);
entries.add(ModItems.WATER_SILK);
entries.add(ModBlocks.EXAMPLE_BLOCK);
entries.add(ModItems.PROP_DRIFTWOOD);
entries.add(ModItems.PROP_PUDDLE);
entries.add(ModItems.PROP_DUST);
entries.add(ModItems.PROP_GRAVEL_PATCH);
entries.add(ModItems.PROP_TRASH);
entries.add(ModItems.PROP_TRASH_SPREAD);
entries.add(ModItems.PROP_PEBBLES);
entries.add(ModBlocks.LOPER_BRICKS);
entries.add(ModBlocks.B_DEV_ORANGE);
entries.add(ModBlocks.B_DEV_ASH);
entries.add(ModBlocks.B_DEV_WHITE);
entries.add(ModItems.GLOWING_MUSHROOMS);
entries.add(ModBlocks.GLOWING_MUSHROOM_BLOCK);
entries.add(ModBlocks.GLOWING_MUSHROOM_STEM);
entries.add(ModItems.MYCELIA);
entries.add(ModItems.MYCELIA_BLOOM);
entries.add(ModItems.MYCELIA_STALKS);
entries.add(ModItems.MYCELIAL_EYE);
entries.add(ModBlocks.BLOCK_TRASH);
entries.add(ModBlocks.RUST);
entries.add(ModBlocks.WASTEBARREL);
entries.add(ModBlocks.HAZARD_MARKER);
entries.add(ModBlocks.HAZARD_MARKER_SLAB);
entries.add(ModBlocks.HAZARD_MARKER_STAIRS);
entries.add(ModBlocks.METAL_LADDER);
entries.add(ModBlocks.IRON_PLATING);
entries.add(ModBlocks.IRON_PLATING_SLAB);
entries.add(ModBlocks.IRON_PLATING_STAIRS);
entries.add(ModBlocks.SMOOTH_IRON);
entries.add(ModBlocks.TILED_IRON);
entries.add(ModBlocks.WHITE);
entries.add(ModBlocks.BLACK);
entries.add(ModBlocks.CRYSTALLINE_DIAMOND);
@@ -59,6 +87,9 @@ public class ModItemGroups {
entries.add(ModBlocks.OBSIDIAN_LIGHT_STRIP);
entries.add(ModBlocks.PORTAL_GLASS_OPAQUE);
entries.add(ModBlocks.PORTAL_GLASS_TRANSPARENT);
entries.add(ModBlocks.JELLY);
entries.add(ModBlocks.JELLY_TRANSLUCENT);
entries.add(ModBlocks.DARK_GLASS);
entries.add(ModBlocks.VOID_LAMP);
entries.add(ModBlocks.SMOOTH_STONE_STAIRS);
entries.add(ModBlocks.RIVERTILES);
@@ -84,13 +115,32 @@ public class ModItemGroups {
entries.add(ModBlocks.CHISELED_NETHERITE);
entries.add(ModBlocks.POLISHED_NETHERITE);
entries.add(ModItems.CRIMSON_STALKS);
entries.add(ModItems.WARPED_STALKS);
entries.add(ModBlocks.FLESH);
entries.add(ModBlocks.FLESH_EYES);
entries.add(ModBlocks.FLESH_GUTS);
entries.add(ModBlocks.FLESH_GUTS_ROTTEN);
entries.add(ModBlocks.FLESH_HOLES);
entries.add(ModBlocks.FLESH_MESH);
entries.add(ModBlocks.FLESH_SPINE);
entries.add(ModBlocks.WHITE_WALLPAPER);
entries.add(ModBlocks.SILVER_WALLPAPER);
entries.add(ModBlocks.ASH_WALLPAPER);
entries.add(ModBlocks.BLACK_WALLPAPER);
entries.add(ModBlocks.BROWN_WALLPAPER);
entries.add(ModBlocks.RED_WALLPAPER);
entries.add(ModBlocks.ORANGE_WALLPAPER);
entries.add(ModBlocks.YELLOW_WALLPAPER);
entries.add(ModBlocks.LIME_WALLPAPER);
entries.add(ModBlocks.GREEN_WALLPAPER);
entries.add(ModBlocks.CYAN_WALLPAPER);
entries.add(ModBlocks.BLUE_WALLPAPER);
entries.add(ModBlocks.NAVY_WALLPAPER);
entries.add(ModBlocks.PURPLE_WALLPAPER);
entries.add(ModBlocks.MAGENTA_WALLPAPER);
entries.add(ModBlocks.PINK_WALLPAPER);
entries.add(ModBlocks.FIREBLU);
entries.add(ModBlocks.EXAMPLE_BLOCK);
})
.build();

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.nuclearcrackhead.serverboss.content.block;

import com.mojang.serialization.MapCodec;
import net.minecraft.block.*;
import net.minecraft.fluid.FluidState;
import net.minecraft.fluid.Fluids;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView;

public class Prop extends PlantBlock {
public static final MapCodec<Prop> CODEC = createCodec(Prop::new);
protected static final VoxelShape SHAPE = Block.createCuboidShape((double)1.0F, (double)0.0F, (double)1.0F, (double)15.0F, (double)1.5F, (double)15.0F);

public MapCodec<Prop> getCodec() {
return CODEC;
}

public Prop(Settings settings) {
super(settings);
}

protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) {
return SHAPE;
}

protected boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos) {
return true;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.nuclearcrackhead.serverboss.content.block;

import com.mojang.serialization.MapCodec;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.PlantBlock;
import net.minecraft.block.ShapeContext;
import net.minecraft.fluid.Fluids;
import net.minecraft.item.ItemPlacementContext;
import net.minecraft.state.StateManager;
import net.minecraft.state.property.BooleanProperty;
import net.minecraft.state.property.EnumProperty;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView;
import net.minecraft.world.World;

public class PropFloating extends Prop {
public static final MapCodec<PropFloating> CODEC = createCodec(PropFloating::new);
protected static final VoxelShape SHAPE = Block.createCuboidShape((double)1.0F, (double)0.0F, (double)1.0F, (double)15.0F, (double)1.5F, (double)15.0F);

public static final BooleanProperty FLOATING = BooleanProperty.of("floating");
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
builder.add(FLOATING);
}

@Override
public BlockState getPlacementState(ItemPlacementContext ctx) {
BlockPos blockPos = ctx.getBlockPos();
World world = ctx.getWorld();
boolean ret = world.getFluidState(blockPos.add(0,-1,0)).isOf(Fluids.WATER);
return this.getDefaultState().with(FLOATING, ret);
}

public PropFloating(Settings settings) {
super(settings);
}


}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.nuclearcrackhead.serverboss.content.block;

import com.mojang.serialization.MapCodec;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.PlantBlock;
import net.minecraft.block.ShapeContext;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.world.BlockView;

public class PropPuddle extends Prop {
public static final MapCodec<PropPuddle> CODEC = createCodec(PropPuddle::new);
protected static final VoxelShape SHAPE = Block.createCuboidShape((double)0.0F, (double)0.0F, (double)0.0F, (double)16.0F, (double)1.0F, (double)16.0F);

public PropPuddle(Settings settings) {
super(settings);
}

protected VoxelShape getOutlineShape(BlockState state, BlockView world, BlockPos pos, ShapeContext context) {
return SHAPE;
}
}
Original file line number Diff line number Diff line change
@@ -33,18 +33,18 @@ public void tryBounce(World world, BlockPos pos, BlockState state, Entity entity
Direction dir = state.get(SpeedPadBlock.FACING);
switch (dir) {
case NORTH:
dirForce = new Vec3d(0,0,-2);
dirForce = new Vec3d(0,0,-3);
break;
case EAST:
dirForce = new Vec3d(2,0,0);
dirForce = new Vec3d(3,0,0);
break;
case SOUTH:
dirForce = new Vec3d(0,0,2);
dirForce = new Vec3d(0,0,3);
break;
case WEST:
dirForce = new Vec3d(-2,0,0);
dirForce = new Vec3d(-3,0,0);
}
entity.setVelocity(entity.getVelocity().add(dirForce).add(0, 0.35, 0));
entity.setVelocity(entity.getVelocity().add(dirForce).add(0, 0.4, 0));
world.playSound(null, pos, ModSounds.BLOCK_SPEED_PAD, SoundCategory.BLOCKS, 1.0f, 1.0f);
if (world instanceof ServerWorld serverWorld) {
Vec3d center = pos.toCenterPos();
Loading

0 comments on commit 0ae0441

Please sign in to comment.