How do i make a fortnite-like building system Click on for more

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Yushaa

Active Member
Oct 19, 2023
64
2
8
How do i make a fortnite-like building system that when i right click oak slabs or oak planks it spawns a 3x3 platform of the block i am holding
i need to explain more indepth
Like if i am holding an oak plank with the name &6Wall and i right click,it spawns a 3x3 wall of oakplanks wherever my cursor is pointed at
and if i am holding an oak slab with the name &6Floor and i right click it spawns a 3x3 floor wherever my cursor is pointed at
Discord for more
lunetivfx
 
Do you want it to spawn in front of the player or where the player clicks? Its not really clear
 
Omg this guy is trying to make fortnite in minecraft.
TRUST ME MAN. DON'T DO IT

But in answer to your question, yes
Code:
on right click:
    if player is holding iron ingot named "Wall builder" with lore "Right Click"
    set {_center} to block 1 blocks ahead of player
    set {_top.corner} to block 1 blocks left of {_center}
    set {_top.corner} to block 1 blocks above {_top.corner}
    set {_bottom.corner} to block 1 blocks below {_center}
    set {_bottom.corner} to block 1 blocks right of {_bottom.corner}
    make server execute command "/fill {_top.corner} {_bottom.corner} oak_wood replace air"

This is test code, send me any errors.