Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

NickDerMitHut

Members
  • Posts

    11
  • Joined

  • Last visited

  • Days Won

    1

NickDerMitHut last won the day on June 20 2019

NickDerMitHut had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

NickDerMitHut's Achievements

Tree Puncher

Tree Puncher (2/8)

7

Reputation

  1. @larsgerrits Thank you so much! I got it now. I took a look inside a datapack. The json has to be in data/modid/minecraft/loot_tables/entities And then my cow.json is looking like this and it works: I could also eddit/add new crafting recipes or new items to dungion chests.
  2. Okay but how can I edit/add to a vanilla mobs's loot_table?
  3. Hello, I wanted to add an CustomItem to the cows/any other mobs normal Drops. My customcow class looks like this: Ive tried a lot of variants for the customcow.json loot_table: or: or just straight up copying the cow(or other mob) loot_table and changing the items: But none of it seems to work. The cow is just dropping its vanilla items. Has anybody got an idea?
  4. Nether Ore Generation works now thanks to @MrTroble. He helped me a lot on the HyCraftHD Discord, and spent quite a lot of time to find out how the things work. My OreGeneration class now looks like this so I made another "public static void" called it SetupNetherOreGen. Inside of that Mr.Troble found out how to change the biome to the Nether biomes.NETHER.addFeature(GenerationStage.Decoration.UNDERGROUND_ORES, Biome.func_222280_a(Feature.MINABLE, new OreFeatureConfig (OreFeatureConfig.FillerBlockType.NETHERRACK, YOURBLOCK.getDefaultState(), 7/*MaxOreVeinSize*/), Placement.field_215028_n, new CountRangeConfig(8, 10, 10, 128)));// Vein/Chunk Count, MinHeight, MaxHeightBase, MaxHeight The of course add it to your setup function in the main class and it should be working for the nether private void setup(final FMLCommonSetupEvent event) { OreGeneration.SetupOrGen(); OreGeneration.SetupNetherOreGen(); logger.info("Setup method registered"); } GL HF
  5. PROGRESS! Okay thanks to @HyCraftHD(YT Comments) and @Kaelym searching in the DefaultBiomeFeatures Class did eventually help. I only got it working for the overworld though so it would be great if someone could fiddle around with it to get it working in the nether/end/other dimension. I've made an OreGeneration class that looks like this: I found this OreGen Class by @LTNightshade and edited it so it'd work with 1.14.2 The public static void SetupOrGen() can then be "called" in the setup function in your main class. I realy hope a dimension implementation isn't too hard to pull off. GL HF
  6. Like I said Im new to modding. I did search in the class and tried out some things but no Result.
  7. @desht THANK YOU! Finaly it works. First of yes the data.... folder is the right one. And I finally found the problem I've had { "type": "cockmod:block", "pools": [ { "name": "cockmod:cockpool", "rolls": 1, "entries": [ { "type": "cockmod:item", "name": "cockmod:cockingot" } ], "conditions": [ { "condition": "minecraft:survives_explosion" } ] } ] } but I need { "type": "minecraft:block", "pools": [ { "name": "cockmod:cockpool", "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "cockmod:cockblock" } ], "conditions": [ { "condition": "minecraft:survives_explosion" } ] } ] } just change the types to minecraft:item and minecraft:block and then it works. I have only one more question. Can I keep the cockpool for all my items or do I have to change it to something else for each one?
  8. @desht Thank you for your Help but sadly I still couldn't get it to work. I've tried (cockBlocks and CockItems are the classes were the items and blocks are beeing reigstered) and
  9. Ok that's definetly bringin me in the right direction but I stil couldn't get it to work rn. I've put it in my block class public class cockblock extends Block{ public cockblock() { super(Properties.create(Material.ROCK).lightValue(15).hardnessAndResistance(4).slipperiness( 1.5f).sound(SoundType.SLIME)); } @Override public ToolType getHarvestTool(BlockState state) { return ToolType.PICKAXE; } @Override public int getHarvestLevel(BlockState state) { return 3; } @Override public ResourceLocation getLootTable() { return super.getLootTable(); } } and my json file looks like this { "pools": [ { "rolls": 1, "entries": [ { "type": "item", "weight": 1, "name": "cockmod:cockingot", "functions": [ { "function": "set_count", "count": 1 } ] } ] } ] } I've also tried doing "name": "cockmod:items/cockingot" "name", "cockmod:blocks/cockblock" ,"cockmod:cockblock" and puttin the json file just outside the bocks folder so in loot_tables with no results. I've also tried to just copy the json of dirt by going into a jar file of the minecraft versions and just chaning the names to my items with no results: { "type": "cockmod:block", "pools": [ { "rolls": 1, "entries": [ { "type": "cockmod:item", "name": "cockmod:cockblock" } ], "conditions": [ { "condition": "minecraft:survives_explosion" } ] } ] } I have absolutely no clue why. Maybe I did something wron or I ave to tell the game where the file is specifically soemhow. Hopefully its a not that complicated fix.
  10. Hello,I am new to modding and I have made some Custom Blocks using a Blocks class in which the Blocks are registered and the class of the custom block itself (I do appologize for the names of the blocks/classes, I just named the first block like this and then stuck with it) Blocks.java The Comments are for me, so I don't forgett which things I need to add for a new Block. And a custom Block The Blocks Properties and Texture all work fine ingame but when I try to mine it with a Diamond Pickaxe it just gets lost. I have tried many things. This for example: Or using the HarvestDropsEvent: and the getItemDropped thing doesn't even exist in 1.14.2. I really have no clue what to do to get the block to drop a specific item or even just itself. It'd be great if you could Help me.
  11. Hello, I wanted to make a mod for me and my friends again, last time was in 1.8 I think so im not really experienced in modding, and I started searching up tutorials for 1.14. I wasn't suprised that I didn't find any since 1.14.2 is still quite new. I did find one for 1.13.2 which worked quite well. I made an ore with the fitting ingot and the Tools for it.(No recepies right now). Then I watched the tutorial for custom ore generation and it didn't work. I couldn't import the CompositeFeature and MinableConfig, I have found the equivalent class to import of MinableConfig on this website https://gist.github.com/williewillus/2dfc945b7b7fdb69cc3ff830072d22fe but I still don't know what to write instead of MinableConfig and still haven't found the new equivalent to CompositeFeature. It would be awesome If someone could help me to get this to work in the nether and the normal world. If you want to look at the code I mean you can see it at 5 Minutes.
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.