Jump to content

1.15.2 unknown blockstate problems


xX_deadbush_Xx

Recommended Posts

I am making a custom log with four different types which each should have different textures. To do this I created a class that supers LogBlock and I added an integerProperty to the block. It gives me an unknown blockstate property warn in the console.

public class DreadwoodLog extends LogBlock {
    public static final IntegerProperty TYPE = ModBlockStateProperties.TYPE_0_3;
    
    public DreadwoodLog(MaterialColor verticalColorIn, Properties properties) {
        super(verticalColorIn, properties);
        this.setDefaultState(this.getDefaultState().with(AXIS, Direction.Axis.Y).with(TYPE, 0));
    }
    
    protected void fillStateContainer(StateContainer.Builder<Block, BlockState> builder) {
        builder.add(AXIS, TYPE);
    }

    public BlockState getStateForPlacement(BlockItemUseContext context) {
           return this.getDefaultState().with(AXIS, context.getFace().getAxis()).with(TYPE, 0);
    }
}
//in ModBlockStateProperties
public static final IntegerProperty TYPE_0_3 = IntegerProperty.create("type", 0, 3);

Console output: [...] ' for variant: 'axis=x,type=3': Unknown blockstate property: 'type'(edited)

 

could it be that the issue is caused by me supering LogBlock and overriding a bunch of methods? Its probably something really stupid but I just cant find the mistake...

Link to comment
Share on other sites

1 hour ago, xX_deadbush_Xx said:

It is still the same block with the same properties, I just want a different texture on each "type"

Welcome to The Flattening. Do not do this.

And yes, that's coming from me, where I basically did this, because I had a mechanical reason to use a block state (the variants were still valid), and boy howdy getting items to drop (for silk touch) was a bitch.

