-
Posts
11 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
cheaterpaul's Achievements
Tree Puncher (2/8)
3
Reputation
-
Is it bad to reuse Minecraft's code in my mod?
cheaterpaul replied to SamMan's topic in Modder Support
i don't think there is any better way, then copy & replace. -
Is it bad to reuse Minecraft's code in my mod?
cheaterpaul replied to SamMan's topic in Modder Support
Why don't extend NewChatGui and use accesstransformer to make the needed fields/methods public. And don't use reflections if you can use forge's events. Cancel InitGuiEvent.Pre when the chat should be opened and open your own on InitGuiEvent.Post -
cheaterpaul changed their profile photo
-
[1.16.1] Partly changing JigsawManager's functionality
cheaterpaul replied to filips's topic in Modder Support
Parts of what you want are already possible. U can modify JigsawManager with an accesstransformer to add your own JigsawPatterns. Then you should be able to add a Jigsawbased structure like a village, or whatever you want. I think replacing already choosen JigsawPieces is a much to specific question to be implementet. Additionally you can extend SingleJigsawPiece to choose at generation (with BlockPos) which you really want to generate. Because the Jigsawsystem works random makes it difficult to unrandomize it. -
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.