#Fence and Fence Gate Template
1 messages · Page 1 of 1 (latest)
Does this include commands?
I noticed that his connection only has the "only fences" filter, but no position filter, meaning it connects to all sides?
Yes, the same as vanilla
Vanilla I only realised after making it that fences also connects to the front and back of fence gates
i could be wrong but the fence gate doesn’t seem to show up in game for me
how is the fence gate showing up in game for you?
its not even showing up in my creative inventory
the fence is
Vanilla?
oh
the custom fence gate isnt working for me
pretty sure because of the ""dma:fence_gate": []," line
Ok, this is now fixed
This too?
I have also added this
yep!
For some reason sometimes the custom fence looks smaller
But when compared to the proper bamboo model, it looks the exact same
So I don't think that needs to be edited
But fence gate is okay?
Yes
I do
its saying like "| components | dma:fence_gate | []" and "| components | dma:fence_gate | child 'dma:fence_gate' not valid here."
Try this updated version
Ah hmm. That is a custom component part of the main.js file
yeah
Did you add this to the manifest under "modules"?
{
"uuid": "017bb48d-856c-4a4e-8f3f-767f26b2980d",
"version": "1.0.0",
"type": "script",
"language": "javascript",
"entry": "scripts/main.js"
}```
yeah
"type": "script",
"language": "javascript",
"uuid": "1156747b-4d0e-451c-94a3-9ad8d2401dc2",
"version": [1, 0, 0],
"entry": "scripts/main.js"
wait howd you send it as code
what versioning does the script use?
because i cant get it to work
it even broke all my existing scripts
for the block instead, i had to use the old format of the custom component, as it wasnt appearing ingame at all
The script is 2.6.0-beta
At least that was the one I was using when making it. You can try 2.5.0, but I think there's one thing that is still in beta
wont that break all the other scripts im using? as im using 1.17.0
Ah you're way behind 😭
No wonder it won't work then 😅
You should upgrade. It'll allow you to do so much more than what you can in 1.17.0
yeah but i pretty much dont need any of the new stuff 👉👈
Understandable
would it break the existing scripts if i update it?
the version thingy
idk how scripting works, i just dont want to break anything 🙏
It shouldn't
Ik there was a big change in one of the subscribes. I think it was onLoad or something like that
hmm
which one of these is the version ur talking about?
server or server ui
?
npm i @minecraft/[email protected]
what? 😭
What code editor do you use?
Are you using a phone or PC?
pc
done
Put this into it and hit enter
Wait
That's the wrong module
woops
npm i @minecraft/[email protected]
There
Didn't realise the other was ui 😅
i copy this whole and paste it?
it says:
"npi" is not reconized as an internal or external exe program or batch file
do you have node JS installed?
Ah
still doesnt work
I have no idea then 😭
do i type it like this? 😭
yes
Do you have the geometry file
the blocks that use scripting no longer work, and the fence block doesnt even appear ingame
yeah i have everything put
Hmm
it just doesnt work
the block vanishes only when i put the new format of the custom component
this
and if i use the old one, it appears ingame but has no function
The "minecraft:custom_components" is no longer a valid component
You just need the first iamge
image*
Remove the component in the 2nd image completely
i did
Can you show me the full file?
sent
Are you sure you have the fence_gate geometry??
yeah
What experimental features do you have on?
It works for me
I just changed the texture as I don't have it
all of them
I have no idea what's wrong with yours then 😭
now for example, i have set the old format of that component
and look, it appears just normal 😭
but no functionality
;-;
Sorry for the late reply, can you send me the full BP and RP as zips?
its ok, i dont need help anymore, i fixed the issue my self by editing the script a little and the block code
thanks anyway
did you ever find out the error?
i dont understand why im getting it and other people arent
what is the block format version
basically :
by updating to scripting 2.0, a lot of stuff changes and will break untill you update it, namely
ApplyKnockback
.isValid()
and custom components
the new custom components component method will also require the block format version to be higher
can you send your fixed code please?
what version would you recommend
1.26.0
like for the block.json?
cause that’s what mines at yet i’m still have the same problem as him
what problem exactly?
this is part of my problem
it gives me like 3 errors related to it and doesn’t even show the block in game
and just like the other guy
if i comment it out, put it in custom component, or delete it
it works but has no functionality
It means the custom component isn't registering on the script side
What is your manifest file like?
Ahh, that's why
Change server to 2.5.0
npm i @minecraft/[email protected]
Then download that NPM
in dependencies?
(is it bad that I dont know how to use npm or basically any of what you said there? 😭 )
Yes
Do you have node.js installed?
no
Ok, either way, you shouldn't need it installed to have it run properly in-game
So you can just put "version": "2.5.0" in the server module
oh
yeah that didnt work
i tried that back when I still had the files (they are on my school computer cause this is for one of my classes)
time to add redstone support..
Ah. I completely forgot about that tbh
2.7.0-beta on stable
There's no way to fix this?
What's your content log?
No problem.
But visually, in the commands and in the UI Pocket, it's wrong.
Then I am as confused as you
So shouldn't it be out of place?
Ohhhh
Lmao
Now I understand 🤣
I thought only the first fence gate and fence were being registered is what you meant 😭
But yes, I believe there is a fix. And that will be in an updated template (whenever I get around to doing it)
Oh yea
I updated the template in the package I use myself to support an opening direction based on the player's facing.
where is the item visual located for the fence gate in the pack, assuming there is one?
There isn't one for the fence gate