Yourou1000 Posted May 4, 2021 Share Posted May 4, 2021 Hi I'm trying to make a custom log but I'm having some troubles with the blockstates axis: The ERROR: [16:36:42] [Worker-Main-13/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'nirvana:blockstates/bloody_log.json' in resourcepack: 'Mod Resources' for variant: 'axis=z': Unknown blockstate property: 'axis' [16:36:42] [Worker-Main-13/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'nirvana:blockstates/bloody_log.json' in resourcepack: 'Mod Resources' for variant: 'axis=x': Unknown blockstate property: 'axis' [16:36:42] [Worker-Main-13/WARN] [minecraft/ModelBakery]: Exception loading blockstate definition: 'nirvana:blockstates/bloody_log.json' in resourcepack: 'Mod Resources' for variant: 'axis=y': Unknown blockstate property: 'axis' And the blockstates.json { "variants": { "axis=x": { "model": "nirvana:block/bloody_log", "x": 90, "y": 90 }, "axis=y": { "model": "nirvana:block/bloody_log_horizontal" }, "axis=z": { "model": "nirvana:block/bloody_log", "x": 90 } } } Version:1.16.5 Mappings:1.16.5-36.1.4_mapped_official_1.16.5 IDE:IntelliJ IDEA Community Quote Link to comment Share on other sites More sharing options...
Yourou1000 Posted May 4, 2021 Author Share Posted May 4, 2021 So how do I create an "axis" property ? and how do I edit it? Quote Link to comment Share on other sites More sharing options...
loordgek Posted May 4, 2021 Share Posted May 4, 2021 show your block class Quote Link to comment Share on other sites More sharing options...
Yourou1000 Posted May 4, 2021 Author Share Posted May 4, 2021 package fr.lithium.nirvana.init; import fr.lithium.nirvana.NIRVANA; import fr.lithium.nirvana.utils.ModItemGroups; import net.minecraft.block.AbstractBlock; import net.minecraft.block.Block; import net.minecraft.block.SoundType; import net.minecraft.block.material.Material; import net.minecraft.item.BlockItem; import net.minecraft.item.Item; import net.minecraftforge.common.ToolType; import net.minecraftforge.fml.RegistryObject; import net.minecraftforge.registries.DeferredRegister; import net.minecraftforge.registries.ForgeRegistries; import org.jline.utils.Log; import java.util.function.Supplier; public class ModBlocks { public static final DeferredRegister<Block> BLOCKS = DeferredRegister.create(ForgeRegistries.BLOCKS, NIRVANA.MODID); public static final RegistryObject<Block> BLOODY_LOG = CreateBlock("bloody_log", () -> new Block(AbstractBlock.Properties.of(Material.WOOD).strength(2f,2f).harvestTool(ToolType.AXE).sound(SoundType.WOOD)), new Item.Properties().tab(ModItemGroups.NIRVANA_TAB)); public static RegistryObject<Block> CreateBlock(String name, Supplier<? extends Block> BlockSupplier, Item.Properties properties) { RegistryObject<Block> block = BLOCKS.register(name, BlockSupplier); ModItems.ITEMS.register(name, () -> new BlockItem(block.get(), properties)); return block; } } Someone told me to use LogBlock but I don't know where and it seems like I don't have it Quote Link to comment Share on other sites More sharing options...
Draco18s Posted May 4, 2021 Share Posted May 4, 2021 (edited) 3 hours ago, Yourou1000 said: new Block( See this part? That's the generic "random block" called Block that all blocks inherit from. LogBlock is a subclass of Block. Edited May 4, 2021 by Draco18s Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given. Link to comment Share on other sites More sharing options...
Yourou1000 Posted May 5, 2021 Author Share Posted May 5, 2021 So I'm suppose to write: new LogBlock(AbstractBlock.Properties.of.......) or new Block.LogBlock(Absta...)? I ask because both aren't working like the class doesn't exist Quote Link to comment Share on other sites More sharing options...
Luis_ST Posted May 5, 2021 Share Posted May 5, 2021 2 minutes ago, Yourou1000 said: So I'm suppose to write: new LogBlock(AbstractBlock.Properties.of.......) or new Block.LogBlock(Absta...)? I ask because both aren't working like the class doesn't exist there is no LogBlock minecraft uses the RotatedPillarBlock look in the Blocks class how minecraft creates log blocks 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.