3 Commits
0.1.0 ... 1.18

Author SHA1 Message Date
081b744755 Updates!
Updated to 1.18.1, added copper items, new recipes
2022-01-17 23:25:39 -05:00
2ca55f3b48 Implement Vertical Slabs
Still have some bugs such as waterlogging not working and not all 1.17 blocks have been added
2021-11-08 20:19:43 -05:00
c1e1065c3b Fixed OreGen and Enchanted Apples not Glowing 2021-11-08 19:16:21 -05:00
270 changed files with 2859 additions and 66 deletions

2
.idea/compiler.xml generated
View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<bytecodeTargetLevel target="16" />
<bytecodeTargetLevel target="17" />
</component>
</project>

2
.idea/misc.xml generated
View File

@@ -4,7 +4,7 @@
<component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" default="true" project-jdk-name="azul-16" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="azul-16" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

View File

@@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="RunConfigurationProducerService">
<option name="ignoredProducers">
<set>
<option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" />
</set>
</option>
</component>
</project>

View File

@@ -1,10 +1,10 @@
plugins {
id 'fabric-loom' version '0.9-SNAPSHOT'
id 'fabric-loom' version '0.10-SNAPSHOT'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
archivesBaseName = project.archives_base_name
version = project.mod_version
@@ -32,7 +32,7 @@ processResources {
tasks.withType(JavaCompile).configureEach {
it.options.encoding = "UTF-8"
it.options.release = 16
it.options.release = 17
}
java {

View File

@@ -1,16 +1,16 @@
# Done to increase the memory available to gradle.
org.gradle.jvmargs=-Xmx2G
org.gradle.jvmargs=-Xmx4G
# Fabric Properties
# check these on https://fabricmc.net/versions.html
minecraft_version=1.17.1
yarn_mappings=1.17.1+build.63
loader_version=0.11.7
minecraft_version=1.18.1
yarn_mappings=1.18.1+build.1
loader_version=0.12.12
# Mod Properties
mod_version = 1.0.0
mod_version = 1.1.1
maven_group = tech.nevets
archives_base_name = vplus
# Dependencies
fabric_version=0.41.0+1.17
fabric_version=0.44.0+1.18

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -6,6 +6,7 @@ import tech.nevets.vplus.blocks.VPBlocks;
import tech.nevets.vplus.food.VPFood;
import tech.nevets.vplus.items.VPItems;
import tech.nevets.vplus.misc.VPFuels;
import tech.nevets.vplus.misc.VPOreGen;
import tech.nevets.vplus.misc.VPZoom;
import tech.nevets.vplus.tools.VPTools;
@@ -18,7 +19,7 @@ public class Main implements ModInitializer {
VPFood.vpFood();
VPTools.vpTools();
VPArmor.vpArmor();
VPOreGen.vpOres();
VPFuels.vpFuels();
VPZoom.vpZoom();
}
}

View File

@@ -15,6 +15,9 @@ import tech.nevets.vplus.items.VPItems;
import java.util.function.Supplier;
public enum ArmorMaterials implements ArmorMaterial {
COPPER("copper", 13, new int[]{2, 4, 5, 2}, 20, SoundEvents.ITEM_ARMOR_EQUIP_IRON, 0.0F, 0.0F, () -> {
return Ingredient.ofItems(new ItemConvertible[]{Items.COPPER_INGOT});
}),
EMERALD("emerald", 30, new int[]{2, 6, 8, 2}, 30, SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND, 1.0F, 0.0F, () -> {
return Ingredient.ofItems(new ItemConvertible[]{Items.EMERALD});
}),

View File

@@ -7,6 +7,7 @@ import net.minecraft.util.registry.Registry;
public class VPArmor {
public static final ArmorMaterial COPPER_ARMOR = ArmorMaterials.COPPER;
public static final ArmorMaterial EMERALD_ARMOR = ArmorMaterials.EMERALD;
public static final ArmorMaterial PLATINUM_ARMOR = ArmorMaterials.PLATINUM;
public static final ArmorMaterial RUBY_ARMOR = ArmorMaterials.RUBY;
@@ -19,24 +20,28 @@ public class VPArmor {
}
public static void initializeHelmet() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_helmet"), new BaseArmor(COPPER_ARMOR, EquipmentSlot.HEAD));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_helmet"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.HEAD));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_helmet"), new BaseArmor(PLATINUM_ARMOR, EquipmentSlot.HEAD));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_helmet"), new BaseArmor(RUBY_ARMOR, EquipmentSlot.HEAD));
}
public static void initializeChestplates() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_chestplate"), new BaseArmor(COPPER_ARMOR, EquipmentSlot.CHEST));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_chestplate"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.CHEST));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_chestplate"), new BaseArmor(PLATINUM_ARMOR, EquipmentSlot.CHEST));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_chestplate"), new BaseArmor(RUBY_ARMOR, EquipmentSlot.CHEST));
}
public static void initialzeLeggings() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_leggings"), new BaseArmor(COPPER_ARMOR, EquipmentSlot.LEGS));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_leggings"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.LEGS));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_leggings"), new BaseArmor(PLATINUM_ARMOR, EquipmentSlot.LEGS));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_leggings"), new BaseArmor(RUBY_ARMOR, EquipmentSlot.LEGS));
}
public static void initializeBoots() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_boots"), new BaseArmor(COPPER_ARMOR, EquipmentSlot.FEET));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_boots"), new BaseArmor(EMERALD_ARMOR, EquipmentSlot.FEET));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_boots"), new BaseArmor(PLATINUM_ARMOR, EquipmentSlot.FEET));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_boots"), new BaseArmor(RUBY_ARMOR, EquipmentSlot.FEET));

