Compare commits
22 Commits
1.18.1-1.1
...
1.19.2/uns
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16bcde165f | ||
|
|
2255f2c2be | ||
|
|
cc4b9f2a86 | ||
|
|
b4a025bae1 | ||
|
|
a66c27ddce | ||
|
|
48a0915730 | ||
|
|
593208c052 | ||
|
|
5eb78fbbd2 | ||
|
|
15808a2598 | ||
|
|
ed7a3dd418 | ||
|
|
cf6114eda3 | ||
|
|
cb1fedc2fc | ||
|
|
6a220b43dc | ||
|
|
3ccaaf149a | ||
|
|
5e801ec1d5 | ||
|
|
6d37a1e3ff | ||
|
|
9b7b950f9a | ||
|
|
555113e04e | ||
|
|
714a636a83 | ||
|
|
b00f4a96fa | ||
|
|
95cf937175 | ||
|
|
ceb4174a80 |
8330
AAAAAAAAAAAAAAAa
8330
AAAAAAAAAAAAAAAa
File diff suppressed because it is too large
Load Diff
16
CHANGELOG
Normal file
16
CHANGELOG
Normal file
@@ -0,0 +1,16 @@
|
||||
# Changes:
|
||||
## 1.19-1.0.0-stable
|
||||
- updating is despicable
|
||||
|
||||
## 1.19-1.0.1-unstable
|
||||
- added not tools
|
||||
- added not armour
|
||||
- added stupid/dumb damage source
|
||||
- added stupid status effect
|
||||
- added stupid tools
|
||||
|
||||
## 1.19-1.0.2-unstable
|
||||
- added stupidium armour
|
||||
- added textures for stupidium stuff
|
||||
- fixed weem haybale
|
||||
- fixed fucked audio blocks
|
||||
@@ -1,4 +1,4 @@
|
||||
GamerMod, for gamers, by gæmer
|
||||
GamerItems, for gamers, by gæmer
|
||||
Copyright (C) RyanTLG
|
||||
Copyright (C) ARCMods team and contributors
|
||||
|
||||
|
||||
4
LICENSE
4
LICENSE
@@ -1,8 +1,8 @@
|
||||
==========================
|
||||
GamerMod License
|
||||
GamerItems License
|
||||
==========================
|
||||
|
||||
GamerMod as a whole in lisenced under:
|
||||
GamerItems as a whole in lisenced under:
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
17
README.md
17
README.md
@@ -1,20 +1,20 @@
|
||||
# GamerMod
|
||||
# GamerItems
|
||||
|
||||
<p align="center">
|
||||
<a title="Fabric API" href="https://minecraft.curseforge.com/projects/fabric-api" target="_blank" rel="noopener noreferrer"><img style="display: block; margin-left: auto; margin-right: auto;" src="https://i.imgur.com/Ol1Tcf8.png" alt="" width="150" height="50" /></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="http://forthebadge.com/"><img src="https://github.com/RyanTLG/GamerMod/blob/1-18-1/unstable/badges/epic-gaming.svg" alt="epicgaming"/></a>
|
||||
<a href="http://forthebadge.com/"><img src="https://github.com/RyanTLG/GamerMod/blob/1-18-1/unstable/badges/i-have-severe-depression.svg" alt="epicgaming"/></a>
|
||||
<a href="http://forthebadge.com/"><img src="https://github.com/RyanTLG/GamerItems/blob/1-18-1/unstable/badges/epic-gaming.svg" alt="epicgaming"/></a>
|
||||
<a href="http://forthebadge.com/"><img src="https://github.com/RyanTLG/GamerItems/blob/1-18-1/unstable/badges/i-have-severe-depression.svg" alt="epicgaming"/></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="http://forthebadge.com/"><img src="https://github.com/RyanTLG/GamerMod/blob/1-18-1/unstable/badges/i-want-die.svg" alt="epicgaming"/></a>
|
||||
<a href="http://forthebadge.com/"><img src="https://github.com/RyanTLG/GamerItems/blob/1-18-1/unstable/badges/i-want-die.svg" alt="epicgaming"/></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a href="http://forthebadge.com/"><img src="https://img.shields.io/badge/modloader-Fabric-1976d2?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAFHGlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyIgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RFdnQ9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZUV2ZW50IyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgMjAxOCAoV2luZG93cykiIHhtcDpDcmVhdGVEYXRlPSIyMDE4LTEyLTE2VDE2OjU0OjE3LTA4OjAwIiB4bXA6TW9kaWZ5RGF0ZT0iMjAxOS0wNy0yOFQyMToxNzo0OC0wNzowMCIgeG1wOk1ldGFkYXRhRGF0ZT0iMjAxOS0wNy0yOFQyMToxNzo0OC0wNzowMCIgZGM6Zm9ybWF0PSJpbWFnZS9wbmciIHBob3Rvc2hvcDpDb2xvck1vZGU9IjMiIHBob3Rvc2hvcDpJQ0NQcm9maWxlPSJzUkdCIElFQzYxOTY2LTIuMSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDowZWRiMWMyYy1mZjhjLWU0NDEtOTMxZi00OTVkNGYxNGM3NjAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MGVkYjFjMmMtZmY4Yy1lNDQxLTkzMWYtNDk1ZDRmMTRjNzYwIiB4bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ9InhtcC5kaWQ6MGVkYjFjMmMtZmY4Yy1lNDQxLTkzMWYtNDk1ZDRmMTRjNzYwIj4gPHhtcE1NOkhpc3Rvcnk+IDxyZGY6U2VxPiA8cmRmOmxpIHN0RXZ0OmFjdGlvbj0iY3JlYXRlZCIgc3RFdnQ6aW5zdGFuY2VJRD0ieG1wLmlpZDowZWRiMWMyYy1mZjhjLWU0NDEtOTMxZi00OTVkNGYxNGM3NjAiIHN0RXZ0OndoZW49IjIwMTgtMTItMTZUMTY6NTQ6MTctMDg6MDAiIHN0RXZ0OnNvZnR3YXJlQWdlbnQ9IkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE4IChXaW5kb3dzKSIvPiA8L3JkZjpTZXE+IDwveG1wTU06SGlzdG9yeT4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz4/HiGMAAAAtUlEQVRYw+XXrQqAMBQF4D2P2eBL+QIG8RnEJFaNBjEum+0+zMQLtwwv+wV3ZzhhMDgfJ0wUSinxZUQWgKos1JP/AbD4OneIDyQPwCFniA+EJ4CaXm4TxAXCC0BNHgLhAdAnx9hC8PwGSRtAFVMQjF7cNTWED8B1cgwW20yfJgAvrssAsZ1cB3g/xckAxr6FmCDU5N6f488BrpCQ4rQBJkiMYh4ACmLzwOQF0CExinkCsvw7vgGikl+OotaKRwAAAABJRU5ErkJggg==" alt="epicgaming"/></a>
|
||||
</p>
|
||||
|
||||
GamerMod is a simple mod that adds a few ores and a few other items to minecraft via the Fabric modloader and Fabric API
|
||||
GamerItems is a simple mod that adds a few ores and a few other items to minecraft via the Fabric modloader and Fabric API
|
||||
|
||||
### Modpack usage
|
||||
|
||||
@@ -22,8 +22,11 @@ You want to use it in a modpack? Sure! Just remember to credit me or the ARCMods
|
||||
|
||||
### Issues
|
||||
|
||||
If you find an issue or bug in the mod or just have a general suggestion you can write it [here](https://github.com/RyanTLG/GamerMod/issues)
|
||||
If you find an issue or bug in the mod or just have a general suggestion you can write it [here](https://github.com/RyanTLG/GamerItems/issues)
|
||||
|
||||
### AAAAAAAAAAAAAAAa
|
||||
|
||||
[aaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA](https://github.com/RyanTLG/GamerMod/blob/1-18-1/unstable/AAAAAAAAAAAAAAAa)
|
||||
[aaaaAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA](https://github.com/RyanTLG/GamerItems/blob/1-18-1/unstable/AAAAAAAAAAAAAAAa)
|
||||
|
||||
## NOTICE
|
||||
due to my lack of an attention span, i will no longer be updating or maintaining 1.18 versions, this is a final decision. I will also not support any versions up from 1.19 (pre chat reporting and account banning). Anyone willing to update 1.18 branches or add branches for older/newer minecraft versions are welcome to ask me [here](https://discord.gg/nsYbUnjBFJ)
|
||||
BIN
badges/poweredbyelec.png
Normal file
BIN
badges/poweredbyelec.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'fabric-loom' version '0.10-SNAPSHOT'
|
||||
id 'fabric-loom' version '0.12-SNAPSHOT'
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
@@ -16,7 +16,6 @@ repositories {
|
||||
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
|
||||
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
|
||||
// for more information about repositories.
|
||||
allprojects { repositories { maven { url 'https://jitpack.io' } } }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
@@ -27,6 +26,8 @@ dependencies {
|
||||
|
||||
// Fabric API. This is technically optional, but you probably want it anyway.
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||
modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
|
||||
|
||||
}
|
||||
|
||||
processResources {
|
||||
@@ -71,7 +72,7 @@ publishing {
|
||||
repositories {
|
||||
maven {
|
||||
name = "GitHubPackages"
|
||||
url = "https://maven.pkg.github.com/RyanTLG/gamermod"
|
||||
url = "https://maven.pkg.github.com/BigGaemer/gameritems"
|
||||
credentials {
|
||||
username = System.getenv("UNAME")
|
||||
password = System.getenv("TOKEN")
|
||||
|
||||
@@ -3,14 +3,14 @@ org.gradle.jvmargs=-Xmx6G
|
||||
|
||||
# Fabric Properties
|
||||
# check these on https://fabricmc.net/develop
|
||||
minecraft_version=1.18.1
|
||||
yarn_mappings=1.18.1+build.1
|
||||
loader_version=0.12.12
|
||||
minecraft_version=1.19.2
|
||||
yarn_mappings=1.19.2+build.28
|
||||
loader_version=0.14.12
|
||||
|
||||
# Mod Properties
|
||||
mod_version = 1.18.1-1.0.0-stable
|
||||
maven_group = ryantlg.GamerMod.mod
|
||||
archives_base_name = GamerMod
|
||||
mod_version = 1.19.2-1.1.0-stable
|
||||
maven_group = gamer.GamerItems.mod
|
||||
archives_base_name = GamerItems
|
||||
|
||||
# Dependencies
|
||||
fabric_version=0.46.0+1.18
|
||||
fabric_version=0.72.0+1.19.2
|
||||
|
||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
package net.arcmods.ryantlg;
|
||||
|
||||
import net.fabricmc.fabric.api.tag.TagFactory;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.tag.Tag;
|
||||
import net.minecraft.tag.TagKey;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class BlockTags {
|
||||
public static final Tag<Block> ORES = TagFactory.BLOCK.create(new Identifier("gamermod", "ores"));
|
||||
public static final TagKey<Block> ORES = TagKey.of(Registry.BLOCK_KEY, new Identifier("gameritems", "ores"));
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
package net.arcmods.ryantlg.armourMaterials;
|
||||
|
||||
import net.arcmods.ryantlg.items.metalItems.oriumMetals;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorMaterial;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
import net.minecraft.sound.SoundEvent;
|
||||
import net.minecraft.sound.SoundEvents;
|
||||
|
||||
public class stupidiumArmorMaterial implements ArmorMaterial {
|
||||
// {boots, leggings, chestplate, helmet}
|
||||
private static final int[] BASE_DURABILITY = new int[] {43, 60, 75, 49};
|
||||
private static final int[] PROTECTION_VALUES = new int[] {4, 7, 9, 4};
|
||||
|
||||
// In which A is helmet, B chestplate, C leggings and D boots.
|
||||
// For reference, Leather uses {1, 2, 3, 1}, and Diamond/Netherite {3, 6, 8, 3}
|
||||
// {A, C, B, D}
|
||||
|
||||
@Override
|
||||
public int getDurability(EquipmentSlot slot) {
|
||||
return BASE_DURABILITY[slot.getEntitySlotId()] * 10;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getProtectionAmount(EquipmentSlot slot) {
|
||||
return PROTECTION_VALUES[slot.getEntitySlotId()];
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getEnchantability() {
|
||||
return 22;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SoundEvent getEquipSound() {
|
||||
return SoundEvents.ITEM_ARMOR_EQUIP_DIAMOND;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Ingredient getRepairIngredient() {
|
||||
return Ingredient.ofItems(oriumMetals.ORIUM);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
// Must be all lowercase
|
||||
return "stupidium";
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getToughness() {
|
||||
return 2.0F;
|
||||
}
|
||||
|
||||
@Override
|
||||
public float getKnockbackResistance() {
|
||||
return 0.0F;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -17,18 +17,18 @@ public class Damon extends Block{
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
|
||||
if (!world.isClient) {
|
||||
world.playSound(
|
||||
null, // Player - if non-null, will play sound for every nearby player *except* the specified player
|
||||
blockPos, // The position of where the sound will come from
|
||||
sounds.MATT_SOUND_EVENT, // The sound that will play
|
||||
SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
|
||||
1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
|
||||
1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
|
||||
);
|
||||
}
|
||||
return ActionResult.FAIL;
|
||||
}
|
||||
// @Override
|
||||
// public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
|
||||
// if (!world.isClient) {
|
||||
// world.playSound(
|
||||
// null, // Player - if non-null, will play sound for every nearby player *except* the specified player
|
||||
// blockPos, // The position of where the sound will come from
|
||||
// sounds.MATT_SOUND_EVENT, // The sound that will play
|
||||
// SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
|
||||
// 1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
|
||||
// 1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
|
||||
// );
|
||||
// }
|
||||
// return ActionResult.FAIL;
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -40,21 +40,21 @@ public class WeemCropBlock extends CropBlock {
|
||||
return AGE_TO_SHAPE[(Integer)state.get(this.getAgeProperty())];
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
|
||||
if (!world.isClient) {
|
||||
world.playSound(
|
||||
null, // Player - if non-null, will play sound for every nearby player *except* the specified player
|
||||
blockPos, // The position of where the sound will come from
|
||||
sounds.SNIFF_SOUND_EVENT, // The sound that will play
|
||||
SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
|
||||
1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
|
||||
1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
|
||||
);
|
||||
}
|
||||
return ActionResult.FAIL;
|
||||
// @Override
|
||||
// public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
|
||||
// if (!world.isClient) {
|
||||
// world.playSound(
|
||||
// null, // Player - if non-null, will play sound for every nearby player *except* the specified player
|
||||
// blockPos, // The position of where the sound will come from
|
||||
// sounds.SNIFF_SOUND_EVENT, // The sound that will play
|
||||
// SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
|
||||
// 1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
|
||||
// 1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
|
||||
// );
|
||||
// }
|
||||
// return ActionResult.FAIL;
|
||||
|
||||
}
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
@@ -17,18 +17,18 @@ public class elon extends Block{
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
|
||||
if (!world.isClient) {
|
||||
world.playSound(
|
||||
null, // Player - if non-null, will play sound for every nearby player *except* the specified player
|
||||
blockPos, // The position of where the sound will come from
|
||||
sounds.ELON_SOUND_EVENT, // The sound that will play
|
||||
SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
|
||||
1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
|
||||
1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
|
||||
);
|
||||
}
|
||||
return ActionResult.FAIL;
|
||||
}
|
||||
// @Override
|
||||
// public ActionResult onUse(BlockState blockState, World world, BlockPos blockPos, PlayerEntity placedBy, Hand hand, BlockHitResult blockHitResult) {
|
||||
// if (!world.isClient) {
|
||||
// world.playSound(
|
||||
// null, // Player - if non-null, will play sound for every nearby player *except* the specified player
|
||||
// blockPos, // The position of where the sound will come from
|
||||
// sounds.ELON_SOUND_EVENT, // The sound that will play
|
||||
// SoundCategory.BLOCKS, // This determines which of the volume sliders affect this sound
|
||||
// 1f, //Volume multiplier, 1 is normal, 0.5 is half volume, etc
|
||||
// 1f // Pitch multiplier, 1 is normal, 0.5 is half pitch, etc
|
||||
// );
|
||||
// }
|
||||
// return ActionResult.FAIL;
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.BlockView;
|
||||
|
||||
@@ -17,8 +17,8 @@ public class jeremiumBlock extends Block{
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, BlockView world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
tooltip.add( new TranslatableText("block.gamermod.jeremium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add( new TranslatableText("all.gamermod.jeremium.tooltiptwo").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("block.gameritems.jeremium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("all.gameritems.jeremium.tooltiptwo").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ import net.minecraft.block.Block;
|
||||
import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.BlockView;
|
||||
|
||||
@@ -17,6 +17,6 @@ public class oriumBlock extends Block{
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, BlockView world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
tooltip.add( new TranslatableText("block.gamermod.orium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("block.gameritems.orium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
package net.arcmods.ryantlg.blocks;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blockClasses.WeemCropBlock;
|
||||
import net.minecraft.block.AbstractBlock;
|
||||
import net.minecraft.block.CropBlock;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class CropBlocks {
|
||||
public static final CropBlock WEEM_CROP_BLOCK = new WeemCropBlock(AbstractBlock.Settings.of(Material.PLANT).nonOpaque().noCollision().ticksRandomly().breakInstantly().sounds(BlockSoundGroup.CROP));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod","weem_crop_block"), WEEM_CROP_BLOCK);
|
||||
|
||||
gamermod.LOGGER.info("CropBlocks loaded");
|
||||
}
|
||||
}
|
||||
31
src/main/java/net/arcmods/ryantlg/blocks/cropBlocks/weemCrop.java
Executable file
31
src/main/java/net/arcmods/ryantlg/blocks/cropBlocks/weemCrop.java
Executable file
@@ -0,0 +1,31 @@
|
||||
package net.arcmods.ryantlg.blocks.cropBlocks;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blockClasses.WeemCropBlock;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.fabricmc.fabric.api.registry.FlammableBlockRegistry;
|
||||
import net.minecraft.block.AbstractBlock;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.CropBlock;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.block.PillarBlock;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class weemCrop {
|
||||
public static final CropBlock WEEM_CROP_BLOCK = new WeemCropBlock(AbstractBlock.Settings.of(Material.PLANT).nonOpaque().noCollision().ticksRandomly().breakInstantly().sounds(BlockSoundGroup.CROP));
|
||||
public static final Block WEEM_HAYBALE = new PillarBlock(FabricBlockSettings.of(Material.SOLID_ORGANIC).nonOpaque().strength(1, 1).sounds(BlockSoundGroup.GRASS));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems","weem_crop_block"), WEEM_CROP_BLOCK);
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "weem_haybale"), WEEM_HAYBALE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "weem_haybale"), new BlockItem(WEEM_HAYBALE, new FabricItemSettings().group(gameritems.CHING)));
|
||||
FlammableBlockRegistry.getDefaultInstance().add(WEEM_HAYBALE, 60, 20);
|
||||
|
||||
gameritems.LOGGER.info("CropBlocks loaded");
|
||||
}
|
||||
}
|
||||
@@ -1,33 +0,0 @@
|
||||
package net.arcmods.ryantlg.blocks;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blockClasses.jeremiumBlock;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class jeremiumBlocks {
|
||||
|
||||
public static final Block JEREMIUM_BLOCK = new jeremiumBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool().luminance(16));
|
||||
public static final Block JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().luminance(5));
|
||||
public static final Block DEEPSLATE_JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().luminance(5).sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "jeremium_ore"), JEREMIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_ore"), new BlockItem(JEREMIUM_ORE, new FabricItemSettings().group(gamermod.CHING).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "deepslate_jeremium_ore"), DEEPSLATE_JEREMIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deepslate_jeremium_ore"), new BlockItem(DEEPSLATE_JEREMIUM_ORE, new FabricItemSettings().group(gamermod.CHING).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "jeremium_block"), JEREMIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_block"), new BlockItem(JEREMIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING).fireproof().maxCount(56)));
|
||||
|
||||
gamermod.LOGGER.info("jeremiumBlocks loaded");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package net.arcmods.ryantlg.blocks.metalBlocks;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blockClasses.jeremiumBlock;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class jeremiumBlocks {
|
||||
|
||||
public static final Block JEREMIUM_BLOCK = new jeremiumBlock(FabricBlockSettings.of(Material.METAL).strength(5.5f, 4.8f).requiresTool().luminance(16));
|
||||
public static final Block JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(6.5f, 8.0f).requiresTool().luminance(5));
|
||||
public static final Block DEEPSLATE_JEREMIUM_ORE = new jeremiumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f, 4.2f).requiresTool().luminance(5).sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "jeremium_ore"), JEREMIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_ore"), new BlockItem(JEREMIUM_ORE, new FabricItemSettings().group(gameritems.CHING).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "deepslate_jeremium_ore"), DEEPSLATE_JEREMIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deepslate_jeremium_ore"), new BlockItem(DEEPSLATE_JEREMIUM_ORE, new FabricItemSettings().group(gameritems.CHING).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "jeremium_block"), JEREMIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_block"), new BlockItem(JEREMIUM_BLOCK, new FabricItemSettings().group(gameritems.CHING).fireproof().maxCount(56)));
|
||||
|
||||
gameritems.LOGGER.info("jeremiumBlocks loaded");
|
||||
}
|
||||
|
||||
}
|
||||
29
src/main/java/net/arcmods/ryantlg/blocks/metalBlocks/omniumBlocks.java
Executable file
29
src/main/java/net/arcmods/ryantlg/blocks/metalBlocks/omniumBlocks.java
Executable file
@@ -0,0 +1,29 @@
|
||||
package net.arcmods.ryantlg.blocks.metalBlocks;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class omniumBlocks {
|
||||
public static final Block OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(3.5f, 4.0f).requiresTool());
|
||||
public static final Block OMNIUM_BLOCK = new Block(FabricBlockSettings.of(Material.METAL).strength(5.5f, 7f).requiresTool());
|
||||
public static final Block DEEPSLATE_OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.5f, 3.5f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "omnium_ore"), OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_ore"), new BlockItem(OMNIUM_ORE, new FabricItemSettings().group(gameritems.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "deepslate_omnium_ore"), DEEPSLATE_OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deepslate_omnium_ore"), new BlockItem(DEEPSLATE_OMNIUM_ORE, new FabricItemSettings().group(gameritems.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "omnium_block"), OMNIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_block"), new BlockItem(OMNIUM_BLOCK, new FabricItemSettings().group(gameritems.CHING)));
|
||||
|
||||
gameritems.LOGGER.info("omniumBlocks loaded");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package net.arcmods.ryantlg.blocks.metalBlocks;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blockClasses.oriumBlock;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class oriumBlocks {
|
||||
public static final Block ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(3.2f, 3.0f).requiresTool());
|
||||
public static final Block ORIUM_BLOCK = new oriumBlock(FabricBlockSettings.of(Material.METAL).strength(5.0f, 4.0F).requiresTool());
|
||||
public static final Block DEEPSLATE_ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.3f, 3.5f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "orium_ore"), ORIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_ore"), new BlockItem(ORIUM_ORE, new FabricItemSettings().group(gameritems.CHING).rarity(Rarity.UNCOMMON)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "deepslate_orium_ore"), DEEPSLATE_ORIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deepslate_orium_ore"), new BlockItem(DEEPSLATE_ORIUM_ORE, new FabricItemSettings().group(gameritems.CHING).rarity(Rarity.UNCOMMON)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "orium_block"), ORIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_block"), new BlockItem(ORIUM_BLOCK, new FabricItemSettings().group(gameritems.CHING).rarity(Rarity.UNCOMMON)));
|
||||
|
||||
gameritems.LOGGER.info("oriumBlocks loaded");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package net.arcmods.ryantlg.blocks.metalBlocks;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class stupidiumBlocks {
|
||||
|
||||
public static final Block STUPIDIUM_BLOCK = new Block(FabricBlockSettings.of(Material.METAL).strength(6.9f, 8.3f).requiresTool());
|
||||
public static final Block STUPIDIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(6.5f, 6.0f).requiresTool());
|
||||
public static final Block DEEPSLATE_STUPIDIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(7.2f, 7.2f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "stupidium_ore"), STUPIDIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_ore"), new BlockItem(STUPIDIUM_ORE, new FabricItemSettings().group(gameritems.CHING).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "deepslate_stupidium_ore"), DEEPSLATE_STUPIDIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deepslate_stupidium_ore"), new BlockItem(DEEPSLATE_STUPIDIUM_ORE, new FabricItemSettings().group(gameritems.CHING).fireproof().maxCount(56)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "stupidium_block"), STUPIDIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_block"), new BlockItem(STUPIDIUM_BLOCK, new FabricItemSettings().group(gameritems.CHING).fireproof().maxCount(56)));
|
||||
|
||||
gameritems.LOGGER.info("stupidiumBlocks loaded");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
package net.arcmods.ryantlg.blocks;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class omniumBlocks {
|
||||
public static final Block OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
|
||||
public static final Block OMNIUM_BLOCK = new Block(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
|
||||
public static final Block DEEPSLATE_OMNIUM_ORE = new Block(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "omnium_ore"), OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_ore"), new BlockItem(OMNIUM_ORE, new FabricItemSettings().group(gamermod.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "deepslate_omnium_ore"), DEEPSLATE_OMNIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deepslate_omnium_ore"), new BlockItem(DEEPSLATE_OMNIUM_ORE, new FabricItemSettings().group(gamermod.CHING)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "omnium_block"), OMNIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_block"), new BlockItem(OMNIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING)));
|
||||
|
||||
gamermod.LOGGER.info("omniumBlocks loaded");
|
||||
}
|
||||
}
|
||||
@@ -1,32 +0,0 @@
|
||||
package net.arcmods.ryantlg.blocks;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blockClasses.oriumBlock;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.Material;
|
||||
import net.minecraft.item.BlockItem;
|
||||
import net.minecraft.sound.BlockSoundGroup;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class oriumBlocks {
|
||||
public static final Block ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool());
|
||||
public static final Block ORIUM_BLOCK = new oriumBlock(FabricBlockSettings.of(Material.METAL).strength(4.0f).requiresTool());
|
||||
public static final Block DEEPSLATE_ORIUM_ORE = new oriumBlock(FabricBlockSettings.of(Material.STONE).strength(4.0f).requiresTool().sounds(BlockSoundGroup.DEEPSLATE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "orium_ore"), ORIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_ore"), new BlockItem(ORIUM_ORE, new FabricItemSettings().group(gamermod.CHING).rarity(Rarity.UNCOMMON)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "deepslate_orium_ore"), DEEPSLATE_ORIUM_ORE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deepslate_orium_ore"), new BlockItem(DEEPSLATE_ORIUM_ORE, new FabricItemSettings().group(gamermod.CHING).rarity(Rarity.UNCOMMON)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "orium_block"), ORIUM_BLOCK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_block"), new BlockItem(ORIUM_BLOCK, new FabricItemSettings().group(gamermod.CHING).rarity(Rarity.UNCOMMON)));
|
||||
|
||||
gamermod.LOGGER.info("oriumBlocks loaded");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.blocks;
|
||||
package net.arcmods.ryantlg.blocks.otherBlocks;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blockClasses.Damon;
|
||||
import net.arcmods.ryantlg.blockClasses.elon;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
@@ -17,12 +17,12 @@ public class FunnyBlocks {
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "matt_damon"), MATT_DAMON);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "matt_damon"), new BlockItem(MATT_DAMON, new FabricItemSettings().group(gamermod.FNUTS)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "matt_damon"), MATT_DAMON);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "matt_damon"), new BlockItem(MATT_DAMON, new FabricItemSettings().group(gameritems.FNUTS)));
|
||||
|
||||
Registry.register(Registry.BLOCK, new Identifier("gamermod", "elon_musk"), ELON_MUSK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "elon_musk"), new BlockItem(ELON_MUSK, new FabricItemSettings().group(gamermod.FNUTS)));
|
||||
Registry.register(Registry.BLOCK, new Identifier("gameritems", "elon_musk"), ELON_MUSK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "elon_musk"), new BlockItem(ELON_MUSK, new FabricItemSettings().group(gameritems.FNUTS)));
|
||||
|
||||
gamermod.LOGGER.info("FunnyBlocks loaded");
|
||||
gameritems.LOGGER.info("FunnyBlocks loaded");
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,6 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.SwordItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -21,7 +20,7 @@ public class JeremiumSwordItem extends SwordItem {
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
tooltip.add( new TranslatableText("item.gamermod.jeremium_sword.tooltip").formatted(Formatting.DARK_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("item.gameritems.jeremium_sword.tooltip").formatted(Formatting.RED));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
10
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notAxeItem.java
Executable file
10
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notAxeItem.java
Executable file
@@ -0,0 +1,10 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.AxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notAxeItem extends AxeItem {
|
||||
public notAxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
}
|
||||
11
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notHoeItem.java
Executable file
11
src/main/java/net/arcmods/ryantlg/customToolItemClasses/not/notHoeItem.java
Executable file
@@ -0,0 +1,11 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.HoeItem;
|
||||
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notHoeItem extends HoeItem {
|
||||
public notHoeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.PickaxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notPickaxeItem extends PickaxeItem {
|
||||
public notPickaxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.ShovelItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notShovelItem extends ShovelItem{
|
||||
|
||||
public notShovelItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.not;
|
||||
|
||||
import net.minecraft.item.SwordItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class notSwordItem extends SwordItem{
|
||||
|
||||
public notSwordItem(ToolMaterial toolMaterial, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(toolMaterial, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -7,7 +7,6 @@ import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.SwordItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -17,6 +16,6 @@ public class OmniumSwordItem extends SwordItem {
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
tooltip.add( new TranslatableText("item.gamermod.omnium_sword.tooltip").formatted(Formatting.DARK_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("item.gameritems.omnium_sword.tooltip").formatted(Formatting.RED) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.AxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumAxeItem extends AxeItem {
|
||||
|
||||
public StupidiumAxeItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.BowItem;
|
||||
import net.arcmods.ryantlg.statusEffects.GamerEffects;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class StupidiumBowItem extends BowItem{
|
||||
|
||||
public StupidiumBowItem(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack stack, LivingEntity attackee, LivingEntity attacker) {
|
||||
attackee.addStatusEffect(new StatusEffectInstance(GamerEffects.STUPID, 20*5, 0), attacker);
|
||||
return super.postHit(stack, attackee, attacker);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.HoeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumHoeItem extends HoeItem{
|
||||
|
||||
public StupidiumHoeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.PickaxeItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumPickaxeItem extends PickaxeItem{
|
||||
|
||||
public StupidiumPickaxeItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import net.minecraft.item.ShovelItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
|
||||
public class StupidiumShovelItem extends ShovelItem{
|
||||
|
||||
public StupidiumShovelItem(ToolMaterial material, float attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.arcmods.ryantlg.customToolItemClasses.stupidium;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.arcmods.ryantlg.statusEffects.GamerEffects;
|
||||
import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.SwordItem;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class StupidiumSwordItem extends SwordItem {
|
||||
public StupidiumSwordItem(ToolMaterial material, int attackDamage, float attackSpeed, Settings settings) {
|
||||
super(material, attackDamage, attackSpeed, settings);
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
tooltip.add(Text.translatable("item.gameritems.stupidium_sword.tooltip").formatted(Formatting.RED));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean postHit(ItemStack stack, LivingEntity attackee, LivingEntity attacker) {
|
||||
attackee.addStatusEffect(new StatusEffectInstance(GamerEffects.STUPID, 20*6, 0), attacker);
|
||||
return super.postHit(stack, attackee, attacker);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package net.arcmods.ryantlg.damageSources;
|
||||
|
||||
import net.minecraft.entity.damage.DamageSource;
|
||||
|
||||
public class stupidDamageSource extends DamageSource {
|
||||
|
||||
protected stupidDamageSource() {
|
||||
super("dumb");
|
||||
}
|
||||
|
||||
public static final DamageSource STUPID = (new stupidDamageSource().setBypassesArmor());
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package net.arcmods.ryantlg.enchantments;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.minecraft.enchantment.Enchantment;
|
||||
import net.minecraft.enchantment.EnchantmentTarget;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffectInstance;
|
||||
import net.minecraft.entity.effect.StatusEffects;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class evadeEnchantment extends Enchantment {
|
||||
|
||||
public evadeEnchantment() {
|
||||
super(Enchantment.Rarity.UNCOMMON, EnchantmentTarget.ARMOR_CHEST, new EquipmentSlot[] {EquipmentSlot.HEAD, EquipmentSlot.CHEST, EquipmentSlot.FEET, EquipmentSlot.LEGS});
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMinPower(int level) {
|
||||
return 30;
|
||||
}
|
||||
@Override
|
||||
public int getMaxLevel() {
|
||||
return 4;
|
||||
}
|
||||
// public void onTargetDamaged(LivingEntity user, Entity target, int level) {
|
||||
// if(target instanceof LivingEntity) {
|
||||
// ((LivingEntity) user).addStatusEffect(new StatusEffectInstance(StatusEffects.SPEED, 20 * 5, level - 1));
|
||||
// }
|
||||
|
||||
// super.onTargetDamaged(user, target, level);
|
||||
// }
|
||||
@Override
|
||||
public void onUserDamaged(LivingEntity user, Entity attacker, int level) {
|
||||
if (attacker instanceof LivingEntity) {
|
||||
((LivingEntity) user).addStatusEffect(new StatusEffectInstance(StatusEffects.SPEED, 20 * 7, level));
|
||||
((LivingEntity) attacker).addStatusEffect(new StatusEffectInstance(StatusEffects.SLOWNESS, 20 * 5, level));
|
||||
}
|
||||
super.onUserDamaged(user, attacker, level);
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
Registry.register(
|
||||
Registry.ENCHANTMENT,
|
||||
new Identifier("gameritems", "evade"),
|
||||
new evadeEnchantment()
|
||||
);
|
||||
gameritems.LOGGER.info("evadeEnchantment loaded");
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,24 +1,32 @@
|
||||
package net.arcmods.ryantlg;
|
||||
|
||||
import net.arcmods.ryantlg.blocks.CropBlocks;
|
||||
import net.arcmods.ryantlg.blocks.FunnyBlocks;
|
||||
import net.arcmods.ryantlg.blocks.jeremiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.omniumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.oriumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.cropBlocks.weemCrop;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.jeremiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.omniumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.oriumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.stupidiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.otherBlocks.FunnyBlocks;
|
||||
import net.arcmods.ryantlg.enchantments.evadeEnchantment;
|
||||
import net.arcmods.ryantlg.items.armour.jeremiumArmour;
|
||||
import net.arcmods.ryantlg.items.armour.notArmour;
|
||||
import net.arcmods.ryantlg.items.armour.omniumArmour;
|
||||
import net.arcmods.ryantlg.items.armour.oriumArmour;
|
||||
import net.arcmods.ryantlg.items.armour.stupidiumArmour;
|
||||
import net.arcmods.ryantlg.items.bows.gamerBow;
|
||||
// import net.arcmods.ryantlg.items.bows.stupidBow;
|
||||
import net.arcmods.ryantlg.items.itemsByCrop.weemItems;
|
||||
import net.arcmods.ryantlg.items.metalItems.jeremiumMetals;
|
||||
import net.arcmods.ryantlg.items.metalItems.omniumMetals;
|
||||
import net.arcmods.ryantlg.items.metalItems.oriumMetals;
|
||||
import net.arcmods.ryantlg.items.metalItems.stupidiumMetals;
|
||||
import net.arcmods.ryantlg.items.miscItems.FunnyItems;
|
||||
import net.arcmods.ryantlg.items.miscItems.OtherItems;
|
||||
import net.arcmods.ryantlg.items.miscItems.fabricOfReality;
|
||||
import net.arcmods.ryantlg.items.tools.jeremiumTools;
|
||||
import net.arcmods.ryantlg.items.tools.notTools;
|
||||
import net.arcmods.ryantlg.items.tools.omniumTools;
|
||||
import net.arcmods.ryantlg.items.tools.oriumTools;
|
||||
import net.arcmods.ryantlg.items.tools.stupidiumTools;
|
||||
import net.arcmods.ryantlg.lootTables.grassVanillaWeem;
|
||||
import net.arcmods.ryantlg.statusEffects.GamerEffects;
|
||||
import net.arcmods.ryantlg.worldGeneration.DeepslateOmniumOreGen;
|
||||
@@ -26,6 +34,7 @@ import net.arcmods.ryantlg.worldGeneration.DeepslateOriumOreGen;
|
||||
import net.arcmods.ryantlg.worldGeneration.JeremiumOreGen;
|
||||
import net.arcmods.ryantlg.worldGeneration.OmniumOreGen;
|
||||
import net.arcmods.ryantlg.worldGeneration.OriumOreGen;
|
||||
import net.arcmods.ryantlg.worldGeneration.StupidiumOreGen;
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
|
||||
import net.fabricmc.fabric.api.client.itemgroup.FabricItemGroupBuilder;
|
||||
@@ -37,23 +46,23 @@ import net.minecraft.util.Identifier;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
public class gamermod implements ModInitializer {
|
||||
public class gameritems implements ModInitializer {
|
||||
|
||||
public static final Logger LOGGER = LogManager.getLogger("gamermod");
|
||||
public static final Logger LOGGER = LogManager.getLogger("gameritems");
|
||||
|
||||
|
||||
public static final ItemGroup FNUTS = FabricItemGroupBuilder.build(
|
||||
new Identifier("gamermod", "chins"),
|
||||
new Identifier("gameritems", "chins"),
|
||||
() -> new ItemStack(Items.NETHERITE_INGOT)
|
||||
);
|
||||
|
||||
public static final ItemGroup CHING = FabricItemGroupBuilder.create(
|
||||
new Identifier("gamermod", "things"))
|
||||
new Identifier("gameritems", "things"))
|
||||
.icon(() -> new ItemStack(FunnyItems.DEEZ_NUTS_ON_CHIN))
|
||||
.build();
|
||||
|
||||
public static final ItemGroup THING = FabricItemGroupBuilder.create(
|
||||
new Identifier("gamermod", "armour_and_tools"))
|
||||
new Identifier("gameritems", "armour_and_tools"))
|
||||
.icon(() -> new ItemStack(omniumMetals.OMNIUM))
|
||||
.build();
|
||||
|
||||
@@ -66,6 +75,7 @@ public class gamermod implements ModInitializer {
|
||||
omniumTools.register();
|
||||
omniumBlocks.register();
|
||||
OmniumOreGen.register();
|
||||
StupidiumOreGen.register();
|
||||
DeepslateOmniumOreGen.register();
|
||||
|
||||
weemItems.register();
|
||||
@@ -84,7 +94,7 @@ public class gamermod implements ModInitializer {
|
||||
OriumOreGen.register();
|
||||
DeepslateOriumOreGen.register();
|
||||
|
||||
CropBlocks.register();
|
||||
weemCrop.register();
|
||||
|
||||
fabricOfReality.register();
|
||||
|
||||
@@ -96,7 +106,17 @@ public class gamermod implements ModInitializer {
|
||||
jeremiumTools.register();
|
||||
JeremiumOreGen.register();
|
||||
|
||||
stupidiumMetals.register();
|
||||
stupidiumBlocks.register();
|
||||
stupidiumArmour.register();
|
||||
stupidiumTools.register();
|
||||
|
||||
notArmour.register();
|
||||
notTools.register();
|
||||
gamerBow.register();
|
||||
// stupidBow.register(); // incomplete: lazy
|
||||
|
||||
evadeEnchantment.register();
|
||||
|
||||
}
|
||||
//fight me
|
||||
@@ -1,6 +1,7 @@
|
||||
package net.arcmods.ryantlg;
|
||||
|
||||
import net.arcmods.ryantlg.blocks.CropBlocks;
|
||||
import net.arcmods.ryantlg.blocks.cropBlocks.weemCrop;
|
||||
import net.arcmods.ryantlg.utils.bowModelPredicateProvider;
|
||||
import net.fabricmc.api.ClientModInitializer;
|
||||
import net.fabricmc.api.EnvType;
|
||||
import net.fabricmc.api.Environment;
|
||||
@@ -8,13 +9,15 @@ import net.fabricmc.fabric.api.blockrenderlayer.v1.BlockRenderLayerMap;
|
||||
import net.minecraft.client.render.RenderLayer;
|
||||
|
||||
@Environment(EnvType.CLIENT)
|
||||
public class gamermodClient implements ClientModInitializer{
|
||||
public class gameritemsClient implements ClientModInitializer{
|
||||
|
||||
@Override
|
||||
public void onInitializeClient() {
|
||||
BlockRenderLayerMap.INSTANCE.putBlocks(RenderLayer.getCutout(), CropBlocks.WEEM_CROP_BLOCK);
|
||||
BlockRenderLayerMap.INSTANCE.putBlocks(RenderLayer.getCutout(), weemCrop.WEEM_CROP_BLOCK);
|
||||
|
||||
gamermod.LOGGER.info("Client only objects loaded");
|
||||
bowModelPredicateProvider.registerBowModels();
|
||||
|
||||
gameritems.LOGGER.info("Client only objects loaded");
|
||||
|
||||
}
|
||||
|
||||
@@ -6,7 +6,6 @@ import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -19,6 +18,8 @@ public class BreemItem extends Item {
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add( new TranslatableText("item.gamermod.breem.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
}
|
||||
tooltip.add(Text.translatable("item.gameritems.breem.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
|
||||
//tooltip.add( new TranslatableText("item.gameritems.breem.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,7 +7,7 @@ import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class FabricReality extends Item{
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add( new TranslatableText("item.gamermod.fabric_of_reality.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("item.gameritems.fabric_of_reality.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
package net.arcmods.ryantlg.itemClasses;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class StupidiumItem extends Item {
|
||||
|
||||
public StupidiumItem(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add(Text.translatable("item.gameritems.stupidium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -19,6 +19,6 @@ public class WeemItem extends Item {
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add( new TranslatableText("item.gamermod.weem.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("item.gameritems.weem.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
package net.arcmods.ryantlg.itemClasses;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
public class dipstickItem extends Item{
|
||||
|
||||
public dipstickItem(Settings settings) {
|
||||
super(settings);
|
||||
}
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add(Text.translatable("item.gameritems.dipstick.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -6,7 +6,7 @@ import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class jeremiumItem extends Item{
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add( new TranslatableText("all.gamermod.jeremium.tooltiptwo").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("all.gameritems.jeremium.tooltiptwo").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import net.minecraft.client.item.TooltipContext;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.text.Text;
|
||||
import net.minecraft.text.TranslatableText;
|
||||
|
||||
import net.minecraft.util.Formatting;
|
||||
import net.minecraft.world.World;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class oriumItem extends Item{
|
||||
@Override
|
||||
public void appendTooltip(ItemStack itemStack, World world, List<Text> tooltip, TooltipContext tooltipContext) {
|
||||
|
||||
tooltip.add( new TranslatableText("item.gamermod.orium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
tooltip.add(Text.translatable("item.gameritems.orium.tooltip").formatted(Formatting.LIGHT_PURPLE, Formatting.ITALIC) );
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.armour;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.armourMaterials.JeremiumArmorMaterial;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
@@ -13,19 +13,19 @@ import net.minecraft.util.registry.Registry;
|
||||
public class jeremiumArmour {
|
||||
|
||||
public static final ArmorMaterial JEREMIUM_ARMOR_MATERIAL = new JeremiumArmorMaterial();
|
||||
public static final Item JEREMIUM_HELMET = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_CHESTPLATE = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_LEGGINGS = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_BOOTS = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_HELMET = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_CHESTPLATE = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_LEGGINGS = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item JEREMIUM_BOOTS = new ArmorItem(JEREMIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_helmet"), JEREMIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_chestplate"), JEREMIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_leggings"), JEREMIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_boots"), JEREMIUM_BOOTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_helmet"), JEREMIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_chestplate"), JEREMIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_leggings"), JEREMIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_boots"), JEREMIUM_BOOTS);
|
||||
|
||||
gamermod.LOGGER.info("jeremiumArmour loaded");
|
||||
gameritems.LOGGER.info("jeremiumArmour loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.armour;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.armourMaterials.notArmorMaterial;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
@@ -13,19 +13,19 @@ import net.minecraft.util.registry.Registry;
|
||||
public class notArmour {
|
||||
|
||||
public static final ArmorMaterial OMNIUM_ARMOR_MATERIAL = new notArmorMaterial();
|
||||
public static final Item NOT_HELMET = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_CHESTPLATE = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_LEGGINGS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_BOOTS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_HELMET = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_CHESTPLATE = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_LEGGINGS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NOT_BOOTS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_helmet"), NOT_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_chestplate"), NOT_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_leggings"), NOT_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "not_boots"), NOT_BOOTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_helmet"), NOT_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_chestplate"), NOT_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_leggings"), NOT_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_boots"), NOT_BOOTS);
|
||||
|
||||
gamermod.LOGGER.info("notArmour loaded");
|
||||
gameritems.LOGGER.info("notArmour loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.arcmods.ryantlg.items.armour;
|
||||
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.armourMaterials.OmniumArmorMaterial;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
@@ -13,19 +13,19 @@ import net.minecraft.util.Rarity;
|
||||
public class omniumArmour {
|
||||
|
||||
public static final ArmorMaterial OMNIUM_ARMOR_MATERIAL = new OmniumArmorMaterial();
|
||||
public static final Item OMNIUM_HELMET = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_CHESTPLATE = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_LEGGINGS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_BOOTS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_HELMET = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_CHESTPLATE = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_LEGGINGS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item OMNIUM_BOOTS = new ArmorItem(OMNIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_helmet"), OMNIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_chestplate"), OMNIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_leggings"), OMNIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_boots"), OMNIUM_BOOTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_helmet"), OMNIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_chestplate"), OMNIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_leggings"), OMNIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_boots"), OMNIUM_BOOTS);
|
||||
|
||||
gamermod.LOGGER.info("omniumArmour loaded");
|
||||
gameritems.LOGGER.info("omniumArmour loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.arcmods.ryantlg.items.armour;
|
||||
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.armourMaterials.OriumArmorMaterial;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
@@ -12,18 +12,18 @@ import net.minecraft.util.Rarity;
|
||||
|
||||
public class oriumArmour {
|
||||
public static final ArmorMaterial ORIUM_ARMOR_MATERIAL = new OriumArmorMaterial();
|
||||
public static final Item ORIUM_HELMET = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_CHESTPLATE = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_LEGGINGS = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_BOOTS = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gamermod.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_HELMET = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_CHESTPLATE = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_LEGGINGS = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item ORIUM_BOOTS = new ArmorItem(ORIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gameritems.THING).fireproof().rarity(Rarity.RARE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_helmet"), ORIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_chestplate"), ORIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_leggings"), ORIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_boots"), ORIUM_BOOTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_helmet"), ORIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_chestplate"), ORIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_leggings"), ORIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_boots"), ORIUM_BOOTS);
|
||||
|
||||
gamermod.LOGGER.info("oriumArmour loaded");
|
||||
gameritems.LOGGER.info("oriumArmour loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package net.arcmods.ryantlg.items.armour;
|
||||
|
||||
import net.arcmods.ryantlg.armourMaterials.stupidiumArmorMaterial;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.minecraft.entity.EquipmentSlot;
|
||||
import net.minecraft.item.ArmorItem;
|
||||
import net.minecraft.item.ArmorMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
|
||||
public class stupidiumArmour {
|
||||
public static final ArmorMaterial STUPIDIUM_ARMOR_MATERIAL = new stupidiumArmorMaterial();
|
||||
public static final Item STUPIDIUM_HELMET = new ArmorItem(STUPIDIUM_ARMOR_MATERIAL, EquipmentSlot.HEAD, new Item.Settings().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static final Item STUPIDIUM_CHESTPLATE = new ArmorItem(STUPIDIUM_ARMOR_MATERIAL, EquipmentSlot.CHEST, new Item.Settings().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static final Item STUPIDIUM_LEGGINGS = new ArmorItem(STUPIDIUM_ARMOR_MATERIAL, EquipmentSlot.LEGS, new Item.Settings().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static final Item STUPIDIUM_BOOTS = new ArmorItem(STUPIDIUM_ARMOR_MATERIAL, EquipmentSlot.FEET, new Item.Settings().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_helmet"), STUPIDIUM_HELMET);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_chestplate"), STUPIDIUM_CHESTPLATE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_leggings"), STUPIDIUM_LEGGINGS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_boots"), STUPIDIUM_BOOTS);
|
||||
|
||||
gameritems.LOGGER.info("stupidiumArmour loaded");
|
||||
}
|
||||
}
|
||||
19
src/main/java/net/arcmods/ryantlg/items/bows/gamerBow.java
Normal file
19
src/main/java/net/arcmods/ryantlg/items/bows/gamerBow.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package net.arcmods.ryantlg.items.bows;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.minecraft.item.BowItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class gamerBow {
|
||||
|
||||
public static final Item GAMER_BOW = new BowItem(new FabricItemSettings().group(gameritems.CHING).maxCount(1).fireproof().maxDamage(458));
|
||||
|
||||
public static void register(){
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "gamer_bow"), GAMER_BOW);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
19
src/main/java/net/arcmods/ryantlg/items/bows/stupidBow.java
Normal file
19
src/main/java/net/arcmods/ryantlg/items/bows/stupidBow.java
Normal file
@@ -0,0 +1,19 @@
|
||||
package net.arcmods.ryantlg.items.bows;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.stupidium.StupidiumBowItem;
|
||||
import net.fabricmc.fabric.api.item.v1.FabricItemSettings;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class stupidBow {
|
||||
|
||||
public static final Item STUPID_BOW = new StupidiumBowItem(new FabricItemSettings().group(gameritems.CHING).maxCount(1).fireproof().maxDamage(458));
|
||||
|
||||
public static void register(){
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupid_bow"), STUPID_BOW);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.arcmods.ryantlg.items.itemsByCrop;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blocks.CropBlocks;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.cropBlocks.weemCrop;
|
||||
import net.arcmods.ryantlg.itemClasses.BreemItem;
|
||||
import net.arcmods.ryantlg.itemClasses.WeemItem;
|
||||
import net.arcmods.ryantlg.statusEffects.GamerEffects;
|
||||
@@ -18,11 +18,11 @@ public class weemItems {
|
||||
|
||||
//main items
|
||||
//================================================================================================================
|
||||
public static final Item WEEM = new Item(new Item.Settings().group(gamermod.CHING).maxCount(128));
|
||||
public static final Item WEEM = new Item(new Item.Settings().group(gameritems.CHING).maxCount(64));
|
||||
|
||||
// foods
|
||||
//================================================================================================================
|
||||
public static final Item BREEM = new BreemItem(new FabricItemSettings().group(gamermod.CHING)
|
||||
public static final Item BREEM = new BreemItem(new FabricItemSettings().group(gameritems.CHING)
|
||||
.food(
|
||||
new FoodComponent
|
||||
.Builder()
|
||||
@@ -36,7 +36,7 @@ public class weemItems {
|
||||
.build()
|
||||
));
|
||||
|
||||
public static final Item WEEM_APPLE = new WeemItem(new FabricItemSettings().group(gamermod.CHING)
|
||||
public static final Item WEEM_APPLE = new WeemItem(new FabricItemSettings().group(gameritems.CHING)
|
||||
.food(
|
||||
new FoodComponent
|
||||
.Builder()
|
||||
@@ -56,18 +56,17 @@ public class weemItems {
|
||||
|
||||
//seeds
|
||||
//================================================================================================================
|
||||
public static final Item WEEM_SEEDS = new AliasedBlockItem(CropBlocks.WEEM_CROP_BLOCK, new Item.Settings().group(gamermod.CHING));
|
||||
public static final Item WEEM_SEEDS = new AliasedBlockItem(weemCrop.WEEM_CROP_BLOCK, new Item.Settings().group(gameritems.CHING));
|
||||
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "breem"), BREEM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "weem_apple"), WEEM_APPLE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "breem"), BREEM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "weem_apple"), WEEM_APPLE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems","weem_seeds"), WEEM_SEEDS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "weem"), WEEM);
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod","weem_seeds"), WEEM_SEEDS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "weem"), WEEM);
|
||||
|
||||
gamermod.LOGGER.info("weemItems loaded");
|
||||
gameritems.LOGGER.info("weemItems loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.metalItems;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.itemClasses.jeremiumItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
@@ -9,14 +9,14 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class jeremiumMetals {
|
||||
|
||||
public static final Item JEREMIUM = new jeremiumItem(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(56).rarity(Rarity.UNCOMMON));
|
||||
public static final Item RAW_JEREMIUM = new jeremiumItem(new Item.Settings().fireproof().group(gamermod.CHING).maxCount(56).rarity(Rarity.UNCOMMON));
|
||||
public static final Item JEREMIUM = new jeremiumItem(new Item.Settings().fireproof().group(gameritems.CHING).maxCount(56).rarity(Rarity.UNCOMMON));
|
||||
public static final Item RAW_JEREMIUM = new jeremiumItem(new Item.Settings().fireproof().group(gameritems.CHING).maxCount(56).rarity(Rarity.UNCOMMON));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_ingot"), JEREMIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "raw_jeremium"), RAW_JEREMIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_ingot"), JEREMIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "raw_jeremium"), RAW_JEREMIUM);
|
||||
|
||||
gamermod.LOGGER.info("jeremiumMetals loaded");
|
||||
gameritems.LOGGER.info("jeremiumMetals loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.metalItems;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
@@ -8,13 +8,13 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class omniumMetals {
|
||||
|
||||
public static final Item OMNIUM = new Item(new Item.Settings().group(gamermod.CHING).maxCount(64).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item RAW_OMNIUM = new Item(new Item.Settings().group(gamermod.CHING).maxCount(64).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item OMNIUM = new Item(new Item.Settings().group(gameritems.CHING).maxCount(64).fireproof().rarity(Rarity.RARE));
|
||||
public static final Item RAW_OMNIUM = new Item(new Item.Settings().group(gameritems.CHING).maxCount(64).fireproof().rarity(Rarity.RARE));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_ingot"), OMNIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "raw_omnium"), RAW_OMNIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_ingot"), OMNIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "raw_omnium"), RAW_OMNIUM);
|
||||
|
||||
gamermod.LOGGER.info("omniumMetals loaded");
|
||||
gameritems.LOGGER.info("omniumMetals loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.metalItems;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.itemClasses.oriumItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
@@ -9,13 +9,13 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class oriumMetals {
|
||||
|
||||
public static final Item ORIUM = new oriumItem(new Item.Settings().group(gamermod.CHING).maxCount(64).fireproof().rarity(Rarity.UNCOMMON));
|
||||
public static final Item RAW_ORIUM = new oriumItem(new Item.Settings().group(gamermod.CHING).maxCount(64).fireproof().rarity(Rarity.UNCOMMON));
|
||||
public static final Item ORIUM = new oriumItem(new Item.Settings().group(gameritems.CHING).maxCount(64).fireproof().rarity(Rarity.UNCOMMON));
|
||||
public static final Item RAW_ORIUM = new oriumItem(new Item.Settings().group(gameritems.CHING).maxCount(64).fireproof().rarity(Rarity.UNCOMMON));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_ingot"), ORIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "raw_orium"), RAW_ORIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_ingot"), ORIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "raw_orium"), RAW_ORIUM);
|
||||
|
||||
gamermod.LOGGER.info("oriumMetals loaded");
|
||||
gameritems.LOGGER.info("oriumMetals loaded");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.arcmods.ryantlg.items.metalItems;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.itemClasses.StupidiumItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class stupidiumMetals {
|
||||
|
||||
public static final Item STUPIDIUM = new StupidiumItem(new Item.Settings().group(gameritems.CHING).maxCount(64).rarity(Rarity.UNCOMMON));
|
||||
public static final Item RAW_STUPIDIUM = new StupidiumItem(new Item.Settings().group(gameritems.CHING).maxCount(64).rarity(Rarity.UNCOMMON));
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_ingot"), STUPIDIUM);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "raw_stupidium"), RAW_STUPIDIUM);
|
||||
|
||||
gameritems.LOGGER.info("stupidiumMetals loaded");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.miscItems;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.toolMaterials.deezToolMaterial;
|
||||
import net.arcmods.ryantlg.toolMaterials.dragchinToolMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
@@ -10,27 +10,27 @@ import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class FunnyItems {
|
||||
public static final Item CHIN = new Item(new Item.Settings().group(gamermod.FNUTS).maxCount(4));
|
||||
public static final Item NUTS = new Item(new Item.Settings().group(gamermod.FNUTS).maxCount(4));
|
||||
public static final Item DEEZ = new Item(new Item.Settings().group(gamermod.FNUTS).maxCount(4));
|
||||
public static final Item DEEZ_NUTS = new Item(new Item.Settings().group(gamermod.FNUTS).maxCount(4));
|
||||
public static ToolItem DEEZ_NUTS_ON_CHIN = new SwordItem(deezToolMaterial.INSTANCE, 1, -1.0F, new Item.Settings().group(gamermod.FNUTS));
|
||||
public static final Item DRAG = new Item(new Item.Settings().group(gamermod.FNUTS).maxCount(4));
|
||||
public static ToolItem DRAG_DEEZ_NUTS_ON_CHIN = new SwordItem(dragchinToolMaterial.INSTANCE, 1, -1.0F, new Item.Settings().group(gamermod.FNUTS));
|
||||
public static final Item YOUR_MOTHER = new Item(new Item.Settings().group(gamermod.FNUTS).maxCount(1));
|
||||
public static final Item CHIN = new Item(new Item.Settings().group(gameritems.FNUTS).maxCount(4));
|
||||
public static final Item NUTS = new Item(new Item.Settings().group(gameritems.FNUTS).maxCount(4));
|
||||
public static final Item DEEZ = new Item(new Item.Settings().group(gameritems.FNUTS).maxCount(4));
|
||||
public static final Item DEEZ_NUTS = new Item(new Item.Settings().group(gameritems.FNUTS).maxCount(4));
|
||||
public static ToolItem DEEZ_NUTS_ON_CHIN = new SwordItem(deezToolMaterial.INSTANCE, 1, -1.0F, new Item.Settings().group(gameritems.FNUTS));
|
||||
public static final Item DRAG = new Item(new Item.Settings().group(gameritems.FNUTS).maxCount(4));
|
||||
public static ToolItem DRAG_DEEZ_NUTS_ON_CHIN = new SwordItem(dragchinToolMaterial.INSTANCE, 1, -1.0F, new Item.Settings().group(gameritems.FNUTS));
|
||||
public static final Item YOUR_MOTHER = new Item(new Item.Settings().group(gameritems.FNUTS).maxCount(1));
|
||||
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "chin"), CHIN);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "nuts"), NUTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deez"), DEEZ);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deez_nuts"), DEEZ_NUTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "deez_nuts_on_your_chin"), DEEZ_NUTS_ON_CHIN);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "drag"), DRAG);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "drag_deez_nuts_on_your_chin"), DRAG_DEEZ_NUTS_ON_CHIN);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "your_mother"), YOUR_MOTHER);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "chin"), CHIN);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "nuts"), NUTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deez"), DEEZ);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deez_nuts"), DEEZ_NUTS);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "deez_nuts_on_your_chin"), DEEZ_NUTS_ON_CHIN);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "drag"), DRAG);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "drag_deez_nuts_on_your_chin"), DRAG_DEEZ_NUTS_ON_CHIN);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "your_mother"), YOUR_MOTHER);
|
||||
|
||||
gamermod.LOGGER.info("FunnyItems loaded");
|
||||
gameritems.LOGGER.info("FunnyItems loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package net.arcmods.ryantlg.items.miscItems;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.itemClasses.dipstickItem;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
@@ -8,12 +9,14 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class OtherItems {
|
||||
|
||||
public static final Item NETHERITE_STICK = new Item(new Item.Settings().group(gamermod.CHING).maxCount(64).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item NETHERITE_STICK = new Item(new Item.Settings().group(gameritems.CHING).maxCount(64).fireproof().rarity(Rarity.EPIC));
|
||||
public static final Item DIPSTICK = new dipstickItem(new Item.Settings().group(gameritems.CHING));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "netherite_stick"), NETHERITE_STICK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "netherite_stick"), NETHERITE_STICK);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "dipstick"), DIPSTICK);
|
||||
|
||||
gamermod.LOGGER.info("OtherItems loaded");
|
||||
gameritems.LOGGER.info("OtherItems loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.miscItems;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.itemClasses.FabricReality;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
@@ -11,9 +11,9 @@ public class fabricOfReality {
|
||||
public static final Item FABRIC_OF_REALITY = new FabricReality(new Item.Settings().fireproof());
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "fabric_of_reality"), FABRIC_OF_REALITY);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "fabric_of_reality"), FABRIC_OF_REALITY);
|
||||
|
||||
gamermod.LOGGER.info("fabricOfReality loaded");
|
||||
gameritems.LOGGER.info("fabricOfReality loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.tools;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumAxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumHoeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.jeremium.JeremiumPickaxeItem;
|
||||
@@ -15,21 +15,21 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class jeremiumTools {
|
||||
|
||||
public static ToolItem JEREMIUM_SWORD = new JeremiumSwordItem(jeremiumToolMaterial.INSTANCE, 3, -2.9F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_PICKAXE = new JeremiumPickaxeItem(jeremiumToolMaterial.INSTANCE, -10, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_SHOVEL = new JeremiumShovelItem(jeremiumToolMaterial.INSTANCE, -11, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_AXE = new JeremiumAxeItem(jeremiumToolMaterial.INSTANCE, 5, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_HOE = new JeremiumHoeItem(jeremiumToolMaterial.INSTANCE, -12, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_SWORD = new JeremiumSwordItem(jeremiumToolMaterial.INSTANCE, 3, -2.9F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_PICKAXE = new JeremiumPickaxeItem(jeremiumToolMaterial.INSTANCE, -10, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_SHOVEL = new JeremiumShovelItem(jeremiumToolMaterial.INSTANCE, -11, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_AXE = new JeremiumAxeItem(jeremiumToolMaterial.INSTANCE, 5, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem JEREMIUM_HOE = new JeremiumHoeItem(jeremiumToolMaterial.INSTANCE, -12, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_sword"), JEREMIUM_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_pickaxe"), JEREMIUM_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_shovel"), JEREMIUM_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_axe"), JEREMIUM_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "jeremium_hoe"), JEREMIUM_HOE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_sword"), JEREMIUM_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_pickaxe"), JEREMIUM_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_shovel"), JEREMIUM_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_axe"), JEREMIUM_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "jeremium_hoe"), JEREMIUM_HOE);
|
||||
|
||||
gamermod.LOGGER.info("jeremiumTools loaded");
|
||||
gameritems.LOGGER.info("jeremiumTools loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
34
src/main/java/net/arcmods/ryantlg/items/tools/notTools.java
Normal file
34
src/main/java/net/arcmods/ryantlg/items/tools/notTools.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package net.arcmods.ryantlg.items.tools;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notAxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notHoeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notPickaxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notShovelItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.not.notSwordItem;
|
||||
import net.arcmods.ryantlg.toolMaterials.notToolMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ToolItem;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class notTools {
|
||||
|
||||
public static ToolItem NOT_SWORD = new notSwordItem(notToolMaterial.INSTANCE, 6, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_PICKAXE = new notPickaxeItem(notToolMaterial.INSTANCE, -48, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_SHOVEL = new notShovelItem(notToolMaterial.INSTANCE, -40, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_AXE = new notAxeItem(notToolMaterial.INSTANCE, 10, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem NOT_HOE = new notHoeItem(notToolMaterial.INSTANCE, -49, -0.1F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_sword"), NOT_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_pickaxe"), NOT_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_shovel"), NOT_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_axe"), NOT_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "not_hoe"), NOT_HOE);
|
||||
|
||||
gameritems.LOGGER.info("notTools loaded");
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.tools;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.omnium.OmniumAxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.omnium.OmniumHoeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.omnium.OmniumPickaxeItem;
|
||||
@@ -15,20 +15,20 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class omniumTools {
|
||||
|
||||
public static ToolItem OMNIUM_SWORD = new OmniumSwordItem(omniumToolMaterial.INSTANCE, 3, -1.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_PICKAXE = new OmniumPickaxeItem(omniumToolMaterial.INSTANCE, -9, -2.8F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_SHOVEL = new OmniumShovelItem(omniumToolMaterial.INSTANCE, -10, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_AXE = new OmniumAxeItem(omniumToolMaterial.INSTANCE, 6, -1.9F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_HOE = new OmniumHoeItem(omniumToolMaterial.INSTANCE, -11, -3.2F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_SWORD = new OmniumSwordItem(omniumToolMaterial.INSTANCE, 3, -1.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_PICKAXE = new OmniumPickaxeItem(omniumToolMaterial.INSTANCE, -9, -2.8F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_SHOVEL = new OmniumShovelItem(omniumToolMaterial.INSTANCE, -10, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_AXE = new OmniumAxeItem(omniumToolMaterial.INSTANCE, 6, -1.9F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
public static ToolItem OMNIUM_HOE = new OmniumHoeItem(omniumToolMaterial.INSTANCE, -11, -3.2F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.EPIC));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_sword"), OMNIUM_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_pickaxe"), OMNIUM_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_shovel"), OMNIUM_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_axe"), OMNIUM_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "omnium_hoe"), OMNIUM_HOE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_sword"), OMNIUM_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_pickaxe"), OMNIUM_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_shovel"), OMNIUM_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_axe"), OMNIUM_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "omnium_hoe"), OMNIUM_HOE);
|
||||
|
||||
gamermod.LOGGER.info("omniumTools loaded");
|
||||
gameritems.LOGGER.info("omniumTools loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.items.tools;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.orium.OriumAxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.orium.OriumHoeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.orium.OriumPickaxeItem;
|
||||
@@ -15,20 +15,20 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class oriumTools {
|
||||
|
||||
public static ToolItem ORIUM_SWORD = new OriumSwordItem(oriumToolMaterial.INSTANCE, 2, -2.2F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_PICKAXE = new OriumPickaxeItem(oriumToolMaterial.INSTANCE, -3, -2.8F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_SHOVEL = new OriumShovelItem(oriumToolMaterial.INSTANCE, -2.5F, -3.0F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_AXE = new OriumAxeItem(oriumToolMaterial.INSTANCE, 4, -1.9F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_HOE = new OriumHoeItem(oriumToolMaterial.INSTANCE, -8, -3.2F, new Item.Settings().fireproof().group(gamermod.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_SWORD = new OriumSwordItem(oriumToolMaterial.INSTANCE, 2, -2.2F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_PICKAXE = new OriumPickaxeItem(oriumToolMaterial.INSTANCE, -3, -2.8F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_SHOVEL = new OriumShovelItem(oriumToolMaterial.INSTANCE, -2.5F, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_AXE = new OriumAxeItem(oriumToolMaterial.INSTANCE, 4, -1.9F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem ORIUM_HOE = new OriumHoeItem(oriumToolMaterial.INSTANCE, -8, -3.2F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_sword"), ORIUM_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_pickaxe"), ORIUM_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_shovel"), ORIUM_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_axe"), ORIUM_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gamermod", "orium_hoe"), ORIUM_HOE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_sword"), ORIUM_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_pickaxe"), ORIUM_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_shovel"), ORIUM_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_axe"), ORIUM_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "orium_hoe"), ORIUM_HOE);
|
||||
|
||||
gamermod.LOGGER.info("oriumTools loaded");
|
||||
gameritems.LOGGER.info("oriumTools loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package net.arcmods.ryantlg.items.tools;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.stupidium.StupidiumAxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.stupidium.StupidiumHoeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.stupidium.StupidiumPickaxeItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.stupidium.StupidiumShovelItem;
|
||||
import net.arcmods.ryantlg.customToolItemClasses.stupidium.StupidiumSwordItem;
|
||||
import net.arcmods.ryantlg.toolMaterials.stupidiumToolMaterial;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ToolItem;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.Rarity;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class stupidiumTools {
|
||||
|
||||
public static ToolItem STUPID_SWORD = new StupidiumSwordItem(stupidiumToolMaterial.INSTANCE, 6, -2.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem STUPID_PICKAXE = new StupidiumPickaxeItem(stupidiumToolMaterial.INSTANCE, -3, -2.8F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem STUPID_SHOVEL = new StupidiumShovelItem(stupidiumToolMaterial.INSTANCE, -2.5F, -3.0F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem STUPID_AXE = new StupidiumAxeItem(stupidiumToolMaterial.INSTANCE, 7, -2.2F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
public static ToolItem STUPID_HOE = new StupidiumHoeItem(stupidiumToolMaterial.INSTANCE, -9, -3.2F, new Item.Settings().fireproof().group(gameritems.THING).rarity(Rarity.RARE));
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_sword"), STUPID_SWORD);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_pickaxe"), STUPID_PICKAXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_shovel"), STUPID_SHOVEL);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_axe"), STUPID_AXE);
|
||||
Registry.register(Registry.ITEM, new Identifier("gameritems", "stupidium_hoe"), STUPID_HOE);
|
||||
|
||||
gameritems.LOGGER.info("stupidiumTools loaded");
|
||||
}
|
||||
}
|
||||
@@ -1,38 +1,46 @@
|
||||
package net.arcmods.ryantlg.lootTables;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.items.itemsByCrop.weemItems;
|
||||
import net.fabricmc.fabric.api.loot.v1.FabricLootPoolBuilder;
|
||||
import net.fabricmc.fabric.api.loot.v1.event.LootTableLoadingCallback;
|
||||
import net.fabricmc.fabric.api.loot.v2.LootTableEvents;
|
||||
import net.minecraft.block.Blocks;
|
||||
import net.minecraft.loot.LootPool;
|
||||
import net.minecraft.loot.condition.RandomChanceLootCondition;
|
||||
import net.minecraft.loot.entry.ItemEntry;
|
||||
import net.minecraft.loot.function.SetCountLootFunction;
|
||||
import net.minecraft.loot.provider.number.ConstantLootNumberProvider;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class grassVanillaWeem {
|
||||
|
||||
private static final Identifier GRASS_LOOT_TABLE_ID = new Identifier("minecraft", "blocks/grass");
|
||||
private static final Identifier GRASS_LOOT_TABLE_ID = Blocks.GRASS.getLootTableId();
|
||||
|
||||
private static void modifyLootTables() {
|
||||
LootTableLoadingCallback.EVENT.register(((resourceManager, manager, id, supplier, setter) -> {
|
||||
LootTableEvents.MODIFY.register(((resourceManager, manager, id, tableBuilder, source) -> {
|
||||
|
||||
if (GRASS_LOOT_TABLE_ID.equals(id)) {
|
||||
FabricLootPoolBuilder weemSeed = FabricLootPoolBuilder.builder()
|
||||
.rolls(ConstantLootNumberProvider.create(1))
|
||||
if (source.isBuiltin() && GRASS_LOOT_TABLE_ID.equals(id)) {
|
||||
LootPool.Builder poolBuilder = LootPool.builder()
|
||||
.with(ItemEntry.builder(weemItems.WEEM_SEEDS))
|
||||
.withFunction(SetCountLootFunction.builder(ConstantLootNumberProvider.create(1.0f)).build())
|
||||
.conditionally(RandomChanceLootCondition.builder(0.04f));
|
||||
supplier.withPool(weemSeed.build());
|
||||
|
||||
.conditionally(RandomChanceLootCondition.builder(0.0123132f));;
|
||||
|
||||
tableBuilder.pool(poolBuilder);
|
||||
}
|
||||
|
||||
|
||||
// if (GRASS_LOOT_TABLE_ID.equals(id)) {
|
||||
// FabricLootPoolBuilder weemSeed = FabricLootPoolBuilder.builder()
|
||||
// .rolls(ConstantLootNumberProvider.create(1))
|
||||
// .with(ItemEntry.builder(weemItems.WEEM_SEEDS))
|
||||
// .withFunction(SetCountLootFunction.builder(ConstantLootNumberProvider.create(1.0f)).build())
|
||||
// .conditionally(RandomChanceLootCondition.builder(0.0123132f));
|
||||
// supplier.withPool(weemSeed.build());
|
||||
|
||||
// }
|
||||
|
||||
}));
|
||||
}
|
||||
|
||||
public static void register() {
|
||||
modifyLootTables();
|
||||
|
||||
gamermod.LOGGER.info("grassVanillaWeem loaded");
|
||||
gameritems.LOGGER.info("grassVanillaWeem loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package net.arcmods.ryantlg.mixin;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.minecraft.client.gui.screen.TitleScreen;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
@@ -11,6 +11,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
public class GamerMixin {
|
||||
@Inject(at = @At("HEAD"), method = "init()V")
|
||||
private void init(CallbackInfo info) {
|
||||
gamermod.LOGGER.info("what a gamer");
|
||||
gameritems.LOGGER.info("what a gamer");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,15 +6,15 @@ import net.minecraft.util.registry.Registry;
|
||||
|
||||
public class sounds {
|
||||
|
||||
public static final Identifier SNIFF = new Identifier("gamermod:sniff");
|
||||
public static final Identifier SNIFF = new Identifier("gameritems:sniff");
|
||||
public static SoundEvent SNIFF_SOUND_EVENT = new SoundEvent(SNIFF);
|
||||
public static final Identifier MATT = new Identifier("gamermod:matt");
|
||||
public static final Identifier MATT = new Identifier("gameritems:matt");
|
||||
public static SoundEvent MATT_SOUND_EVENT = new SoundEvent(MATT);
|
||||
public static final Identifier ELON = new Identifier("gamermod:elon");
|
||||
public static final Identifier ELON = new Identifier("gameritems:elon");
|
||||
public static SoundEvent ELON_SOUND_EVENT = new SoundEvent(ELON);
|
||||
|
||||
public static void register() {
|
||||
gamermod.LOGGER.info("Sounds Loaded");
|
||||
gameritems.LOGGER.info("Sounds Loaded");
|
||||
|
||||
Registry.register(Registry.SOUND_EVENT, sounds.SNIFF, SNIFF_SOUND_EVENT);
|
||||
Registry.register(Registry.SOUND_EVENT, sounds.MATT, MATT_SOUND_EVENT);
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
package net.arcmods.ryantlg.statusEffects;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.statusEffects.effectClasses.highStatusEffect;
|
||||
import net.arcmods.ryantlg.statusEffects.effectClasses.jeremydStatusEffect;
|
||||
import net.arcmods.ryantlg.statusEffects.effectClasses.stupidStatusEffect;
|
||||
//import net.arcmods.ryantlg.statusEffects.effectClasses.jeremydStatusEffect;
|
||||
import net.minecraft.entity.effect.StatusEffect;
|
||||
import net.minecraft.util.Identifier;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
@@ -10,15 +11,17 @@ import net.minecraft.util.registry.Registry;
|
||||
public class GamerEffects {
|
||||
|
||||
public static final StatusEffect HIGH = new highStatusEffect();
|
||||
public static final StatusEffect STUPID = new stupidStatusEffect();
|
||||
|
||||
public static final StatusEffect JEREMYD = new jeremydStatusEffect();
|
||||
//public static final StatusEffect JEREMYD = new jeremydStatusEffect();
|
||||
|
||||
public static void register() {
|
||||
Registry.register(Registry.STATUS_EFFECT, new Identifier("gamermod", "high"), HIGH);
|
||||
Registry.register(Registry.STATUS_EFFECT, new Identifier("gameritems", "high"), HIGH);
|
||||
Registry.register(Registry.STATUS_EFFECT, new Identifier("gameritems", "stupid"), STUPID);
|
||||
|
||||
Registry.register(Registry.STATUS_EFFECT, new Identifier("gamermod", "jeremyd"), JEREMYD);
|
||||
//Registry.register(Registry.STATUS_EFFECT, new Identifier("gameritems", "jeremyd"), JEREMYD);
|
||||
|
||||
gamermod.LOGGER.info("statusEffects Loaded");
|
||||
gameritems.LOGGER.info("statusEffects Loaded");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package net.arcmods.ryantlg.statusEffects.effectClasses;
|
||||
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.damage.DamageSource;
|
||||
//import net.minecraft.entity.damage.DamageSource;
|
||||
import net.minecraft.entity.effect.StatusEffect;
|
||||
import net.minecraft.entity.effect.StatusEffectCategory;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
@@ -22,13 +22,10 @@ public class highStatusEffect extends StatusEffect{
|
||||
@Override
|
||||
public void applyUpdateEffect(LivingEntity entity, int amplifier) {
|
||||
if (entity instanceof PlayerEntity) {
|
||||
((PlayerEntity) entity).addExperience(0 << amplifier);
|
||||
((PlayerEntity) entity).getFallSounds();
|
||||
((PlayerEntity) entity).disableShield(true);
|
||||
((PlayerEntity) entity).dismountVehicle();
|
||||
((PlayerEntity) entity).damage(DamageSource.FALL, (float) 0.01);
|
||||
((PlayerEntity) entity).heal(3 << amplifier);
|
||||
((PlayerEntity) entity).getFallSounds();
|
||||
((PlayerEntity) entity).heal(0 << amplifier);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package net.arcmods.ryantlg.statusEffects.effectClasses;
|
||||
|
||||
import net.arcmods.ryantlg.damageSources.stupidDamageSource;
|
||||
import net.minecraft.entity.LivingEntity;
|
||||
import net.minecraft.entity.effect.StatusEffect;
|
||||
import net.minecraft.entity.effect.StatusEffectCategory;
|
||||
|
||||
public class stupidStatusEffect extends StatusEffect {
|
||||
public stupidStatusEffect() {
|
||||
super(
|
||||
StatusEffectCategory.HARMFUL,
|
||||
0x6b3f7f
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canApplyUpdateEffect(int duration, int amplifier) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void applyUpdateEffect(LivingEntity entity, int amplifier) {
|
||||
|
||||
entity.damage(stupidDamageSource.STUPID, 1);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,4 +4,5 @@ crafting recipes
|
||||
advancements
|
||||
argentine
|
||||
geranine
|
||||
soulium
|
||||
soulium
|
||||
floute
|
||||
|
||||
36
src/main/java/net/arcmods/ryantlg/toolMaterials/notToolMaterial.java
Executable file
36
src/main/java/net/arcmods/ryantlg/toolMaterials/notToolMaterial.java
Executable file
@@ -0,0 +1,36 @@
|
||||
package net.arcmods.ryantlg.toolMaterials;
|
||||
|
||||
import net.arcmods.ryantlg.items.miscItems.fabricOfReality;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
|
||||
public class notToolMaterial implements ToolMaterial {
|
||||
|
||||
public static final notToolMaterial INSTANCE = new notToolMaterial();
|
||||
|
||||
@Override
|
||||
public int getDurability() {
|
||||
return 50000;
|
||||
}
|
||||
@Override
|
||||
public float getMiningSpeedMultiplier() {
|
||||
return 50.0F;
|
||||
}
|
||||
@Override
|
||||
public float getAttackDamage() {
|
||||
return 50.0F;
|
||||
}
|
||||
@Override
|
||||
public int getMiningLevel() {
|
||||
return 4;
|
||||
}
|
||||
@Override
|
||||
public int getEnchantability() {
|
||||
return 50;
|
||||
}
|
||||
@Override
|
||||
public Ingredient getRepairIngredient() {
|
||||
return Ingredient.ofItems(fabricOfReality.FABRIC_OF_REALITY);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.arcmods.ryantlg.toolMaterials;
|
||||
|
||||
import net.arcmods.ryantlg.items.metalItems.stupidiumMetals;
|
||||
import net.minecraft.item.ToolMaterial;
|
||||
import net.minecraft.recipe.Ingredient;
|
||||
|
||||
public class stupidiumToolMaterial implements ToolMaterial {
|
||||
|
||||
public static final stupidiumToolMaterial INSTANCE = new stupidiumToolMaterial();
|
||||
|
||||
@Override
|
||||
public int getDurability() {
|
||||
return 1530;
|
||||
}
|
||||
@Override
|
||||
public float getMiningSpeedMultiplier() {
|
||||
return 10.0F;
|
||||
}
|
||||
@Override
|
||||
public float getAttackDamage() {
|
||||
return 10.0F;
|
||||
}
|
||||
@Override
|
||||
public int getMiningLevel() {
|
||||
return 4;
|
||||
}
|
||||
@Override
|
||||
public int getEnchantability() {
|
||||
return 27;
|
||||
}
|
||||
@Override
|
||||
public Ingredient getRepairIngredient() {
|
||||
return Ingredient.ofItems(stupidiumMetals.STUPIDIUM);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.arcmods.ryantlg.utils;
|
||||
|
||||
import net.arcmods.ryantlg.items.bows.gamerBow;
|
||||
import net.minecraft.client.item.ModelPredicateProviderRegistry;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class bowModelPredicateProvider {
|
||||
|
||||
public static void registerBowModels() {
|
||||
registerBow(gamerBow.GAMER_BOW);
|
||||
}
|
||||
|
||||
private static void registerBow(Item bow) {
|
||||
ModelPredicateProviderRegistry.register(bow, new Identifier("pull"),
|
||||
(stack, world, entity, seed) -> {
|
||||
if (entity == null) {
|
||||
return 0.0f;
|
||||
}
|
||||
if (entity.getActiveItem() != stack) {
|
||||
return 0.0f;
|
||||
}
|
||||
return (float)(stack.getMaxUseTime() - entity.getItemUseTimeLeft()) / 20.0f;
|
||||
});
|
||||
|
||||
ModelPredicateProviderRegistry.register(bow, new Identifier("pulling"),
|
||||
(stack, world, entity, seed) -> entity != null && entity.isUsingItem()
|
||||
&& entity.getActiveItem() == stack ? 1.0f : 0.0f);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,48 +1,64 @@
|
||||
package net.arcmods.ryantlg.worldGeneration;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blocks.omniumBlocks;
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.omniumBlocks;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.decorator.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.SquarePlacementModifier;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import net.minecraft.world.gen.feature.OreConfiguredFeatures;
|
||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.PlacedFeature;
|
||||
import net.minecraft.world.gen.placementmodifier.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryEntry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class DeepslateOmniumOreGen {
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
/*private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
omniumBlocks.DEEPSLATE_OMNIUM_ORE.getDefaultState(),
|
||||
4)); // vein size
|
||||
4)); // vein size*/
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = new ConfiguredFeature(
|
||||
Feature.ORE, new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
omniumBlocks.DEEPSLATE_OMNIUM_ORE.getDefaultState(),
|
||||
4)); // vein size
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
/*public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
CountPlacementModifier.of(2), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(19))); // height
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(19))); // height*/
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = new PlacedFeature(
|
||||
RegistryEntry.of(ORE_CONFIGURED_FEATURE),
|
||||
Arrays.asList(
|
||||
CountPlacementModifier.of(2), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(19))
|
||||
)); // height
|
||||
|
||||
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE,
|
||||
new Identifier("gamermod", "deepslate_omnium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gamermod", "deepslate_omnium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gamermod", "deepslate_omnium_ore")));
|
||||
new Identifier("gameritems", "deepslate_omnium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gameritems", "deepslate_omnium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gameritems", "deepslate_omnium_ore")));
|
||||
|
||||
gamermod.LOGGER.info("DeepslateOmniumOreGen loaded");
|
||||
gameritems.LOGGER.info("DeepslateOmniumOreGen loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,48 +1,64 @@
|
||||
package net.arcmods.ryantlg.worldGeneration;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blocks.oriumBlocks;
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.oriumBlocks;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.decorator.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.SquarePlacementModifier;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import net.minecraft.world.gen.feature.OreConfiguredFeatures;
|
||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.PlacedFeature;
|
||||
import net.minecraft.world.gen.placementmodifier.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryEntry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class DeepslateOriumOreGen {
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
oriumBlocks.DEEPSLATE_ORIUM_ORE.getDefaultState(),
|
||||
5)); // vein size
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
CountPlacementModifier.of(5), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(35))); // height
|
||||
// private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
// OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
// oriumBlocks.DEEPSLATE_ORIUM_ORE.getDefaultState(),
|
||||
// 5)); // vein size
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = new ConfiguredFeature(
|
||||
Feature.ORE, new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
oriumBlocks.DEEPSLATE_ORIUM_ORE.getDefaultState(),
|
||||
5)); // vein size
|
||||
|
||||
// public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
// CountPlacementModifier.of(5), // number of veins per chunk
|
||||
// SquarePlacementModifier.of(), // spreading horizontally
|
||||
// HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(35))); // height
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = new PlacedFeature(
|
||||
RegistryEntry.of(ORE_CONFIGURED_FEATURE),
|
||||
Arrays.asList(
|
||||
CountPlacementModifier.of(5), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(35))
|
||||
)); // height
|
||||
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE,
|
||||
new Identifier("gamermod", "deepslate_orium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gamermod", "deepslate_orium_ore"),
|
||||
new Identifier("gameritems", "deepslate_orium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gameritems", "deepslate_orium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gamermod", "deepslate_orium_ore")));
|
||||
new Identifier("gameritems", "deepslate_orium_ore")));
|
||||
|
||||
gamermod.LOGGER.info("DeepslateOriumOreGen loaded");
|
||||
gameritems.LOGGER.info("DeepslateOriumOreGen loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,49 +1,63 @@
|
||||
package net.arcmods.ryantlg.worldGeneration;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blocks.jeremiumBlocks;
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.jeremiumBlocks;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.decorator.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.SquarePlacementModifier;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import net.minecraft.world.gen.feature.OreConfiguredFeatures;
|
||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.PlacedFeature;
|
||||
import net.minecraft.world.gen.placementmodifier.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryEntry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class JeremiumOreGen {
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
jeremiumBlocks.DEEPSLATE_JEREMIUM_ORE.getDefaultState(),
|
||||
3)); // vein size
|
||||
// private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
// OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
// jeremiumBlocks.DEEPSLATE_JEREMIUM_ORE.getDefaultState(),
|
||||
// 3)); // vein size
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = new ConfiguredFeature(
|
||||
Feature.ORE, new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
jeremiumBlocks.DEEPSLATE_JEREMIUM_ORE.getDefaultState(),
|
||||
3)); // vein size
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
CountPlacementModifier.of(1), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(-4))); // height
|
||||
|
||||
|
||||
// public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
// CountPlacementModifier.of(1), // number of veins per chunk
|
||||
// SquarePlacementModifier.of(), // spreading horizontally
|
||||
// HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(-4))); // height
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = new PlacedFeature(
|
||||
RegistryEntry.of(ORE_CONFIGURED_FEATURE),
|
||||
Arrays.asList(
|
||||
CountPlacementModifier.of(1), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(-4))
|
||||
)); // height
|
||||
|
||||
public static void register() {
|
||||
|
||||
|
||||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE,
|
||||
new Identifier("gamermod", "deepslate_jeremium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gamermod", "deepslate_jeremium_ore"),
|
||||
new Identifier("gameritems", "deepslate_jeremium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gameritems", "deepslate_jeremium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gamermod", "deepslate_jeremium_ore")));
|
||||
new Identifier("gameritems", "deepslate_jeremium_ore")));
|
||||
|
||||
gamermod.LOGGER.info("JeremiumOreGen loaded");
|
||||
gameritems.LOGGER.info("JeremiumOreGen loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,48 +1,64 @@
|
||||
package net.arcmods.ryantlg.worldGeneration;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blocks.omniumBlocks;
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.omniumBlocks;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.decorator.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.SquarePlacementModifier;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import net.minecraft.world.gen.feature.OreConfiguredFeatures;
|
||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.PlacedFeature;
|
||||
import net.minecraft.world.gen.placementmodifier.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryEntry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class OmniumOreGen {
|
||||
|
||||
private static ConfiguredFeature<?, ?> OMNIUM_ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
OreConfiguredFeatures.STONE_ORE_REPLACEABLES,
|
||||
omniumBlocks.OMNIUM_ORE.getDefaultState(),
|
||||
4)); // vein size
|
||||
// private static ConfiguredFeature<?, ?> OMNIUM_ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
// OreConfiguredFeatures.STONE_ORE_REPLACEABLES,
|
||||
// omniumBlocks.OMNIUM_ORE.getDefaultState(),
|
||||
// 4)); // vein size
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = new ConfiguredFeature(
|
||||
Feature.ORE, new OreFeatureConfig(
|
||||
OreConfiguredFeatures.STONE_ORE_REPLACEABLES,
|
||||
omniumBlocks.OMNIUM_ORE.getDefaultState(),
|
||||
4)); // vein size
|
||||
|
||||
public static PlacedFeature OMNIUM_ORE_PLACED_FEATURE = OMNIUM_ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
CountPlacementModifier.of(2), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(19))); // height
|
||||
// public static PlacedFeature OMNIUM_ORE_PLACED_FEATURE = OMNIUM_ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
// CountPlacementModifier.of(2), // number of veins per chunk
|
||||
// SquarePlacementModifier.of(), // spreading horizontally
|
||||
// HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(19))); // height
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = new PlacedFeature(
|
||||
RegistryEntry.of(ORE_CONFIGURED_FEATURE),
|
||||
Arrays.asList(
|
||||
CountPlacementModifier.of(2), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(19))
|
||||
)); // height
|
||||
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE,
|
||||
new Identifier("gamermod", "omnium_ore"), OMNIUM_ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gamermod", "omnium_ore"),
|
||||
OMNIUM_ORE_PLACED_FEATURE);
|
||||
new Identifier("gameritems", "omnium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gameritems", "omnium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gamermod", "omnium_ore")));
|
||||
new Identifier("gameritems", "omnium_ore")));
|
||||
|
||||
gamermod.LOGGER.info("OmniumOreGen loaded");
|
||||
gameritems.LOGGER.info("OmniumOreGen loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,48 +1,63 @@
|
||||
package net.arcmods.ryantlg.worldGeneration;
|
||||
|
||||
import net.arcmods.ryantlg.gamermod;
|
||||
import net.arcmods.ryantlg.blocks.oriumBlocks;
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.oriumBlocks;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.decorator.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.decorator.SquarePlacementModifier;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import net.minecraft.world.gen.feature.OreConfiguredFeatures;
|
||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.PlacedFeature;
|
||||
import net.minecraft.world.gen.placementmodifier.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryEntry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class OriumOreGen {
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORIUM_ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
OreConfiguredFeatures.STONE_ORE_REPLACEABLES,
|
||||
oriumBlocks.ORIUM_ORE.getDefaultState(),
|
||||
5)); // vein size
|
||||
// private static ConfiguredFeature<?, ?> ORIUM_ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
// OreConfiguredFeatures.STONE_ORE_REPLACEABLES,
|
||||
// oriumBlocks.ORIUM_ORE.getDefaultState(),
|
||||
// 5)); // vein size
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = new ConfiguredFeature(
|
||||
Feature.ORE, new OreFeatureConfig(
|
||||
OreConfiguredFeatures.STONE_ORE_REPLACEABLES,
|
||||
oriumBlocks.ORIUM_ORE.getDefaultState(),
|
||||
5)); // vein size
|
||||
|
||||
public static PlacedFeature ORIUM_ORE_PLACED_FEATURE = ORIUM_ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
CountPlacementModifier.of(5), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(35))); // height
|
||||
|
||||
|
||||
// public static PlacedFeature ORIUM_ORE_PLACED_FEATURE = ORIUM_ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
// CountPlacementModifier.of(5), // number of veins per chunk
|
||||
// SquarePlacementModifier.of(), // spreading horizontally
|
||||
// HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(35))); // height
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = new PlacedFeature(
|
||||
RegistryEntry.of(ORE_CONFIGURED_FEATURE),
|
||||
Arrays.asList(
|
||||
CountPlacementModifier.of(5), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(35))
|
||||
)); // height
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE,
|
||||
new Identifier("gamermod", "orium_ore"), ORIUM_ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gamermod", "orium_ore"),
|
||||
ORIUM_ORE_PLACED_FEATURE);
|
||||
new Identifier("gameritems", "orium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gameritems", "orium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gamermod", "orium_ore")));
|
||||
new Identifier("gameritems", "orium_ore")));
|
||||
|
||||
gamermod.LOGGER.info("OriumOreGen loaded");
|
||||
gameritems.LOGGER.info("OriumOreGen loaded");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
package net.arcmods.ryantlg.worldGeneration;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import net.arcmods.ryantlg.gameritems;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.jeremiumBlocks;
|
||||
import net.arcmods.ryantlg.blocks.metalBlocks.stupidiumBlocks;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeModifications;
|
||||
import net.fabricmc.fabric.api.biome.v1.BiomeSelectors;
|
||||
import net.minecraft.util.registry.RegistryKey;
|
||||
import net.minecraft.world.gen.YOffset;
|
||||
import net.minecraft.world.gen.GenerationStep;
|
||||
import net.minecraft.world.gen.feature.ConfiguredFeature;
|
||||
import net.minecraft.world.gen.feature.Feature;
|
||||
import net.minecraft.world.gen.feature.OreConfiguredFeatures;
|
||||
import net.minecraft.world.gen.feature.OreFeatureConfig;
|
||||
import net.minecraft.world.gen.feature.PlacedFeature;
|
||||
import net.minecraft.world.gen.placementmodifier.CountPlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.HeightRangePlacementModifier;
|
||||
import net.minecraft.world.gen.placementmodifier.SquarePlacementModifier;
|
||||
import net.minecraft.util.registry.BuiltinRegistries;
|
||||
import net.minecraft.util.registry.Registry;
|
||||
import net.minecraft.util.registry.RegistryEntry;
|
||||
import net.minecraft.util.Identifier;
|
||||
|
||||
public class StupidiumOreGen {
|
||||
|
||||
// private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = Feature.ORE.configure(new OreFeatureConfig(
|
||||
// OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
// jeremiumBlocks.DEEPSLATE_JEREMIUM_ORE.getDefaultState(),
|
||||
// 3)); // vein size
|
||||
|
||||
private static ConfiguredFeature<?, ?> ORE_CONFIGURED_FEATURE = new ConfiguredFeature(
|
||||
Feature.ORE, new OreFeatureConfig(
|
||||
OreConfiguredFeatures.DEEPSLATE_ORE_REPLACEABLES,
|
||||
stupidiumBlocks.DEEPSLATE_STUPIDIUM_ORE.getDefaultState(),
|
||||
2)); // vein size
|
||||
|
||||
// public static PlacedFeature ORE_PLACED_FEATURE = ORE_CONFIGURED_FEATURE.withPlacement(
|
||||
// CountPlacementModifier.of(1), // number of veins per chunk
|
||||
// SquarePlacementModifier.of(), // spreading horizontally
|
||||
// HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(-4))); // height
|
||||
|
||||
public static PlacedFeature ORE_PLACED_FEATURE = new PlacedFeature(
|
||||
RegistryEntry.of(ORE_CONFIGURED_FEATURE),
|
||||
Arrays.asList(
|
||||
CountPlacementModifier.of(1), // number of veins per chunk
|
||||
SquarePlacementModifier.of(), // spreading horizontally
|
||||
HeightRangePlacementModifier.uniform(YOffset.getBottom(), YOffset.fixed(-20))
|
||||
)); // height
|
||||
|
||||
public static void register() {
|
||||
|
||||
Registry.register(BuiltinRegistries.CONFIGURED_FEATURE,
|
||||
new Identifier("gameritems", "deepslate_stupidium_ore"), ORE_CONFIGURED_FEATURE);
|
||||
Registry.register(BuiltinRegistries.PLACED_FEATURE, new Identifier("gameritems", "deepslate_stupidium_ore"),
|
||||
ORE_PLACED_FEATURE);
|
||||
BiomeModifications.addFeature(BiomeSelectors.foundInOverworld(), GenerationStep.Feature.UNDERGROUND_ORES,
|
||||
RegistryKey.of(Registry.PLACED_FEATURE_KEY,
|
||||
new Identifier("gameritems", "deepslate_stupidium_ore")));
|
||||
|
||||
gameritems.LOGGER.info("StupidiumOreGen loaded");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/deepslate_jeremium_ore" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/deepslate_omnium_ore" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/deepslate_orium_ore" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/deepslate_stupidium_ore" }
|
||||
}
|
||||
}
|
||||
5
src/main/resources/assets/gameritems/blockstates/elon_musk.json
Executable file
5
src/main/resources/assets/gameritems/blockstates/elon_musk.json
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/elon_musk" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/jeremium_block" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/jeremium_ore" }
|
||||
}
|
||||
}
|
||||
5
src/main/resources/assets/gameritems/blockstates/matt_damon.json
Executable file
5
src/main/resources/assets/gameritems/blockstates/matt_damon.json
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/matt_damon" }
|
||||
}
|
||||
}
|
||||
5
src/main/resources/assets/gameritems/blockstates/omnium_block.json
Executable file
5
src/main/resources/assets/gameritems/blockstates/omnium_block.json
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/omnium_block" }
|
||||
}
|
||||
}
|
||||
5
src/main/resources/assets/gameritems/blockstates/omnium_ore.json
Executable file
5
src/main/resources/assets/gameritems/blockstates/omnium_ore.json
Executable file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/omnium_ore" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/orium_block" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/orium_ore" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/stupidium_block" }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"variants": {
|
||||
"": { "model": "gameritems:block/stupidium_ore" }
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user