Jump to content

Recommended Posts

Posted

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...

Posted (edited)
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.

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.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • Temu Coupon Code $100 OFF → [acu639380] for Existing Customers Unlock $100 Off with  Temu Coupon Code (acu639380)  Temu continues to lead the e-commerce world with unbeatable discounts and trending products, and June 2025 is no exception. With  Temu coupon code (acu639380), you can score up to $100 off, whether you're a first-time shopper or a returning customer. With ultra-fast delivery, free shipping across 67 countries, and discounts reaching up to 90% off,  Temu is offering exclusive bundles and promo codes this June that are simply too good to pass up. Here’s how to make the most of  Temu coupon code (acu639380) and start saving today. Why June 2025 Is the Best Time to Shop on  Temu June is packed with limited-time offers, trending new arrivals, and secret price cuts across all categories. From fashion and electronics to beauty and home essentials,  Temu delivers must-have items at prices that crush the competition. Apply  Temu coupon code (acu639380) and get access to: $100 off for new users $100 off for existing customers 40% extra discount on select categories A $100 coupon bundle for both new and returning shoppers A free welcome gift for first-time buyers Exclusive Benefits of  Temu Coupon Codes These tailored discounts are crafted for every type of shopper. Maximize your savings with:  Temu coupon code (acu639380) $100 off — Slash your total bill on bulk purchases.  Temu coupon code (acu639380) for existing users — Premium deals just for loyal shoppers.  Temu coupon code (acu639380) for new users — Save big on your first order.  Temu coupon code (acu639380) 40% off — Ideal for fashion and seasonal finds.  Temu $100 coupon bundle — Unlock stacked discounts across departments.  Temu first-time user coupon — Get a head start with a gift and discount. Country-Specific Deals with  Temu Code (acu639380)  Temu’s global reach means personalized offers no matter where you shop:  Temu coupon code $100 off — USA  Temu coupon code $100 off — Canada  Temu coupon code $100 off — UK  Temu coupon code $100 off — Japan  Temu coupon code 40% off — Mexico  Temu coupon code 40% off — Brazil  Temu coupon code $100 off — Germany  Temu coupon code $100 off — France  Temu new user coupon — Argentina  Temu coupons for existing users — Italy  Temu promo code (acu639380) for June 2025 — Spain What to Buy on  Temu in June 2025  Temu’s diverse inventory spans thousands of categories. Here are hot picks eligible for  Temu discount code (acu639380): Smart gadgets and accessories Fashion-forward styles for all ages Stylish home decor and space-saving solutions Wellness, fitness, and beauty essentials Kitchen tools and cookware Office supplies, toys, and gifts My Experience Saving $100 with  Temu Coupon Code (acu639380) When I used  Temu coupon code (acu639380) as a returning customer, I immediately received a $100 discount. Pairing that with a 40% off category promo and the $100 coupon bundle, I walked away with over $200 in value for under $80. You can enjoy the same benefits. Just apply  Temu coupon code (acu639380) at checkout, and your savings will automatically apply — with free global delivery to top it off. More  Temu Deals for June 2025 This month is loaded with rotating offers, surprise bundles, and daily flash sales. Stay updated on: New drops using the  Temu new user coupon Weekly refreshes of  Temu coupons for existing users Regional promotions with  Temu promo code (acu639380) for June 2025 Final Thoughts No matter where you are — North America, Europe, or South America —  Temu coupon code (acu639380) is your key to serious savings. With discounts for both new and loyal customers, now is the time to make the most of  Temu’s irresistible prices. Use acu639380 today to enjoy exclusive perks and unlock smarter shopping at unbeatable value.  
    • TℰℳU Coupon Code $100 Off [acu639380] First Time User Unlock Huge Savings:  TℰℳU Coupon Code (acu639380) for June 2025  TℰℳU is transforming the way the world shops—and June 2025 delivers its boldest offers yet. With the exclusive  TℰℳU coupon code (acu639380), you're entering a world of rewards: from a $100 discount to premium coupon bundles, it's your passport to smart, stylish savings. The  TℰℳU Advantage in June 2025  TℰℳU is known for redefining affordability and access. With unbeatable prices across trending categories—from fashion to electronics—it now delivers to 67 countries with speed and reliability. But this month, it’s not just about what you buy. It’s about how much you save. With  TℰℳU coupon code (acu639380) in hand, your savings soar. Instant Rewards with  TℰℳU Coupon Code (acu639380) If you haven't activated this exclusive code, here's what you're missing: $100 Off for first-time users $100 Off for returning customers 40% Off on sitewide items Free gifts for new sign-ups $100 Coupon Bundle available for all users What Makes  TℰℳU Coupon Code (acu639380) Unique? This code is designed to reward all shoppers—first-timers and loyal fans alike. Here’s how each discount delivers:  TℰℳU coupon code (acu639380) $100 off: Best for newcomers stocking up.  TℰℳU coupon code (acu639380) $100 off for existing users: Returning shoppers save big.  TℰℳU coupon code (acu639380) 40% off: Big savings on trending picks.  TℰℳU $100 coupon bundle: Split savings across several purchases.  TℰℳU first time user coupon: Ideal to kickstart your shopping spree. Global Value, Personalized Access  TℰℳU isn't just generous—it’s international. Whether you're in a Toronto high-rise or a Yorkshire farmhouse, the  TℰℳU promo code (acu639380) unlocks smart deals and chic finds. Coupon Code Highlights by Country  TℰℳU coupon code $100 off for USA – (acu639380)  TℰℳU coupon code $100 off for Canada – (acu639380)  TℰℳU coupon code $100 off for UK – (acu639380)  TℰℳU coupon code $100 off for Japan – (acu639380)  TℰℳU coupon code 40% off for Mexico – (acu639380)  TℰℳU coupon code 40% off for Brazil – (acu639380) Why  TℰℳU is the Marketplace of the Moment Unbeatable prices: Save up to 90% every day Worldwide reach: Ships to 67 countries New promotions: Fresh  TℰℳU new offers in June 2025 Fast, free delivery: No matter where you are FAQ: Maximize Your  TℰℳU Experience What’s the best  TℰℳU discount in June 2025? The top offer is  TℰℳU coupon code (acu639380) $100 off, for both new and existing users. Can I use these deals worldwide? Yes. The  TℰℳU discount code (acu639380) for June 2025 is valid in North America, South America, Europe, and Asia. Can I combine discounts? Absolutely. Pair your  TℰℳU $100 coupon bundle with seasonal deals for extra savings. Final Takeaway Smart shopping isn’t just about what you add to your cart—it’s about how you unlock value. With  TℰℳU coupon codes for new users,  TℰℳU coupon codes for existing users, and exciting June 2025 promotions, the best time to save is now. Don’t wait. Use  TℰℳU coupon code (acu639380) today to claim your rewards and transform the way you shop. New offers, global access, and exclusive savings await.  
    • I used the Temu coupon code acu639380 and got a $200 discount bundle. Works for new and existing users in the US and Canada. Free shipping included. Just enter the code at checkout.
    • Maybe the server or a java instance is still running in background - so restarting the server after the crash results in the "failed to bind port" error   The crash itself points to jvm.dll - so something on your system prevents java from working - maybe the antivirus program, firewall or something else - I have no idea
    • One strange thing I have noticed is this: The server runs fine for an hour or so, then crashes and doesn't even start anymore. However, if I restart the server pc it runs again for an hour. Isn't it some error related to some kind of cache?
  • Topics

×
×
  • Create New...

Important Information

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