View File

@@ -6,6 +6,7 @@ import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.sound.BlockSoundGroup;
//TODO Change platinum to saphire
public class PlatinumBlock extends Block {
public PlatinumBlock() {
super(FabricBlockSettings.of(Material.STONE).breakByHand(false).breakByTool(FabricToolTags.PICKAXES).sounds(BlockSoundGroup.METAL).strength(30, 1000f));

View File

@@ -22,6 +22,7 @@ public class VPBlocks {
initializeBlocks();
initializeBlockItems();
initializeTorches();
VPVerticalSlabs.vpVerticalSlabs();
}
public static void initializeBlocks() {

View File

@@ -0,0 +1,180 @@
package tech.nevets.vplus.blocks;
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags;
import net.minecraft.block.Block;
import net.minecraft.block.Material;
import net.minecraft.item.BlockItem;
import net.minecraft.item.Item;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import tech.nevets.vplus.items.VPItemGroups;
public class VPVerticalSlabs {
//TODO add new 1.17 blocks
public static final Block VERTICAL_OAK_SLAB;
public static final Block VERTICAL_SPRUCE_SLAB;
public static final Block VERTICAL_BIRCH_SLAB;
public static final Block VERTICAL_JUNGLE_SLAB;
public static final Block VERTICAL_ACACIA_SLAB;
public static final Block VERTICAL_DARK_OAK_SLAB;
public static final Block VERTICAL_CRIMSON_SLAB;
public static final Block VERTICAL_WARPED_SLAB;
public static final Block VERTICAL_STONE_SLAB;
public static final Block VERTICAL_SMOOTH_STONE_SLAB;
public static final Block VERTICAL_SANDSTONE_SLAB;
public static final Block VERTICAL_CUT_SANDSTONE_SLAB;
public static final Block VERTICAL_COBBLESTONE_SLAB;
public static final Block VERTICAL_BRICK_SLAB;
public static final Block VERTICAL_STONE_BRICK_SLAB;
public static final Block VERTICAL_NETHER_BRICK_SLAB;
public static final Block VERTICAL_QUARTZ_SLAB;
public static final Block VERTICAL_RED_SANDSTONE_SLAB;
public static final Block VERTICAL_CUT_RED_SANDSTONE_SLAB;
public static final Block VERTICAL_PURPUR_SLAB;
public static final Block VERTICAL_PRISMARINE_SLAB;
public static final Block VERTICAL_PRISMARINE_BRICK_SLAB;
public static final Block VERTICAL_DARK_PRISMARINE_SLAB;
public static final Block VERTICAL_POLISHED_GRANITE_SLAB;
public static final Block VERTICAL_SMOOTH_RED_SANDSTONE_SLAB;
public static final Block VERTICAL_MOSSY_STONE_BRICK_SLAB;
public static final Block VERTICAL_POLISHED_DIORITE_SLAB;
public static final Block VERTICAL_MOSSY_COBBLESTONE_SLAB;
public static final Block VERTICAL_END_STONE_BRICK_SLAB;
public static final Block VERTICAL_SMOOTH_SANDSTONE_SLAB;
public static final Block VERTICAL_SMOOTH_QUARTZ_SLAB;
public static final Block VERTICAL_GRANITE_SLAB;
public static final Block VERTICAL_ANDESITE_SLAB;
public static final Block VERTICAL_RED_NETHER_BRICK_SLAB;
public static final Block VERTICAL_POLISHED_ANDESITE_SLAB;
public static final Block VERTICAL_DIORITE_SLAB;
public static final Block VERTICAL_BLACKSTONE_SLAB;
public static final Block VERTICAL_POLISHED_BLACKSTONE_SLAB;
public static final Block VERTICAL_POLISHED_BLACKSTONE_BRICK_SLAB;
public static void vpVerticalSlabs() {
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_oak_slab"), VERTICAL_OAK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_oak_slab"), new BlockItem(VERTICAL_OAK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_spruce_slab"), VERTICAL_SPRUCE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_spruce_slab"), new BlockItem(VERTICAL_SPRUCE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_birch_slab"), VERTICAL_BIRCH_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_birch_slab"), new BlockItem(VERTICAL_BIRCH_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_jungle_slab"), VERTICAL_JUNGLE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_jungle_slab"), new BlockItem(VERTICAL_JUNGLE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_acacia_slab"), VERTICAL_ACACIA_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_acacia_slab"), new BlockItem(VERTICAL_ACACIA_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_dark_oak_slab"), VERTICAL_DARK_OAK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_dark_oak_slab"), new BlockItem(VERTICAL_DARK_OAK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_crimson_slab"), VERTICAL_CRIMSON_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_crimson_slab"), new BlockItem(VERTICAL_CRIMSON_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_warped_slab"), VERTICAL_WARPED_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_warped_slab"), new BlockItem(VERTICAL_WARPED_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_stone_slab"), VERTICAL_STONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_stone_slab"), new BlockItem(VERTICAL_STONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_smooth_stone_slab"), VERTICAL_SMOOTH_STONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_smooth_stone_slab"), new BlockItem(VERTICAL_SMOOTH_STONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_sandstone_slab"), VERTICAL_SANDSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_sandstone_slab"), new BlockItem(VERTICAL_SANDSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_cut_sandstone_slab"), VERTICAL_CUT_SANDSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_cut_sandstone_slab"), new BlockItem(VERTICAL_CUT_SANDSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_cobblestone_slab"), VERTICAL_COBBLESTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_cobblestone_slab"), new BlockItem(VERTICAL_COBBLESTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_brick_slab"), VERTICAL_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_brick_slab"), new BlockItem(VERTICAL_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_stone_brick_slab"), VERTICAL_STONE_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_stone_brick_slab"), new BlockItem(VERTICAL_STONE_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_nether_brick_slab"), VERTICAL_NETHER_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_nether_brick_slab"), new BlockItem(VERTICAL_NETHER_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_quartz_slab"), VERTICAL_QUARTZ_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_quartz_slab"), new BlockItem(VERTICAL_QUARTZ_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_red_sandstone_slab"), VERTICAL_RED_SANDSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_red_sandstone_slab"), new BlockItem(VERTICAL_RED_SANDSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_cut_red_sandstone_slab"), VERTICAL_CUT_RED_SANDSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_cut_red_sandstone_slab"), new BlockItem(VERTICAL_CUT_RED_SANDSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_purpur_slab"), VERTICAL_PURPUR_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_purpur_slab"), new BlockItem(VERTICAL_PURPUR_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_prismarine_slab"), VERTICAL_PRISMARINE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_prismarine_slab"), new BlockItem(VERTICAL_PRISMARINE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_prismarine_brick_slab"), VERTICAL_PRISMARINE_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_prismarine_brick_slab"), new BlockItem(VERTICAL_PRISMARINE_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_dark_prismarine_slab"), VERTICAL_DARK_PRISMARINE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_dark_prismarine_slab"), new BlockItem(VERTICAL_DARK_PRISMARINE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_polished_granite_slab"), VERTICAL_POLISHED_GRANITE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_polished_granite_slab"), new BlockItem(VERTICAL_POLISHED_GRANITE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_smooth_red_sandstone_slab"), VERTICAL_SMOOTH_RED_SANDSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_smooth_red_sandstone_slab"), new BlockItem(VERTICAL_SMOOTH_RED_SANDSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_mossy_stone_brick_slab"), VERTICAL_MOSSY_STONE_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_mossy_stone_brick_slab"), new BlockItem(VERTICAL_MOSSY_STONE_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_polished_diorite_slab"), VERTICAL_POLISHED_DIORITE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_polished_diorite_slab"), new BlockItem(VERTICAL_POLISHED_DIORITE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_mossy_cobblestone_slab"), VERTICAL_MOSSY_COBBLESTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_mossy_cobblestone_slab"), new BlockItem(VERTICAL_MOSSY_COBBLESTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_end_stone_brick_slab"), VERTICAL_END_STONE_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_end_stone_brick_slab"), new BlockItem(VERTICAL_END_STONE_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_smooth_sandstone_slab"), VERTICAL_SMOOTH_SANDSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_smooth_sandstone_slab"), new BlockItem(VERTICAL_SMOOTH_SANDSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_smooth_quartz_slab"), VERTICAL_SMOOTH_QUARTZ_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_smooth_quartz_slab"), new BlockItem(VERTICAL_SMOOTH_QUARTZ_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_granite_slab"), VERTICAL_GRANITE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_granite_slab"), new BlockItem(VERTICAL_GRANITE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_andesite_slab"), VERTICAL_ANDESITE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_andesite_slab"), new BlockItem(VERTICAL_ANDESITE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_red_nether_brick_slab"), VERTICAL_RED_NETHER_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_red_nether_brick_slab"), new BlockItem(VERTICAL_RED_NETHER_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_polished_andesite_slab"), VERTICAL_POLISHED_ANDESITE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_polished_andesite_slab"), new BlockItem(VERTICAL_POLISHED_ANDESITE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_diorite_slab"), VERTICAL_DIORITE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_diorite_slab"), new BlockItem(VERTICAL_DIORITE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_blackstone_slab"), VERTICAL_BLACKSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_blackstone_slab"), new BlockItem(VERTICAL_BLACKSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_polished_blackstone_slab"), VERTICAL_POLISHED_BLACKSTONE_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_polished_blackstone_slab"), new BlockItem(VERTICAL_POLISHED_BLACKSTONE_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
Registry.register(Registry.BLOCK, new Identifier("vplus","vertical_polished_blackstone_brick_slab"), VERTICAL_POLISHED_BLACKSTONE_BRICK_SLAB);
Registry.register(Registry.ITEM, new Identifier("vplus","vertical_polished_blackstone_brick_slab"), new BlockItem(VERTICAL_POLISHED_BLACKSTONE_BRICK_SLAB, new Item.Settings().group(VPItemGroups.VERTICAL_SLABS)));
}
static {
VERTICAL_OAK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_SPRUCE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_BIRCH_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_JUNGLE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_ACACIA_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_DARK_OAK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_CRIMSON_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_WARPED_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.WOOD).sounds(BlockSoundGroup.WOOD).hardness(2.0F).breakByTool(FabricToolTags.AXES));
VERTICAL_STONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_SMOOTH_STONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_SANDSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_CUT_SANDSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_COBBLESTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_STONE_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_NETHER_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_QUARTZ_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_RED_SANDSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_CUT_RED_SANDSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_PURPUR_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_PRISMARINE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_PRISMARINE_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_DARK_PRISMARINE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_POLISHED_GRANITE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_SMOOTH_RED_SANDSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_MOSSY_STONE_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_POLISHED_DIORITE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_MOSSY_COBBLESTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_END_STONE_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_SMOOTH_SANDSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_SMOOTH_QUARTZ_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_GRANITE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_ANDESITE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_RED_NETHER_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_POLISHED_ANDESITE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_DIORITE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_BLACKSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_POLISHED_BLACKSTONE_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
VERTICAL_POLISHED_BLACKSTONE_BRICK_SLAB = new VerticalSlabs(FabricBlockSettings.of(Material.STONE).sounds(BlockSoundGroup.STONE).hardness(2.0F).breakByHand(false).breakByTool(FabricToolTags.PICKAXES));
}
}

View File

@@ -0,0 +1,86 @@
package tech.nevets.vplus.blocks;
import net.minecraft.block.*;
import net.minecraft.fluid.FluidState;
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.Properties;
import net.minecraft.tag.FluidTags;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.shape.VoxelShape;
import net.minecraft.util.shape.VoxelShapes;
import net.minecraft.world.BlockView;
public class VerticalSlabs extends HorizontalFacingBlock {
private static final VoxelShape NORTH_SHAPE;
private static final VoxelShape EAST_SHAPE;
private static final VoxelShape SOUTH_SHAPE;
private static final VoxelShape WEST_SHAPE;
public static final BooleanProperty WATERLOGGED = Properties.WATERLOGGED;
public VerticalSlabs(Settings settings){
super(settings);
this.setDefaultState(this.stateManager.getDefaultState().with(WATERLOGGED, true).with(FACING, Direction.NORTH));
}
//TODO Fix Waterlogging
@Override
public FluidState getFluidState(BlockState blockState_1) {
return (Boolean)blockState_1.get(WATERLOGGED) ? Fluids.WATER.getStill(false) : super.getFluidState(blockState_1);
}
@Override
public BlockRenderType getRenderType(BlockState blockState_1) {
return BlockRenderType.MODEL;
}
@Override
public BlockState getPlacementState(ItemPlacementContext itemPlacementContext) {
FluidState fluidState = itemPlacementContext.getWorld().getFluidState(itemPlacementContext.getBlockPos());
boolean waterLog = fluidState.isIn(FluidTags.WATER) && fluidState.getLevel() == 8;
return super.getPlacementState(itemPlacementContext).with(WATERLOGGED, waterLog)
.with(FACING, itemPlacementContext.getPlayerFacing().getOpposite());
}
@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
builder.add(WATERLOGGED, FACING);
}
@Override
public VoxelShape getOutlineShape(BlockState state, BlockView view, BlockPos pos, ShapeContext context) {
switch(state.get(FACING)) {
case NORTH: return NORTH_SHAPE;
case EAST: return EAST_SHAPE;
case SOUTH: return SOUTH_SHAPE;
case WEST: return WEST_SHAPE;
default: return super.getOutlineShape(state, view, pos, context);
}
}
static {
VoxelShape shape = createCuboidShape(0.0D, 0.0D, 0.0D, 8.0D, 16.0D, 16.0D);
EAST_SHAPE = shape;
NORTH_SHAPE = rotate(Direction.EAST, Direction.NORTH, shape);
SOUTH_SHAPE = rotate(Direction.EAST, Direction.SOUTH, shape);
WEST_SHAPE = rotate(Direction.EAST, Direction.WEST, shape);
}
private static VoxelShape rotate(Direction from, Direction to, VoxelShape shape) {
VoxelShape[] buffer = new VoxelShape[]{ shape, VoxelShapes.empty() };
int times = (to.getHorizontal() - from.getHorizontal() + 4) % 4;
for (int i = 0; i < times; i++) {
buffer[0].forEachBox((minX, minY, minZ, maxX, maxY, maxZ) -> buffer[1] = VoxelShapes.union(buffer[1], VoxelShapes.cuboid(1-maxZ, minY, minX, 1-minZ, maxY, maxX)));
buffer[0] = buffer[1];
buffer[1] = VoxelShapes.empty();
}
return buffer[0];
}
}

