
cheaterpaul
Members-
Content Count
8 -
Joined
-
Last visited
Community Reputation
1 NeutralAbout cheaterpaul
-
Rank
Tree Puncher
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
replace environment 'MOD_CLASSES', 'dummy' // Needed to work around FG limitation, FG will replace this! in build.gradle under project(':forge') > patcher > runs > forge_test_client with environment 'MOD_CLASSES', "${project.file('build/resources/test').canonicalPath};${project.file('build/classes/java/test').canonicalPath}" (maybe you have to replace ; with : ) and start the forge forge test client
-
(1.14.4) i recently tried this myselfe at Vampirism . The Structure spawns in the world as i wish, but not everything works as it should be (spawning on right hight, dont spawn in the air) (look at commit1 and commit2) important is that you add the structure as feature & structure to the biomes https://github.com/Cheaterpaul/Vampirism/blob/608595bf045fb8de937a9417ab518cc42133cdb7/src/main/java/de/teamlapen/vampirism/world/gen/biome/VampirismBiomeFeatures.java#L25 https://github.com/Cheaterpaul/Vampirism/blob/608595bf045fb8de937a9417ab518cc42133cdb7/src/main/java/de/teamlapen/vampirism/world/gen/biome/VampirismBiomeFeatures.java#L27
-
[1.14.3] Ingredient.fromTag() isn't working
cheaterpaul replied to SansyHuman's topic in Modder Support
while i cant see your whole code, this works for me: package com.example.examplemod; *imports @Mod("examplemod") public class ExampleMod { public static Tag<Item> coppertag = new ItemTags.Wrapper(new ResourceLocation("forge", "ingots/copper")); public ExampleMod() { } @Mod.EventBusSubscriber(bus=Mod.EventBusSubscriber.Bus.MOD) public static class RegistryEvents { @SubscribeEvent public static void onItemRegistry(final RegistryEvent.Register<Item> blockRegistryEvent) { blockRegistryEvent.getRegistry().register(new Item(new Item.Properties().group(ItemGroup.BREWING)).setRegistryName("examplemod:copper")); blockRegistryEvent.getRegistry().register(new SwordItem(new Tier(),4,1,new Item.Properties().group(ItemGroup.BREWING)).setRegistryName("examplemod:coppersword")); } } public static class Tier implements IItemTier{ @Override public int getMaxUses() { return 100; } @Override public float getEfficiency() { return 4; } @Override public float getAttackDamage() { return 2; } @Override public int getHarvestLevel() { return 1; } @Override public int getEnchantability() { return 50; } @Override public Ingredient getRepairMaterial() { return Ingredient.fromTag(coppertag); } public Tier() { } } } but i think the problem is that you need public static final Tag<Item> COPPER_INGOT = new ItemTags.Wrapper(new ResourceLocation("forge", "ingots/copper")); not public static final Tag<Item> COPPER_INGOT = ItemTags.getCollection().getOrCreate(new ResourceLocation("forge", "ingots/copper")); otherwise your copper.json is in a wrong directory -
[1.14.3] Ingredient.fromTag() isn't working
cheaterpaul replied to SansyHuman's topic in Modder Support
you need to call super() inBiomeOreItemTag and extends TieredItem -
[1.14.3] Ingredient.fromTag() isn't working
cheaterpaul replied to SansyHuman's topic in Modder Support
while you created the tag, the tag is not filled with anything. For that you must create this json "resources/forge/tags/items/ingots/copper.json" and fill it with { "replace": false, "values": [ "modid:yourCopperIngot" ] } -
run configurations 1.14 | contribute to forge
cheaterpaul replied to cheaterpaul's topic in ForgeGradle
thx -
i have set up the environment to make patches for forge (gradlew setup), but now i cant find any correct information for generate the run configurations to test the changes.