Jump to content

Wuntare

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Wuntare

  1. { "parent": "wuntare:block/box" } This is a item model script, and it have not a model, idk. Then block is there, the model is there. But in hand is block with missing-texture and default block model, not custom. version: 1.21.5 forge: 55.0.21
  2. I make wires and i need connection 2 wires block. I have BooleanPropertys registered, but in mod loading it show Unknown the property in assets/wuntare/blockState. public static final BooleanProperty CONNECTED_NORTH = BooleanProperty.create("connected_north"); public static final BooleanProperty CONNECTED_SOUTH = BooleanProperty.create("connected_south"); public static final BooleanProperty CONNECTED_WEST = BooleanProperty.create("connected_west"); public static final BooleanProperty CONNECTED_EAST = BooleanProperty.create("connected_east"); public static final BooleanProperty CONNECTED_UP = BooleanProperty.create("connected_up"); public static final BooleanProperty CONNECTED_DOWN = BooleanProperty.create("connected_down"); public CopperWireWithoutInsulation0(Properties properties) { super(properties); this.registerDefaultState(this.stateDefinition.any() .setValue(CONNECTED_NORTH, false) .setValue(CONNECTED_SOUTH, false) .setValue(CONNECTED_WEST, false) .setValue(CONNECTED_EAST, false) .setValue(CONNECTED_UP, false) .setValue(CONNECTED_DOWN, false)); } @Override protected void createBlockStateDefinition(StateDefinition.Builder<Block, BlockState> builder) { builder.add(CONNECTED_NORTH, CONNECTED_SOUTH, CONNECTED_WEST, CONNECTED_EAST, CONNECTED_UP, CONNECTED_DOWN); } In this part blockState have problem "multipart": [ { "apply": { "model": "wuntare:block/copper_wire_without_insulation0" } }, { "when": { "connected_north": true }, "apply": { "model": "wuntare:block/copper_wire_without_insulation0_north" } },
  3. public class BlockEntitiesManager { public static final DeferredRegister<BlockEntityType<?>> BLOCK_ENTITIES = DeferredRegister.create(ForgeRegistries.BLOCK_ENTITY_TYPES, Main.MODID); public static final RegistryObject<BlockEntityType<CreativeBlockE>> CREATIVE_BLOCK_E = BLOCK_ENTITIES.register("creative_blocke", () -> BlockEntityType.Builder.of()); public static void register(IEventBus eventBus) { BLOCK_ENTITIES.register(eventBus); } } Builder cannot be resolved or is not a field
×
×
  • Create New...

Important Information

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