View File

@@ -1,4 +1,4 @@
package tech.nevets.vplus.mixin;
package tech.nevets.vplus.clientmixin;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
@@ -13,7 +13,7 @@ import tech.nevets.vplus.misc.VPZoom;
@Environment(EnvType.CLIENT)
@Mixin(GameRenderer.class)
public class ZoomMixin {
@Inject(method = "getFov(Lnet/minecraft/client/render/Camera;FZ)D", at = @At("HEAD"), cancellable = true)
@Inject(method = "getFov(Lnet/minecraft/client/render/Camera;FZ)D", at = @At("RETURN"), cancellable = true)
public void getZoomLevel(CallbackInfoReturnable<Double> callbackInfo) {
if(ZoomInit.isZooming()) {
callbackInfo.setReturnValue(VPZoom.zoomLevel);

View File

@@ -0,0 +1,13 @@
package tech.nevets.vplus.food;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import tech.nevets.vplus.items.VPItemGroups;
public class CopperApple extends Item {
public CopperApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(12).saturationModifier(16).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 5),1f).build()));
}
}

View File

@@ -0,0 +1,18 @@
package tech.nevets.vplus.food;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedCopperApple extends Item {
public EnchantedCopperApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(12).saturationModifier(16).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 6),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -4,10 +4,15 @@ import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedDiamondApple extends Item {
public EnchantedDiamondApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(8).saturationModifier(14).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 4),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -4,10 +4,15 @@ import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedEmeraldApple extends Item {
public EnchantedEmeraldApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(12).saturationModifier(16).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 6),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -4,10 +4,15 @@ import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedIronApple extends Item {
public EnchantedIronApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(6).saturationModifier(10).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 2),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -4,10 +4,15 @@ import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedNetheriteApple extends Item {
public EnchantedNetheriteApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(14).saturationModifier(18).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 8),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -4,10 +4,15 @@ import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedPlatinumApple extends Item {
public EnchantedPlatinumApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(16).saturationModifier(20).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 10),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -4,10 +4,15 @@ import net.minecraft.entity.effect.StatusEffectInstance;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.FoodComponent;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import tech.nevets.vplus.items.VPItemGroups;
public class EnchantedRubyApple extends Item {
public EnchantedRubyApple() {
super(new Settings().group(VPItemGroups.FOOD).food(new FoodComponent.Builder().hunger(18).saturationModifier(22).alwaysEdible().statusEffect(new StatusEffectInstance(StatusEffects.REGENERATION, 20*120, 12),1f).build()));
}
public boolean hasGlint(ItemStack stack) {
return true;
}
}