Edited by Draco18s

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • 괴산스파 ♪BCGAME88·COM♩ 청주스파 용인스파 역삼스파 상수스파 fpl91 종암스파 흑석스파 잠원스파 용인스파 oly81 응봉스파 저동스파 신촌스파 동선스파 liu34 효제스파 문래스파 선릉스파 이촌스파 pas57 고척스파 이화스파 관훈스파 강남스파 rja90 한강스파 과해스파 묘동스파 재동스파 yro33 의왕스파 증산스파 봉익스파 나주스파 nsu37 현저스파 양재스파 중림스파 성북스파 jjd56 번동스파 산천스파 용문스파 삼척스파 vaa27 내자스파 파주스파 남창스파 하계스파 uuh26 창천스파 남영스파 화방스파 역촌스파 qut38 이천스파 산림스파 화성스파 도화스파 bnk31 홍성스파 동교스파 개포스파 춘천스파 tet72 율현스파 도렴스파 견지스파 대치스파 fnu85 동자스파 정동스파 교북스파 거제스파 sbj94 신길스파 신월스파 장위스파 원주스파 mmo92 오쇠스파 남창스파 역삼스파 공릉스파 rbr75 삼청스파 신수스파 개포스파 석관스파 xby24 구로스파 수원스파 상수스파 부천스파 tqi28 충정로스파 예지스파 송현스파 응암스파 dcq73 무악스파 신수스파 구로스파 주성스파 ota42 통영스파 해남스파 가리봉스파 홍은스파 twg89 대치스파 태평로스파 안산스파 예장스파 ire93
    • 보성식당 ↕BCGAME88·COM♧ 무안식당 구미식당 포천식당 아산식당 onh92 홍제식당 창신식당 미아식당 나주식당 xqv77 파주식당 회기식당 수원식당 진천식당 ftu52 남현식당 제기식당 원주식당 신월식당 nxv48 독산식당 개봉식당 보령식당 관악식당 ywb45 익산식당 서계식당 천왕식당 안양식당 gjk67 압구정식당 적선식당 하월곡식당 대치식당 dai93 의정부식당 돈의식당 독산식당 보문식당 dsd48 우이식당 하월곡식당 양재식당 인의식당 nrf08 중림식당 정릉식당 통영식당 천안식당 gdh33 전주식당 포천식당 광희식당 명일식당 xbg10 성북식당 관악식당 종로식당 남가좌식당 cbx58 김해식당 홍익식당 군산식당 익선식당 nib05 인사식당 강북식당 연지식당 갈월식당 rfx25 파주식당 염창식당 홍성식당 원지식당 oqp28 시흥식당 전주식당 계동식당 하중식당 vxr37 군산식당 만리식당 수표식당 포항식당 cmw32 적선식당 가평식당 내수식당 오류식당 erg35 하계식당 목동식당 상암식당 동대문식당 tir05 무교식당 충주식당 안암식당 공평식당 qxy44 동해식당 북가좌식당 묘동식당 인사식당 pwk67 동작식당 황학식당 개봉식당 강동식당 lne88 태안식당 녹번식당 하왕십리식당 진주식당 wqj22
    • 평창롤러장 ↘BCGAME88·COM§ 송현롤러장 미아롤러장 신내롤러장 가리봉롤러장 fgp09 운니롤러장 안양롤러장 남영롤러장 사근롤러장 fmq35 용답롤러장 김제롤러장 수서롤러장 효제롤러장 gmx85 수원롤러장 안동롤러장 자곡롤러장 압구정롤러장 egn22 충무롤러장 부암롤러장 충무롤러장 안산롤러장 gfa26 충주롤러장 석촌롤러장 혜화롤러장 부여롤러장 kla33 흑석롤러장 신사롤러장 송정롤러장 안국롤러장 lws66 갈월롤러장 삼각롤러장 운니롤러장 이천롤러장 jny97 경산롤러장 번동롤러장 경운롤러장 저동롤러장 biw61 밀양롤러장 정읍롤러장 군산롤러장 익선롤러장 guk63 옥천롤러장 주교롤러장 입정롤러장 계동롤러장 vrl15 산림롤러장 답십리롤러장 반포롤러장 화동롤러장 jnj93 쌍문롤러장 화순롤러장 장교롤러장 부천롤러장 wqv13 순화롤러장 군포롤러장 이천롤러장 대방롤러장 qcd57 서산롤러장 평택롤러장 구미롤러장 장사롤러장 jot37 양산롤러장 구리롤러장 고양롤러장 효창롤러장 alr67 금천롤러장 필동롤러장 구기롤러장 삼성롤러장 fko37 신수롤러장 도렴롤러장 영주롤러장 팔판롤러장 hko05 능동롤러장 잠실롤러장 신천롤러장 상일롤러장 skm36 구기롤러장 중화롤러장 석촌롤러장 논현롤러장 sss84 청암롤러장 동두천롤러장 회기롤러장 내발산롤러장 cqa78 화성롤러장 관수롤러장 소격롤러장 돈암롤러장 hhn08 영등포롤러장 동해롤러장 목포롤러장 상암롤러장 wjv05
    • 성주방석집 ▒BCGAME88·COM▽ 구리방석집 장지방석집 명일방석집 하월곡방석집 vst24 옥수방석집 광양방석집 안산방석집 삼성방석집 dri38 독산방석집 음성방석집 당인방석집 태평방석집 ocm06 강남방석집 통인방석집 의정부방석집 도선방석집 qgh10 양화방석집 한강방석집 포천방석집 창신방석집 bpf64 성내방석집 양평방석집 공평방석집 신사방석집 ljf94 논현방석집 진천방석집 개포방석집 효창방석집 mxb00 화양방석집 필동방석집 회현방석집 한남방석집 tgg15 논현방석집 내곡방석집 광주방석집 금호방석집 uok03 봉익방석집 소격방석집 강릉방석집 예지방석집 ocj12 관악방석집 정릉방석집 양화방석집 토정방석집 lge21 광장방석집 제주방석집 자양방석집 무악방석집 uam58 양평방석집 세종로방석집 해남방석집 갈월방석집 nxc00 염곡방석집 청담방석집 보광방석집 일원방석집 sea12 의정부방석집 성내방석집 홍익방석집 함안방석집 nas53 포천방석집 여주방석집 봉래방석집 상일방석집 kof71 포항방석집 서대문방석집 천연방석집 태평로방석집 yto13 논현방석집 서빙고방석집 홍지방석집 무악방석집 utd59 쌍문방석집 부천방석집 중학방석집 수송방석집 ffs75 태평방석집 제주방석집 고창방석집 관철방석집 gtv73 보광방석집 황학방석집 시흥방석집 문경방석집 rwf27 남창방석집 옥인방석집 당주방석집 신공덕방석집 wdi35 거여방석집 동대문방석집 노량진방석집 신설방석집 ioj81
    • 청도피시방 ™BCGAME88·COM◎ 관수피시방 월계피시방 남대문피시방 아현피시방 gto02 진천피시방 대조피시방 홍지피시방 강남피시방 rva63 서산피시방 인사피시방 권농피시방 노고산피시방 fxk09 염창피시방 내자피시방 필동피시방 체부피시방 vwc82 수하피시방 갈현피시방 과해피시방 보문피시방 cmy68 도선피시방 태평피시방 관훈피시방 홍천피시방 foo01 항동피시방 마장피시방 삼성피시방 가리봉피시방 qgi53 돈의피시방 서계피시방 강서피시방 진주피시방 aiu92 암사피시방 인천피시방 주자피시방 배방피시방 bum08 도원피시방 성산피시방 이천피시방 봉천피시방 vhn67 통영피시방 문래피시방 동빙고피시방 견지피시방 dyx30 온수피시방 금산피시방 망원피시방 종로피시방 ylp64 냉천피시방 중계피시방 아현피시방 하왕십리피시방 dgk98 강동피시방 평창피시방 신정피시방 다동피시방 hgx70 신설피시방 경운피시방 필동피시방 수서피시방 xsq52 동해피시방 마천피시방 청암피시방 남학피시방 geh09 정릉피시방 공항피시방 마천피시방 서교피시방 vgl33 구수피시방 김천피시방 영천피시방 공릉피시방 lvc82 홍지피시방 대구피시방 삼선피시방 관훈피시방 ddy81 봉래피시방 을지피시방 홍익피시방 통인피시방 xqg86 무악피시방 현석피시방 천연피시방 구산피시방 cpe46 고창피시방 부천피시방 삼청피시방 교북피시방 jui28 안성피시방 수송피시방 개포피시방 문래피시방 cti26
  • Topics

×
×
  • Create New...

Important Information

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