#Is there an equivalent of friction but for jumping?
1 messages · Page 1 of 1 (latest)
Not necessarily but almost anything is possible with scripts. You could maybe listen for the jumping player and apply a small amount of knockback to reduce the overall jump height maybe? What’s the vision?
I don't know much about scripts
What’s the vision, I’ve got a flight script I could modify for ya to accommodate I think, tell me about your ultimate goal
Question, if I made a main.js and I want to add another different function like for example the example templates, where one has a main.js of a door and another of a trapdoor, then I can use the two main.js codes and merge them into a single main.js?
yeah merging is fine, its best practice to move your functions into grouped files for their related purposes, jump.js and durability.js as random examples, then I would put all my event listeners in the one main.js and import the functions from the helper files, keeps it cleaner and easier to expand
Ohh amazing
when you do that be sure to export before your function call, otherwise you cannot import them into the main, like "export function functionNameHere()"
Question, just by having the normal files in the script folder and I have already defined the custom component, is there nothing that needs to be done? (I'm new to these cases)
you'll need your manifest file to reference the entrance file, which can be any name you like, run.js or main.js whatever you like and you need to make sure you've got the dependencies in there but yeah, once the scripts are in there thats about it, besides testing and bug fixing, for that be sure to enable to content logs under the creator tab in your save menu of the game.
I want to make a block that allows player to jump higher
How high ya thinking? We can’t have blocks that reduce or remove fall damage like slime fyi but we can absolutely make a launch pad of sorts. It’s my kiddos birthday today but tomorrow I’ll put together an example script for ya
Nice, and I don't need fall damage reducer, just jump tile
