#Variants of iron trap door in blockstate

74 messages · Page 1 of 1 (latest)

sudden olive
#

Hello, so I'm trying to add multiple variants of iron trapdoor. Currently, I have:

iron_trapdoor_top_1.json, iron_trapdoor_top_2.json, and iron_trapdoor_top_3.json.

The picture I provided is an example of one of the trapdoor models.

I want the model of the trapdoor to change depending on the direction I place the iron trapdoor, so I could have a variety of models.

Is this possible? I tried for multiple hours but I would end up with the models not showing up or the getting error blocks.

steep cipher
# sudden olive Hello, so I'm trying to add multiple variants of iron trapdoor. Currently, I hav...

I do not suggest this method at all, this itself restricts players from using a specific block when building. And also problems with redstone
Here are better alteratives

  • Replacing String, as it has more blockstates, and can barely effect gameplay as it can still be used normally in regular gameplay with certain plugins.
  • Spawner with custom entity in the model
  • Just make it an entity instead with an invisible armorstand wearing it as a hat with a remodeled dirt with ID:10001
  • Instead of armorstand maybe do itemframe, since invisible itemframes are usually easier to do.
#

Depending on your goal, with performance, I just suggest using the classic invisible armorstand with it as a hat trick.

sudden olive
steep cipher
#

Well, it's very unoptimized, and requires replacing the texture of the spawner to be invisible.

People usually do this method to try to have infinite models that work as a block rather than an entity.

The method is that they remodel an entity, such as a cow with a certain model data, and put it in the spawner, frozen. So when placed, the model is showing, while the spawner is invisible. Having too much is laggy, but this is seen rarely if they wanted it to be a block

#

I just suggest remodeling an item and placing it on an armostand's head with invincibility and invisiblility if you plan on making it for a server gamemode, the method is cheaper, has no limit to how many models you have, and also you can adjust the height better. If you want it to have a fake hitbox, put a barrier block.

#

I just highly discourage the use of remodeling iron trapdoors as its really inefficient, and limits to how many you can have

orchid pollen
#

can't remodel entity, they remodel an item and let the entity in spawner hold or wear it

steep cipher
#

Oh, is that how they do it? Well, I guess I was wrong on that part, I always thought it was an entity itself

#

I never did it before, because of the heavy optimization risks, and also it fades away

orchid pollen
#

but yes custom item in item frame or armorstand is suggested

steep cipher
#

Thats what I do all the time

raven yacht
#

Block models without using any entities, are literally the fastest thing MC can render.

steep cipher
#

Also, soon, 1.19.4 is supporting the display entities, but that is coming soon.

raven yacht
#

Remodelling entities also only works with Optifine, so the spawner approach is stupid too

#

(It usually still uses an item model with some more complex tricks)

steep cipher
orchid pollen
#

they are doing it for server so keeping it easy to manage and less conflict is better imo

raven yacht
steep cipher
#

String is a better option if he runs out of blockstates

#

I think string is around 64

#

Dont quote me

raven yacht
#

Siz, I'd suggest you to replace mushroom blocks, they have many variants and are rarely used in builds, making them versatile (there are also some variants which cannot be obtained without cheats, making it a perfect block for that)
You'd still have to get used to the blockstate file editing though.

steep cipher
#

Mushroom blocks do not support transparency

raven yacht
#

true, good point.

orchid pollen
#

i doubt they will place that block all around the world

steep cipher
#

Same goes for noteblocks

#

^

raven yacht
#

Ok, in that case: Use item frames + barrier blocks and custom model data for a maximum of compat with other stuff.
If you're 100% sure that you're not going to use any blocks, you can remodel them.

#

(once 1.19.4 hits, use display entities, they're better than item frames)

#

I'd suggest the item frame approach because it would also allow you to use the pack across the whole server, and not only within a single game. (And therefore players wouldn't have to download the pack every time they join a minigame)

steep cipher
#

Either works

sudden olive
#

I appreciate the advice guys, I will be using the item frame approach and see how it goes, I find armor stands more annoying to deal with it 🤣

steep cipher
#

Lol

#

Ive been using blockbench for custom resource packs for many years, i found it mind boggling you wanted to replace trapdoors (not trying to spread hate)

sudden olive
steep cipher
#

There are a few server plugins to make it easier, i will leave that at your own research

steep cipher
#

The one I use is Itemsadder, though its paid

sudden olive
steep cipher
#

Huh, you arent in their discord, lol

#

I wouldve made it so much easier to help you if I saw you on mutual servers

sudden olive
#

I didn't bother joining, but I probably should now.

#

I relied on the itemsadder resources

steep cipher
#

Their wiki is very useful

raven yacht
#

Itemsadder is... yes, it's easy but.. you don't need it. Everything that it can do, can easily be done in vanilla.
Likely even easier.

steep cipher
#

I had to learn this stuff before a wiki was added, my only resource was using the default resource pack they gave, then I also suggested the developer to add itemframe furniture, which he did

#

Plugin is a lot easier with the newer versions, I had to spend a week understanding all of it before

steep cipher
#

Also I dont want to edit a massive .json file full of modeldata as I have around over 1100+ furniture made

raven yacht
#

Obfuscation is utter bs

#

It does not make it any more difficult to steal any of your models.

steep cipher
#

That file would crash my visual studip

#

I had people try to steal it

#

They failed

raven yacht
#

Send me one of those files, I'll show you that I can easilly use it.

#

If MC can load it, everyone can open it.

steep cipher
#

Im assuming youre going to use a special decompiler

#

Or smth

raven yacht
#

No, I'll use Blockbench

#

Or a text editor

#

The only thing obfuscation can do for models, is renaming stuff so it makes no sense, and formatting things so they are hard to read.

steep cipher
#

Just set it

#

Sent

#

I actually need to know a bit more since I had people struggling to yoink my stuff

raven yacht
#

I'll take this to DMs if you don't mind.

orchid pollen
#

what origin realm did, is it secure hmmm kinda

raven yacht
#

Don't want to hijack this even more.

steep cipher
#

Ive seen people steal Origin Realms assets, so I am not suprised if its still possible, but its difficult at least

#

I had people selling stolen Assetts for around $20, and they were from origin realms,and idc what you find in the pack, at least keep it in dms lol

#

Theres only 1 joke model that you might ponder yourself on and it's not really "Safe For Work" lol.

sudden olive
#

I wonder if there is any method to making a 3d table with proper collisions, because right now I'm depending on the wall and barrier blocks.