View File

@@ -8,6 +8,8 @@ public class VPFood {
public static final Item IRONAPPLE = new IronApple();
public static final Item ENCHANTEDIRONAPPLE = new EnchantedIronApple();
public static final Item COPPERAPPLE = new CopperApple();
public static final Item ENCHANTEDCOPPERAPPLE = new EnchantedCopperApple();
public static final Item DIAMONDAPPLE = new DiamondApple();
public static final Item ENCHANTEDDIAMONDAPPLE = new EnchantedDiamondApple();
public static final Item EMERALDAPPLE = new EmeraldApple();
@@ -27,6 +29,8 @@ public class VPFood {
public static void initializeApples() {
Registry.register(Registry.ITEM, new Identifier("vplus", "iron_apple"), IRONAPPLE);
Registry.register(Registry.ITEM, new Identifier("vplus", "enchanted_iron_apple"), ENCHANTEDIRONAPPLE);
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_apple"), COPPERAPPLE);
Registry.register(Registry.ITEM, new Identifier("vplus", "enchanted_copper_apple"), ENCHANTEDCOPPERAPPLE);
Registry.register(Registry.ITEM, new Identifier("vplus", "diamond_apple"), DIAMONDAPPLE);
Registry.register(Registry.ITEM, new Identifier("vplus", "enchanted_diamond_apple"), ENCHANTEDDIAMONDAPPLE);
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_apple"), EMERALDAPPLE);

View File

@@ -0,0 +1,12 @@
package tech.nevets.vplus.init;
import net.fabricmc.api.ClientModInitializer;
import tech.nevets.vplus.misc.VPZoom;
public class ClientInit implements ClientModInitializer {
@Override
public void onInitializeClient() {
VPZoom.vpZoom();
}
}

View File

@@ -27,5 +27,9 @@ public class VPItemGroups {
//Food Tab
public static final ItemGroup FOOD = FabricItemGroupBuilder.build(
new Identifier("vplus", "food"),
() -> new ItemStack((Items.ENCHANTED_GOLDEN_APPLE)));
() -> new ItemStack(Items.ENCHANTED_GOLDEN_APPLE));
//Vertical Slabs Tab
public static final ItemGroup VERTICAL_SLABS = FabricItemGroupBuilder.build(
new Identifier("vplus", "vert_slabs"),
() -> new ItemStack(Items.BRICK_SLAB));
}

View File

@@ -1,37 +1,48 @@
package tech.nevets.vplus.misc;
import net.minecraft.world.gen.decorator.Decorator;
import net.minecraft.world.gen.feature.ConfiguredFeature;
import net.minecraft.world.gen.feature.Feature;
import net.minecraft.world.gen.feature.OreFeatureConfig;
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.BuiltinRegistries;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.gen.GenerationStep;
import net.minecraft.world.gen.YOffset;
import net.minecraft.world.gen.decorator.*;
import net.minecraft.world.gen.feature.*;
import tech.nevets.vplus.blocks.VPBlocks;
public class VPOreGen {
/*
private static ConfiguredFeature<?, ?> ORE_PLATINUM_OVERWORLD = Feature.ORE
private static ConfiguredFeature<?, ?> ORE_PLATINUM_OVERWORLD_CONFIGURED = Feature.ORE
.configure(new OreFeatureConfig(
OreFeatureConfig.Rules.BASE_STONE_OVERWORLD,
OreConfiguredFeatures.BASE_STONE_OVERWORLD,
VPBlocks.PLATINUMORE.getDefaultState(),
3)) // vein size
.decorate(Decorator.RANGE.configure(new RangeDecoratorConfig(
0, // bottom offset
0, // min y level
15))) // max y level
.spreadHorizontally()
.repeat(2); // number of veins per chunk
3)); // vein size
public static PlacedFeature ORE_PLATINUM_OVERWORLD_PLACED = ORE_PLATINUM_OVERWORLD_CONFIGURED.withPlacement(
CountPlacementModifier.of(2), // number of veins per chunk
SquarePlacementModifier.of(),
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(15))
);
private static ConfiguredFeature<?, ?> ORE_RUBY_OVERWORLD = Feature.ORE
private static ConfiguredFeature<?, ?> ORE_RUBY_OVERWORLD_CONFIGURED = Feature.ORE
.configure(new OreFeatureConfig(
OreFeatureConfig.Rules.BASE_STONE_OVERWORLD,
VPBlocks.RUBYORE.getDefaultState(),
1)) // vein size
.decorate(Decorator.RANGE.configure(new RangeDecoratorConfig(
0, // bottom offset
0, // min y level
256))) // max y level
.spreadHorizontally()
.repeat(8); // number of veins per chunk
*/
OreConfiguredFeatures.BASE_STONE_OVERWORLD,
VPBlocks.PLATINUMORE.getDefaultState(),
1)); // vein size
public static PlacedFeature ORE_RUBY_OVERWORLD_PLACED = ORE_PLATINUM_OVERWORLD_CONFIGURED.withPlacement(
CountPlacementModifier.of(8), // number of veins per chunk
SquarePlacementModifier.of(),
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(15))
);
public static void vpOres() {
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE, new Identifier("vplus", "platinum_ore"), ORE_PLATINUM_OVERWORLD_CONFIGURED);
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("vplus", "platinum_ore"), ORE_PLATINUM_OVERWORLD_PLACED);
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, RegistryKey.of(Registry.PLACED_FEATURE_KEY, new Identifier("vplus", "platinum_ore")));
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE, new Identifier("vplus", "ruby_ore"), ORE_RUBY_OVERWORLD_CONFIGURED);
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("vplus", "ruby_ore"), ORE_RUBY_OVERWORLD_PLACED);
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES, RegistryKey.of(Registry.PLACED_FEATURE_KEY, new Identifier("vplus", "ruby_ore")));
}
}

