I'm schizo
@ -99,6 +99,7 @@ fun addItemModels(provider: MatteryItemModelProvider) {
|
||||
provider.resource(MItems.TRITANIUM_ORE_CLUMP)
|
||||
|
||||
provider.resource(MItems.DILITHIUM_CRYSTAL)
|
||||
provider.resource(MItems.WITHERED_STEEL)
|
||||
|
||||
provider.generated(MItems.EXOPACK_PROBE)
|
||||
|
||||
|
@ -772,6 +772,8 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.TRITANIUM_SHEARS, "Tritanium Shears")
|
||||
add(MItems.TRITANIUM_SHIELD, "Tritanium Shield")
|
||||
|
||||
add(MItems.WITHERED_STEEL_SWORD, "Withered Steel Sword")
|
||||
|
||||
add(MItems.TRITANIUM_HELMET, "Tritanium Helmet")
|
||||
add(MItems.TRITANIUM_CHESTPLATE, "Tritanium Chestplate")
|
||||
add(MItems.TRITANIUM_PANTS, "Tritanium Leggings")
|
||||
@ -785,6 +787,7 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.TRITANIUM_DUST, "Tritanium Dust")
|
||||
add(MItems.TRITANIUM_INGOT, "Tritanium Ingot")
|
||||
add(MItems.DILITHIUM_CRYSTAL, "Dilithium Crystal")
|
||||
add(MItems.WITHERED_STEEL, "Withered Steel Ingot")
|
||||
add(MItems.TRITANIUM_NUGGET, "Tritanium Nugget")
|
||||
add(MItems.MATTER_IO_PORT, "Matter IO Port")
|
||||
add(MItems.MATTER_TRANSFORM_MATRIX, "Matter Transformation Matrix")
|
||||
@ -911,6 +914,7 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.CHEST_UPGRADER, "desc2", "Hold desired crates in the opposite hand")
|
||||
|
||||
add(MItems.BREAD_MONSTER_SPAWN_EGG, "Bread Monster Spawn Egg")
|
||||
add(MEntityTypes.BREAD_MONSTER, "Bread Monster")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -765,6 +765,8 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.TRITANIUM_SHEARS, "Тритановые ножницы")
|
||||
add(MItems.TRITANIUM_SHIELD, "Тритановый щит")
|
||||
|
||||
add(MItems.WITHERED_STEEL_SWORD, "Меч из иссушенной стали")
|
||||
|
||||
add(MItems.TRITANIUM_HELMET, "Тритановый шлем")
|
||||
add(MItems.TRITANIUM_CHESTPLATE, "Тритановый нагрудник")
|
||||
add(MItems.TRITANIUM_PANTS, "Тритановые поножи")
|
||||
@ -778,6 +780,7 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.TRITANIUM_DUST, "Тритановая пыль")
|
||||
add(MItems.TRITANIUM_INGOT, "Тритановый слиток")
|
||||
add(MItems.DILITHIUM_CRYSTAL, "Дилитевый кристалл")
|
||||
add(MItems.WITHERED_STEEL, "Слиток иссушенной стали")
|
||||
add(MItems.TRITANIUM_NUGGET, "Тритановый самородок")
|
||||
add(MItems.MATTER_IO_PORT, "Порт ввода/вывода материи")
|
||||
add(MItems.MATTER_TRANSFORM_MATRIX, "Матрица преобразования материи")
|
||||
@ -902,6 +905,9 @@ private fun items(provider: MatteryLanguageProvider) {
|
||||
add(MItems.CHEST_UPGRADER, "Ящикатор")
|
||||
add(MItems.CHEST_UPGRADER, "desc", "Заменяет установленные сундуки и бочки грузовыми ящиками с сохранением содержимого")
|
||||
add(MItems.CHEST_UPGRADER, "desc2", "Удерживайте необходимые ящики в противоположной руке")
|
||||
|
||||
add(MItems.BREAD_MONSTER_SPAWN_EGG, "Яйцо призыва хлебного монстра")
|
||||
add(MEntityTypes.BREAD_MONSTER, "Хлебный монстр")
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -204,6 +204,16 @@ fun addLootModifiers(it: LootModifiers) {
|
||||
ItemStack(MItems.EXOPACK_PROBE)
|
||||
))
|
||||
|
||||
it.add("withered_skeleton_steel_drop", PlainLootAppender(
|
||||
arrayOf(
|
||||
LootTableIdCondition(EntityType.WITHER_SKELETON.defaultLootTable),
|
||||
KilledByRealPlayerOrIndirectly
|
||||
),
|
||||
|
||||
ItemStack(MItems.WITHERED_STEEL, 1) to 0.24,
|
||||
ItemStack(MItems.WITHERED_STEEL, 2) to 0.11
|
||||
))
|
||||
|
||||
it.add("wither_exosuit_upgrades", BasicLootAppender(
|
||||
arrayOf(
|
||||
LootTableIdCondition(EntityType.WITHER.defaultLootTable),
|
||||
|
@ -120,12 +120,14 @@ fun addMultiblockRecipes(consumer: RecipeOutput) {
|
||||
.row(MItemTags.IRON_PLATES, Tags.Items.INGOTS_IRON, MItemTags.IRON_PLATES)
|
||||
.rowAC(Tags.Items.INGOTS_IRON, Tags.Items.INGOTS_IRON)
|
||||
.row(MItemTags.IRON_PLATES, Tags.Items.INGOTS_IRON, MItemTags.IRON_PLATES)
|
||||
.unlockedBy(MItemTags.IRON_PLATES)
|
||||
.build(consumer)
|
||||
|
||||
MatteryRecipe(MItems.HEAVY_MODULAR_FRAME, count = 2, category = machinesCategory)
|
||||
.rowB(MItems.REINFORCED_IRON_PLATE)
|
||||
.row(MItems.WITHERED_STEEL, MItems.REINFORCED_IRON_PLATE, MItems.WITHERED_STEEL,)
|
||||
.row(MItems.REINFORCED_IRON_PLATE, MItems.MODULAR_FRAME, MItems.REINFORCED_IRON_PLATE)
|
||||
.rowB(MItems.REINFORCED_IRON_PLATE)
|
||||
.row(MItems.WITHERED_STEEL, MItems.REINFORCED_IRON_PLATE, MItems.WITHERED_STEEL,)
|
||||
.unlockedBy(MItems.MODULAR_FRAME)
|
||||
.build(consumer)
|
||||
|
||||
// blackhole generator
|
||||
|
@ -58,4 +58,11 @@ fun addToolsRecipes(consumer: RecipeOutput) {
|
||||
.rowB(Tags.Items.RODS_WOODEN)
|
||||
.unlockedBy(MItemTags.TRITANIUM_INGOTS)
|
||||
.build(consumer)
|
||||
|
||||
MatteryRecipe(MItems.WITHERED_STEEL_SWORD, category = RecipeCategory.COMBAT)
|
||||
.rowB(MItems.WITHERED_STEEL)
|
||||
.rowB(MItems.WITHERED_STEEL)
|
||||
.rowB(Tags.Items.RODS_WOODEN)
|
||||
.unlockedBy(MItems.WITHERED_STEEL)
|
||||
.build(consumer)
|
||||
}
|
||||
|
@ -0,0 +1,53 @@
|
||||
package ru.dbotthepony.mc.otm.item.weapon
|
||||
|
||||
import net.minecraft.world.effect.MobEffectInstance
|
||||
import net.minecraft.world.effect.MobEffects
|
||||
import net.minecraft.world.entity.EquipmentSlotGroup
|
||||
import net.minecraft.world.entity.LivingEntity
|
||||
import net.minecraft.world.entity.ai.attributes.AttributeModifier
|
||||
import net.minecraft.world.entity.ai.attributes.Attributes
|
||||
import net.minecraft.world.item.Item
|
||||
import net.minecraft.world.item.ItemStack
|
||||
import net.minecraft.world.item.SwordItem
|
||||
import net.minecraft.world.item.Tiers
|
||||
import net.minecraft.world.item.component.ItemAttributeModifiers
|
||||
import ru.dbotthepony.mc.otm.registry.game.MItems
|
||||
|
||||
class WitheredSteelSwordItem(properties: Item.Properties) : SwordItem(Tiers.IRON, properties){
|
||||
private val attributes: ItemAttributeModifiers
|
||||
|
||||
init {
|
||||
var builder = ItemAttributeModifiers.builder()
|
||||
builder.add(Attributes.ATTACK_DAMAGE, AttributeModifier(BASE_ATTACK_DAMAGE_ID, 4.5, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND)
|
||||
builder.add(Attributes.ATTACK_SPEED, AttributeModifier(BASE_ATTACK_SPEED_ID, -2.4, AttributeModifier.Operation.ADD_VALUE), EquipmentSlotGroup.MAINHAND)
|
||||
|
||||
attributes = builder.build()
|
||||
}
|
||||
|
||||
override fun getMaxDamage(stack: ItemStack): Int {
|
||||
return 420
|
||||
}
|
||||
|
||||
override fun isEnchantable(p_41456_: ItemStack): Boolean {
|
||||
return p_41456_.count == 1
|
||||
}
|
||||
|
||||
override fun getEnchantmentValue(stack: ItemStack): Int {
|
||||
return 10
|
||||
}
|
||||
|
||||
override fun isValidRepairItem(stack: ItemStack, ingredient: ItemStack): Boolean {
|
||||
return ingredient.`is`(MItems.WITHERED_STEEL)
|
||||
}
|
||||
|
||||
override fun hurtEnemy(stack: ItemStack, target: LivingEntity, attacker: LivingEntity): Boolean {
|
||||
target.addEffect(MobEffectInstance(MobEffects.WITHER, 100, 0)) // 5s Wither II
|
||||
return super.hurtEnemy(stack, target, attacker)
|
||||
}
|
||||
|
||||
override fun getDefaultAttributeModifiers(stack: ItemStack): ItemAttributeModifiers {
|
||||
return attributes
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -115,6 +115,9 @@ object MNames {
|
||||
const val VENT = "vent"
|
||||
const val VENT_ALTERNATIVE = "vent_alternative"
|
||||
|
||||
const val TRITANIUM_BARS = "tritanium_bars"
|
||||
const val METAL_RAILING = "metal_railing"
|
||||
|
||||
// items
|
||||
const val GRAVITATIONAL_DISRUPTOR = "gravitational_disruptor"
|
||||
const val MATTER_DUST = "matter_dust"
|
||||
@ -191,6 +194,8 @@ object MNames {
|
||||
|
||||
const val CHEST_UPGRADER = "chest_upgrader"
|
||||
|
||||
const val WITHERED_STEEL_SWORD = "withered_steel_sword"
|
||||
|
||||
// eg
|
||||
const val BREAD_MONSTER_SPAWN_EGG = "bead_monster_spawn_egg"
|
||||
|
||||
@ -199,8 +204,8 @@ object MNames {
|
||||
const val TRITANIUM_NUGGET = "tritanium_nugget"
|
||||
const val TRITANIUM_INGOT = "tritanium_ingot"
|
||||
const val TRITANIUM_INGOT_BLOCK = "tritanium_ingot_block"
|
||||
const val TRITANIUM_BARS = "tritanium_bars"
|
||||
const val METAL_RAILING = "metal_railing"
|
||||
|
||||
const val WITHERED_STEEL = "withered_steel"
|
||||
|
||||
const val MATTER_IO_PORT = "matter_io_port"
|
||||
|
||||
|
@ -236,11 +236,15 @@ private fun addMainCreativeTabItems(consumer: CreativeModeTab.Output) {
|
||||
accept(MItems.DILITHIUM_CRYSTAL)
|
||||
accept(MItems.DILITHIUM_CRYSTAL_BLOCK)
|
||||
|
||||
accept(MItems.WITHERED_STEEL)
|
||||
|
||||
accept(MItems.TRITANIUM_TOOLS)
|
||||
accept(MItems.TRITANIUM_SHIELD)
|
||||
accept(MItems.SIMPLE_TRITANIUM_ARMOR)
|
||||
accept(MItems.TRITANIUM_ARMOR)
|
||||
|
||||
accept(MItems.WITHERED_STEEL_SWORD)
|
||||
|
||||
energized(MItems.ENERGY_SWORD)
|
||||
|
||||
accept(MItems.REDSTONE_INTERACTOR)
|
||||
|
@ -75,6 +75,7 @@ import ru.dbotthepony.mc.otm.item.tool.ExplosiveHammerItem
|
||||
import ru.dbotthepony.mc.otm.item.tool.MatteryAxeItem
|
||||
import ru.dbotthepony.mc.otm.item.tool.RedstoneInteractorItem
|
||||
import ru.dbotthepony.mc.otm.item.weapon.EnergySwordItem
|
||||
import ru.dbotthepony.mc.otm.item.weapon.WitheredSteelSwordItem
|
||||
import ru.dbotthepony.mc.otm.registry.MDeferredRegister
|
||||
import ru.dbotthepony.mc.otm.registry.MItemTags
|
||||
import ru.dbotthepony.mc.otm.registry.MNames
|
||||
@ -303,6 +304,8 @@ object MItems {
|
||||
val TRITANIUM_BARS: BlockItem by registry.register(MNames.TRITANIUM_BARS) { BlockItem(MBlocks.TRITANIUM_BARS, DEFAULT_PROPERTIES) }
|
||||
val METAL_RAILING: BlockItem by registry.register(MNames.METAL_RAILING) { BlockItem(MBlocks.METAL_RAILING, DEFAULT_PROPERTIES) }
|
||||
|
||||
val WITHERED_STEEL: Item by registry.register(MNames.WITHERED_STEEL) { Item(DEFAULT_PROPERTIES) }
|
||||
|
||||
val DILITHIUM_CRYSTAL by registry.register("dilithium_crystal") { MatteryItem(DEFAULT_PROPERTIES) }
|
||||
val DILITHIUM_ORE by registry.register("dilithium_ore") { BlockItem(MBlocks.DILITHIUM_ORE, DEFAULT_PROPERTIES) }
|
||||
val DEEPSLATE_DILITHIUM_ORE by registry.register("deepslate_dilithium_ore") { BlockItem(MBlocks.DEEPSLATE_DILITHIUM_ORE, DEFAULT_PROPERTIES) }
|
||||
@ -405,6 +408,8 @@ object MItems {
|
||||
|
||||
val ENERGY_SWORD: Item by registry.register(MNames.ENERGY_SWORD) { EnergySwordItem() }
|
||||
|
||||
val WITHERED_STEEL_SWORD: Item by registry.register(MNames.WITHERED_STEEL_SWORD) { WitheredSteelSwordItem(Item.Properties().durability(420)) }
|
||||
|
||||
val BLACK_HOLE_SCANNER: Item by registry.register(MNames.BLACK_HOLE_SCANNER) { MatteryItem(DEFAULT_PROPERTIES).addSimpleDescription().addSimpleDescription("2") }
|
||||
|
||||
val GRAVITATION_FIELD_LIMITER: Item by registry.register(MNames.GRAVITATION_FIELD_LIMITER) { Item(DEFAULT_PROPERTIES) }
|
||||
|
@ -17,8 +17,8 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"from": [15.99995, 15.99995, 15.99995],
|
||||
"to": [0.00005, 0.00005, 0.00005],
|
||||
"from": [15.9999, 15.9999, 15.9999],
|
||||
"to": [0.0001, 0.0001, 0.0001],
|
||||
"rotation": {"angle": 0, "axis": "y", "origin": [16, 16, 16]},
|
||||
"faces": {
|
||||
"north": {"uv": [0, 0, 16, 16], "texture": "#texture", "cullface": "south"},
|
||||
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"loader": "neoforge:separate_transforms",
|
||||
"gui_light": "front",
|
||||
"base":
|
||||
{
|
||||
"parent": "overdrive_that_matters:item/withered_steel_sword_handheld"
|
||||
},
|
||||
"perspectives": {
|
||||
"gui": {
|
||||
"parent": "overdrive_that_matters:item/withered_steel_sword_inventory"
|
||||
},
|
||||
"fixed": {
|
||||
"parent": "overdrive_that_matters:item/withered_steel_sword_inventory"
|
||||
},
|
||||
"ground": {
|
||||
"parent": "overdrive_that_matters:item/withered_steel_sword_inventory"
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "minecraft:item/handheld",
|
||||
"textures": {
|
||||
"layer0": "overdrive_that_matters:item/withered_steel_sword_handheld"
|
||||
},
|
||||
"display": {
|
||||
"thirdperson_righthand": {
|
||||
"rotation": [0, -90, 55],
|
||||
"translation": [0, 4, 0.5],
|
||||
"scale": [0.85, 0.85, 0.85]
|
||||
},
|
||||
"thirdperson_lefthand": {
|
||||
"rotation": [0, 90, -55],
|
||||
"translation": [0, 4, 0.5],
|
||||
"scale": [0.85, 0.85, 0.85]
|
||||
},
|
||||
"firstperson_righthand": {
|
||||
"rotation": [0, -90, 25],
|
||||
"translation": [1.13, 3.2, 1.13],
|
||||
"scale": [0.68, 0.68, 0.68]
|
||||
},
|
||||
"firstperson_lefthand": {
|
||||
"rotation": [0, 90, -25],
|
||||
"translation": [1.13, 3.2, 1.13],
|
||||
"scale": [0.68, 0.68, 0.68]
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,7 @@
|
||||
{
|
||||
"credit": "Made with Blockbench",
|
||||
"parent": "minecraft:item/generated",
|
||||
"textures": {
|
||||
"layer0": "overdrive_that_matters:item/withered_steel_sword"
|
||||
}
|
||||
}
|
Before Width: | Height: | Size: 491 B After Width: | Height: | Size: 491 B |
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 251 B |
After Width: | Height: | Size: 504 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 494 B |
@ -0,0 +1,6 @@
|
||||
{
|
||||
"parent": "bettercombat:sword",
|
||||
"attributes": {
|
||||
"attack_range": 2
|
||||
}
|
||||
}
|