Jump to content

Jellofish83

Members
  • Posts

    9
  • Joined

  • Last visited

Jellofish83's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Sorry I wasn't on this site for a few days. But anyways, if you just simply want to install forge to play with mods, you need to click on the installer option, thqat way, forge will be automatically installed to your device at the version you chose. Then you could just open Minecraft launcher to play on that version.
  2. I didn't quite understood what you said. But anyways, are you saying that you can't install Forge? If so, click this link, this will bring you to the Forge website. On the left side, you will be able to pick the version you wish to install.
  3. So I was trying to make a custom structure with Forge 1.18.2, the reference I used was TelepathicGrunt's structure tutorial for Forge 1.18.2. The JSON files seems fine since I just modified the name to my structure's name, all the file's path are also the same. But when I open my JSON file, there's an warning showing "Missing required property 'values' ." The quick fix option implemented this at the bottom of my file: "values": [ ] But I don't know what to put in there. This warning occured at src/main/resources/data/fariouscraft/worldgen/configured_structure_feature/shabby_tent.json Same warning also occured at src/main/resources/data/fariouscraft/worldgen/structure_set/shabby_tent.json At first I ignored the warning, but when I launched into game and tried generate a new world, it tells me there was an error in the datapack loaded and I must use safe mode. But the button won't respond to do anything when I press safe mode. Here's the JSON files src/main/resources/data/fariouscraft/worldgen/configured_structure_feature/shabby_tent.json { "type": "minecraft:village", "config": { "start_pool": "fariouscraft:shabby_tent/start_pool", "size": 2 }, "biomes": "#fariouscraft:has_structure/shabby_tent", "adapt_noise": true } src/main/resources/data/fariouscraft/worldgen/structure_set/shabby_tent.json { "structures": [ { "structure": "fariouscraft:shabby_tent", "weight": 1 } ], "placement": { "salt": 1464187780, "spacing": 12, "separation": 8, "type": "minecraft:random_spread" } } The start_pool.json and the files within the template_pool directory is fine. But the console throw me an error: Caused by: com.google.gson.JsonParseException: Error loading registry data: Failed to parse fariouscraft:worldgen/configured_structure_feature/shabby_tent.json file: com.google.gson.stream.MalformedJsonException: Expected name at line 23 column 2 path $.adapt_noise I basically just copy and pasted TelepathicGrunt's files and even added them in the game, his works just fine, but mine won't work for some reason. Any help would be appreciated, thanks Edit: I just added the mob spawning control code to the JSON file after adapt_noise, then debugged the program. After debugging, the error just magically disappeared when I ran the program again even though I have already tried that before debugging.
  4. I looked back, and realised I forgot to put "eventBus.addListener(this::clientSetup);" in my main constructor. And I fixed it Anyways, thank you for you time.
  5. I already looked around and dug the external libraries, but found no solution. Also, if I can figure out why it doesn't execute, I won't be asking here.
  6. It's alright. But do you have a solution to my version?
  7. You mean under "models/block/blockname.json" or the main class? If so, the line "render_type":"cutout" doesn't work if written inside the json files and I have already included RenderType.cutout() under FMLClientSetupEvent in my main class.
  8. Hello, I was trying to make a flower block, everything went fine until I excuted the program and tested it out. Once in game, both the flower block and the potted flower block was the expected cross model but with a black background instead of transparent background. Anyone have a solution to this? I was using Forge 1.18.2. The texture for the flower also have a transparent background in the image editor. The code for the flower: public static final RegistryObject<Block> FROZEN_ROSE = registerBlock("frozen_rose", () -> new FlowerBlock(MobEffects.MOVEMENT_SLOWDOWN, 5, BlockBehaviour.Properties.copy(Blocks.DANDELION).noOcclusion()), CreativeModeTab.TAB_DECORATIONS); Code for potted flower: public static final RegistryObject<Block> POTTED_FROZEN_ROSE = registerBlockWithoutBlockItem("potted_frozen_rose", () -> new FlowerPotBlock(() -> ((FlowerPotBlock) Blocks.FLOWER_POT), ModBlocks.FROZEN_ROSE, BlockBehaviour.Properties.copy(Blocks.POTTED_DANDELION).noOcclusion())); Code for the RenderType under FMLClientSetupEvent: private void clientSetup(final FMLClientSetupEvent event) { ItemBlockRenderTypes.setRenderLayer(ModBlocks.FROZEN_ROSE.get(), RenderType.cutout()); ItemBlockRenderTypes.setRenderLayer(ModBlocks.POTTED_FROZEN_ROSE.get(), RenderType.cutout()); } I've also checked the JSON files, and they are all error free. Anyone have a solution to my issue here? Any help provided would be really appreciated!
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.