View File

@@ -9,6 +9,9 @@ import net.minecraft.util.Lazy;
import tech.nevets.vplus.items.VPItems;
public enum ToolMaterials implements ToolMaterial {
COPPER (2, 200, 5.0F, 3.0F, 20, () -> {
return Ingredient.ofItems(new ItemConvertible[]{Items.COPPER_INGOT});
}),
EMERALD(3, 750, 7.0F, 4.0F, 30, () -> {
return Ingredient.ofItems(new ItemConvertible[]{Items.EMERALD});
}),

View File

@@ -14,30 +14,35 @@ public class VPTools {
}
public static void initializeAxes() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_axe"), new AxeBase(ToolMaterials.COPPER));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_axe"), new AxeBase(ToolMaterials.EMERALD));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_axe"), new AxeBase(ToolMaterials.PLATINUM));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_axe"), new AxeBase(ToolMaterials.RUBY));
}
public static void initializeHoes() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_hoe"), new HoeBase(ToolMaterials.COPPER));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_hoe"), new HoeBase(ToolMaterials.EMERALD));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_hoe"), new HoeBase(ToolMaterials.PLATINUM));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_hoe"), new HoeBase(ToolMaterials.RUBY));
}
public static void initializePickaxes() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_pickaxe"), new PickaxeBase(ToolMaterials.COPPER));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_pickaxe"), new PickaxeBase(ToolMaterials.EMERALD));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_pickaxe"), new PickaxeBase(ToolMaterials.PLATINUM));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_pickaxe"), new PickaxeBase(ToolMaterials.RUBY));
}
public static void initializeShovels() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_shovel"), new ShovelBase(ToolMaterials.COPPER));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_shovel"), new ShovelBase(ToolMaterials.EMERALD));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_shovel"), new ShovelBase(ToolMaterials.PLATINUM));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_shovel"), new ShovelBase(ToolMaterials.RUBY));
}
public static void initializeSwords() {
Registry.register(Registry.ITEM, new Identifier("vplus", "copper_sword"), new SwordBase(ToolMaterials.COPPER));
Registry.register(Registry.ITEM, new Identifier("vplus", "emerald_sword"), new SwordBase(ToolMaterials.EMERALD));
Registry.register(Registry.ITEM, new Identifier("vplus", "platinum_sword"), new SwordBase(ToolMaterials.PLATINUM));
Registry.register(Registry.ITEM, new Identifier("vplus", "ruby_sword"), new SwordBase(ToolMaterials.RUBY));

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/acacia_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/acacia_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/acacia_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/acacia_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/andesite_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/andesite_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/andesite_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/andesite_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/birch_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/birch_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/birch_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/birch_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/blackstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/blackstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/blackstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/blackstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/cobblestone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/cobblestone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/cobblestone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/cobblestone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/crimson_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/crimson_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/crimson_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/crimson_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/cut_red_sandstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/cut_red_sandstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/cut_red_sandstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/cut_red_sandstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/cut_sandstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/cut_sandstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/cut_sandstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/cut_sandstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/dark_oak_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/dark_oak_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/dark_oak_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/dark_oak_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/dark_prismarine_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/dark_prismarine_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/dark_prismarine_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/dark_prismarine_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/diorite_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/diorite_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/diorite_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/diorite_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/end_stone_brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/end_stone_brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/end_stone_brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/end_stone_brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/granite_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/granite_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/granite_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/granite_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/jungle_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/jungle_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/jungle_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/jungle_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/mossy_cobblestone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/mossy_cobblestone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/mossy_cobblestone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/mossy_cobblestone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/mossy_stone_brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/mossy_stone_brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/mossy_stone_brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/mossy_stone_brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/nether_brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/nether_brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/nether_brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/nether_brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/oak_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/oak_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/oak_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/oak_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/polished_andesite_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/polished_andesite_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/polished_andesite_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/polished_andesite_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/polished_blackstone_brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/polished_blackstone_brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/polished_blackstone_brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/polished_blackstone_brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/polished_blackstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/polished_blackstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/polished_blackstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/polished_blackstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/polished_diorite_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/polished_diorite_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/polished_diorite_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/polished_diorite_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/polished_granite_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/polished_granite_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/polished_granite_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/polished_granite_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/prismarine_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/prismarine_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/prismarine_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/prismarine_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/prismarine_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/prismarine_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/prismarine_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/prismarine_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/purpur_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/purpur_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/purpur_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/purpur_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/quartz_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/quartz_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/quartz_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/quartz_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/red_nether_brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/red_nether_brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/red_nether_brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/red_nether_brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/red_sandstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/red_sandstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/red_sandstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/red_sandstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/sandstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/sandstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/sandstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/sandstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/smooth_quartz_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/smooth_quartz_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/smooth_quartz_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/smooth_quartz_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/smooth_red_sandstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/smooth_red_sandstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/smooth_red_sandstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/smooth_red_sandstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/smooth_sandstone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/smooth_sandstone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/smooth_sandstone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/smooth_sandstone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/smooth_stone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/smooth_stone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/smooth_stone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/smooth_stone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/spruce_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/spruce_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/spruce_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/spruce_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/stone_brick_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/stone_brick_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/stone_brick_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/stone_brick_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/stone_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/stone_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/stone_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/stone_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -0,0 +1,8 @@
{
"variants": {
"facing=north": { "model": "block/warped_slab", "x": 90, "uvlock": true },
"facing=east": { "model": "block/warped_slab", "x": 90, "y": 90, "uvlock": true },
"facing=south": { "model": "block/warped_slab", "x": 90, "y": 180, "uvlock": true },
"facing=west": { "model": "block/warped_slab", "x": 90, "y": 270, "uvlock": true }
}
}

View File

@@ -6,6 +6,7 @@
"itemGroup.vplus.combat": "Combat",
"itemGroup.vplus.tools": "Tools",
"itemGroup.vplus.food": "Food",
"itemGroup.vplus.vert_slabs": "Vertical Slabs",
"block.vplus.lava_sponge": "Lava Sponge",
"block.vplus.saturated_lava_sponge": "Saturated Lava Sponge",
@@ -18,10 +19,15 @@
"item.vplus.platinum_nugget": "Platinum Nugget",
"item.vplus.ruby": "Ruby",
"item.vplus.copper_sword": "Copper Sword",
"item.vplus.emerald_sword": "Emerald Sword",
"item.vplus.platinum_sword": "Platinum Sword",
"item.vplus.ruby_sword": "Ruby Sword",
"item.vplus.copper_helmet": "Copper Helmet",
"item.vplus.copper_chestplate": "Copper Chestplate",
"item.vplus.copper_leggings": "Copper Leggings",
"item.vplus.copper_boots": "Copper Boots",
"item.vplus.emerald_helmet": "Emerald Helmet",
"item.vplus.emerald_chestplate": "Emerald Chestplate",
"item.vplus.emerald_leggings": "Emerald Leggings",
@@ -35,6 +41,10 @@
"item.vplus.ruby_leggings": "Ruby Leggings",
"item.vplus.ruby_boots": "Ruby Boots",
"item.vplus.copper_pickaxe": "Copper Pickaxe",
"item.vplus.copper_axe": "Copper Axe",
"item.vplus.copper_shovel": "Copper Shovel",
"item.vplus.copper_hoe": "Copper Hoe",
"item.vplus.emerald_pickaxe": "Emerald Pickaxe",
"item.vplus.emerald_axe": "Emerald Axe",
"item.vplus.emerald_shovel": "Emerald Shovel",
@@ -50,14 +60,56 @@
"item.vplus.iron_apple": "Iron Apple",
"item.vplus.enchanted_iron_apple": "Enchanted Iron Apple",
"item.vplus.copper_apple": "Copper Apple",
"item.vplus.enchanted_copper_apple": "Enchanted Copper Apple",
"item.vplus.diamond_apple": "Diamond Apple",
"item.vplus.enchanted_diamond_apple": "Enchanted Diamond Apple",
"item.vplus.emerald_apple": "Emerald Apple",
"item.vplus.enchanted_emerald_apple": "Enchanted Emerald Apple",
"item.vplus.netherite_apple": "Netherite Apple",
"item.vplus.enchanted_Netherite_apple": "Enchanted Netherite Apple",
"item.vplus.enchanted_netherite_apple": "Enchanted Netherite Apple",
"item.vplus.platinum_apple": "Platinum Apple",
"item.vplus.enchanted_platinum_apple": "Enchanted Platinum Apple",
"item.vplus.ruby_apple": "Ruby Apple",
"item.vplus.enchanted_ruby_apple": "Enchanted Ruby Apple"
"item.vplus.enchanted_ruby_apple": "Enchanted Ruby Apple",
"block.vplus.vertical_oak_slab":"Vertical Oak Slab",
"block.vplus.vertical_spruce_slab":"Vertical Spruce Slab",
"block.vplus.vertical_birch_slab":"Vertical Birch Slab",
"block.vplus.vertical_jungle_slab":"Vertical Jungle Slab",
"block.vplus.vertical_acacia_slab":"Vertical Acacia Slab",
"block.vplus.vertical_dark_oak_slab":"Vertical Dark Oak Slab",
"block.vplus.vertical_crimson_slab":"Vertical Crimson Slab",
"block.vplus.vertical_warped_slab":"Vertical Warped Slab",
"block.vplus.vertical_stone_slab":"Vertical Stone Slab",
"block.vplus.vertical_smooth_stone_slab":"Vertical Smooth Stone Slab",
"block.vplus.vertical_sandstone_slab":"Vertical Sandstone Slab",
"block.vplus.vertical_cut_sandstone_slab":"Vertical Cut Sandstone Slab",
"block.vplus.vertical_cobblestone_slab":"Vertical Cobblestone Slab",
"block.vplus.vertical_brick_slab":"Vertical Brick Slab",
"block.vplus.vertical_stone_brick_slab":"Vertical Stone Brick Slab",
"block.vplus.vertical_nether_brick_slab":"Vertical Nether Brick Slab",
"block.vplus.vertical_quartz_slab":"Vertical Quartz Slab",
"block.vplus.vertical_red_sandstone_slab":"Vertical Red Sandstone Slab",
"block.vplus.vertical_cut_red_sandstone_slab":"Vertical Cut Red Sandstone Slab",
"block.vplus.vertical_purpur_slab":"Vertical Purpur Slab",
"block.vplus.vertical_prismarine_slab":"Vertical Prismarine Slab",
"block.vplus.vertical_prismarine_brick_slab":"Vertical Prismarine Brick Slab",
"block.vplus.vertical_dark_prismarine_slab":"Vertical Dark Prismarine Slab",
"block.vplus.vertical_polished_granite_slab":"Vertical Polished Granite Slab",
"block.vplus.vertical_smooth_red_sandstone_slab":"Vertical Smooth Red Sandstone Slab",
"block.vplus.vertical_mossy_stone_brick_slab":"Vertical Mossy Stone Brick Slab",
"block.vplus.vertical_polished_diorite_slab":"Vertical Polished Diorite Slab",
"block.vplus.vertical_mossy_cobblestone_slab":"Vertical Mossy Cobblestone Slab",
"block.vplus.vertical_end_stone_brick_slab":"Vertical End Stone Brick Slab",
"block.vplus.vertical_smooth_sandstone_slab":"Vertical Smooth Sandstone Slab",
"block.vplus.vertical_smooth_quartz_slab":"Vertical Smooth Quartz Slab",
"block.vplus.vertical_granite_slab":"Vertical Granite Slab",
"block.vplus.vertical_andesite_slab":"Vertical Andesite Slab",
"block.vplus.vertical_red_nether_brick_slab":"Vertical Red Nether Brick Slab",
"block.vplus.vertical_polished_andesite_slab":"Vertical Polished Andesite Slab",
"block.vplus.vertical_diorite_slab":"Vertical Diorite Slab",
"block.vplus.vertical_blackstone_slab":"Vertical Blackstone Slab",
"block.vplus.vertical_polished_blackstone_slab":"Vertical Polished Blackstone Slab",
"block.vplus.vertical_polished_blackstone_brick_slab":"Vertical Polished Blackstone Brick Slab"
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/acacia_planks",
"top": "minecraft:block/acacia_planks",
"side": "minecraft:block/acacia_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/andesite",
"top": "minecraft:block/andesite",
"side": "minecraft:block/andesite"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/birch_planks",
"top": "minecraft:block/birch_planks",
"side": "minecraft:block/birch_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/blackstone_top",
"top": "minecraft:block/blackstone_top",
"side": "minecraft:block/blackstone"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/bricks",
"top": "minecraft:block/bricks",
"side": "minecraft:block/bricks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/cobblestone",
"top": "minecraft:block/cobblestone",
"side": "minecraft:block/cobblestone"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/crimson_planks",
"top": "minecraft:block/crimson_planks",
"side": "minecraft:block/crimson_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/red_sandstone_top",
"top": "minecraft:block/red_sandstone_top",
"side": "minecraft:block/cut_red_sandstone"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/sandstone_top",
"top": "minecraft:block/sandstone_top",
"side": "minecraft:block/cut_sandstone"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/dark_oak_planks",
"top": "minecraft:block/dark_oak_planks",
"side": "minecraft:block/dark_oak_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/dark_prismarine",
"top": "minecraft:block/dark_prismarine",
"side": "minecraft:block/dark_prismarine"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/diorite",
"top": "minecraft:block/diorite",
"side": "minecraft:block/diorite"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/end_stone_bricks",
"top": "minecraft:block/end_stone_bricks",
"side": "minecraft:block/end_stone_bricks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/granite",
"top": "minecraft:block/granite",
"side": "minecraft:block/granite"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/jungle_planks",
"top": "minecraft:block/jungle_planks",
"side": "minecraft:block/jungle_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/mossy_cobblestone",
"top": "minecraft:block/mossy_cobblestone",
"side": "minecraft:block/mossy_cobblestone"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/mossy_stone_bricks",
"top": "minecraft:block/mossy_stone_bricks",
"side": "minecraft:block/mossy_stone_bricks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/nether_bricks",
"top": "minecraft:block/nether_bricks",
"side": "minecraft:block/nether_bricks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/oak_planks",
"top": "minecraft:block/oak_planks",
"side": "minecraft:block/oak_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/oak_planks",
"top": "minecraft:block/oak_planks",
"side": "minecraft:block/oak_planks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/polished_andesite",
"top": "minecraft:block/polished_andesite",
"side": "minecraft:block/polished_andesite"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/polished_blackstone_bricks",
"top": "minecraft:block/polished_blackstone_bricks",
"side": "minecraft:block/polished_blackstone_bricks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/polished_blackstone",
"top": "minecraft:block/polished_blackstone",
"side": "minecraft:block/polished_blackstone"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/polished_diorite",
"top": "minecraft:block/polished_diorite",
"side": "minecraft:block/polished_diorite"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/polished_granite",
"top": "minecraft:block/polished_granite",
"side": "minecraft:block/polished_granite"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/prismarine_bricks",
"top": "minecraft:block/prismarine_bricks",
"side": "minecraft:block/prismarine_bricks"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/prismarine",
"top": "minecraft:block/prismarine",
"side": "minecraft:block/prismarine"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/purpur_block",
"top": "minecraft:block/purpur_block",
"side": "minecraft:block/purpur_block"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/quartz_block_top",
"top": "minecraft:block/quartz_block_top",
"side": "minecraft:block/quartz_block_side"
}
}

View File

@@ -0,0 +1,8 @@
{
"parent": "vplus:block/vertical_slab",
"textures": {
"bottom": "minecraft:block/red_nether_bricks",
"top": "minecraft:block/red_nether_bricks",
"side": "minecraft:block/red_nether_bricks"
}
}

Some files were not shown because too many files have changed in this diff Show More