Jump to content

Recommended Posts

Posted

Hi mates!

As you  should know, I`m a newby at modding and I`m retired , now I`m a little overhelmed with learning java.... I found an interesting contribution from localtoast and followed as I could, but it is

written for MCvers.1.8. and to create slabs seems to be difficult for a newcomer. Now I have reached a point where I do not get any further...

When I start my code, slabs work partially, that means, I can place it to the bottom and to a side of a wall (top and bottom), only "double" won`t work and game crashes.

Would anybody please so kind and explain me exactly what is going wrong and what must be done...?

Thanks in advance, Norzeteus

 

Console output:

 

  Reveal hidden contents

 

 

 

BlockSlab:

 

  Reveal hidden contents

 

 

BlockHalfSlab:

 

  Reveal hidden contents

 

 

BlockDoubleSlab:

 

  Reveal hidden contents

 

 

BlockItem:

 

  Reveal hidden contents

 

 

Block reg:

 

  Reveal hidden contents

 

 

Client Proxy:

 

  Reveal hidden contents

 

 

Blockstates:HalfSlab

{
    "variants": {
        "half=bottom,variant=false": { "model": "spaceextended:half_vitallium_slab" },
	"half=top,variant=false": { "model": "spaceextended:upper_vitallium_slab" }

    }
}

 

Blockstates:DoubleSlab

{
    "variants": {
        "variant=false": { "model": "spaceextended:vitallium" },
        "variant=true":    { "model": "spaceextended:vitallium" }
    }
}

 

Models:HalfSlab

{
    "parent": "block/half_slab",
    "textures": {
        "bottom": "spaceextended:blocks/vitallium",
        "top": "spaceextended:blocks/vitallium",
        "side": "spaceextended:blocks/vitallium"
    }
}

 

Models:UpperSlab

{
    "parent": "block/upper_slab",
    "textures": {
        "bottom": "spaceextended:blocks/vitallium",
        "top": "spaceextended:blocks/vitallium",
        "side": "spaceextended:blocks/vitallium"
    }
}

 

 

Don't blame me if i always ask for your help. I just want to learn to be better....

Posted

{
    "variants": {
        "half=bottom,variant=false": { "model": "spaceextended:half_vitallium_slab" },
	"half=top,variant=false": { "model": "spaceextended:upper_vitallium_slab" }

    }
}

 

Does not contain variant half=bottom,variant=true and half=top,variant=true

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.

Posted

Ok, now I did this

 

Blockstates:HalfSlab

{
    "variants": {
        "half=bottom,variant=false": { "model": "spaceextended:half_vitallium_slab" },
	"half=top,variant=false": { "model": "spaceextended:upper_vitallium_slab" },
	"half=bottom,variant=true": { "model": "spaceextended:half_vitallium_slab" },
	"half=top,variant=true": { "model": "spaceextended:upper_vitallium_slab" }
    }
}

 

I got another error, Console output:

 

  Reveal hidden contents

 

Don't blame me if i always ask for your help. I just want to learn to be better....

Posted

Cannot set property PropertyEnum{name=half, clazz=class net.minecraft.block.BlockSlab$EnumBlockHalf, values=[top, bottom]} as it does not exist in BlockStateContainer{block=spaceextended:double_vitallium_slab, properties=[variant]}

 

Your block's variant statecontainer object does not contain the states you are trying to use.

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.

Posted

Don't create an

Item

for your double slab,

BlockSlab#onBlockPlaced

is only designed to handle single slabs.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

Posted

Have a look at my project I got all this working. 

https://github.com/trollworkout/technorcery/tree/master/src/main/java/com/technorcery/common/blocks

 

common/blocks  all generic blocks

common all generic mod data including ModBlocks (where i define register blocks) ModItems (where i define and register items) .. models are registered in client. You probably want to have a look at SlabDoubleWood SlabWood and SlabBlock (this one removes the VARIANT and sub block meta stuff and auto registers things).

 

Disclaimer:  I been told to keep my opinions to myself, to shut up and that I am spreading lies and misinformation or even that my methods are unorthodox and or too irregular. Here are my suggestions take it or leave it.

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



×
×
  • Create New...

Important Information

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