Skip to content

Commit

Permalink
update to Minecraft 1.21.1, NeoForge 21.1.47
Browse files Browse the repository at this point in the history
  • Loading branch information
luxtracon committed Sep 19, 2024
1 parent d20431b commit c5231c0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 9 deletions.
14 changes: 7 additions & 7 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ neogradle.subsystems.parchment.mappingsVersion=2024.07.28
# Environment Properties
# You can find the latest versions here: https://projects.neoforged.net/neoforged/neoforge
# The Minecraft version must agree with the Neo version to get a valid artifact
minecraft_version=1.21
minecraft_version=1.21.1
# The Minecraft version range can use any release version of Minecraft as bounds.
# Snapshots, pre-releases, and release candidates are not guaranteed to sort properly
# as they do not follow standard versioning conventions.
minecraft_version_range=[1.21,1.21.1)
minecraft_version_range=[1.21.1,1.21.2)
# The Neo version must agree with the Minecraft version to get a valid artifact
neo_version=21.0.167
neo_version=21.1.47
# The Neo version range can use any version of Neo as bounds
neo_version_range=[21.0.167,)
neo_version_range=[21.1.47,)
# The loader version range can only use the major version of FML as bounds
loader_version_range=[4,)

## Dep Properties

# Jade version
jade_version=5591256
jade_version=5706149
# JEI version
jei_version=5733193
jei_version=5734274

## Mod Properties

Expand All @@ -39,7 +39,7 @@ mod_name=Lands of Icaria
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=Custom License
# The mod version. See https://semver.org/
mod_version=1.21-2.2.4.0-beta
mod_version=1.21.1-2.3.0.0-beta
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"values": [
"landsoficaria:onion",
"landsoficaria:spelt_seeds",
"landsoficaria:strawberry_seeds",
"landsoficaria:physalis_seeds"
]
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.axanthic.icaria.client.renderer;

import com.axanthic.icaria.common.entity.IcariaChestBlockEntity;
import com.axanthic.icaria.common.entity.IcariaTrappedChestBlockEntity;
import com.axanthic.icaria.common.item.IcariaChestItem;
import com.axanthic.icaria.common.registry.IcariaBlocks;

import com.mojang.blaze3d.vertex.PoseStack;

Expand All @@ -28,8 +30,14 @@ public IcariaChestItemRenderer(BlockEntityRenderDispatcher pBlockEntityRenderDis
@Override
public void renderByItem(ItemStack pStack, ItemDisplayContext pDisplayContext, PoseStack pPoseStack, MultiBufferSource pBuffer, int pPackedLight, int pPackedOverlay) {
if (pStack.getItem() instanceof IcariaChestItem chestItem) {
var entity = new IcariaChestBlockEntity(BlockPos.ZERO, chestItem.getBlock().defaultBlockState());
Minecraft.getInstance().getBlockEntityRenderDispatcher().renderItem(entity, pPoseStack, pBuffer, pPackedLight, pPackedOverlay);
var state = chestItem.getBlock().defaultBlockState();
if (state.is(IcariaBlocks.CHEST.get())) {
var entity = new IcariaChestBlockEntity(BlockPos.ZERO, state);
Minecraft.getInstance().getBlockEntityRenderDispatcher().renderItem(entity, pPoseStack, pBuffer, pPackedLight, pPackedOverlay);
} else if (state.is(IcariaBlocks.TRAPPED_CHEST.get())) {
var entity = new IcariaTrappedChestBlockEntity(BlockPos.ZERO, state);
Minecraft.getInstance().getBlockEntityRenderDispatcher().renderItem(entity, pPoseStack, pBuffer, pPackedLight, pPackedOverlay);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,12 @@ public void addTags(HolderLookup.Provider pProvider) {
.add(IcariaItems.SIDEROS_TOOLS.shovel.get())
.add(IcariaItems.MOLYBDENUMSTEEL_TOOLS.shovel.get());

this.tag(ItemTags.VILLAGER_PLANTABLE_SEEDS)
.add(IcariaItems.ONION.get())
.add(IcariaItems.SPELT_SEEDS.get())
.add(IcariaItems.STRAWBERRY_SEEDS.get())
.add(IcariaItems.PHYSALIS_SEEDS.get());

this.tag(ItemTags.SWORD_ENCHANTABLE)
.add(IcariaItems.CHERT_TOOLS.dagger.get())
.add(IcariaItems.CHERT_TOOLS.scythe.get())
Expand Down

0 comments on commit c5231c0

Please sign in to comment.