1. 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 comminuty!

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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Campfire or block rotation / facing.

Discussion in 'Skript' started by WeeHee, May 20, 2020.

Thread Status:
Not open for further replies.
  1. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    How do I change the facing of a block or more specific a campfire?

     
  2. Best Answer:
    Post #11 by WeeHee, May 25, 2020
  3. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    You can't change the texture of an existing block.
    When you interact with the block, you can change the block.

    Example:
    Code (Text):
    1. on right click on coal ore:
    2.     set clicked block to iron ore
    You should edit the textures yourself.
     
  4. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    The texture for a campfire already exists. I want the block to face north, south, east or west. It is possible with the Minecraft debug_stick, to change the direction of the campfire. But I don't know how to do it in skript.
     
  5. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    Okey, you need run a minecraft command:

    Example:
    Code (Text):
    1. execute console cammand "/setblock 481 4 -452 oak_stairs #12#"
    #0-12# You can adjust entering values placed block direction.

    "oak_stairs" Replace this with a directional block.
     
  6. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    I'm talking about a skript in minecraft 1.15.2 and the setblock command has changed.
    Code (Text):
    1. /setblock ~ ~ ~ minecraft:campfire[facing=north]
    But I don't want to use commands to do stuff like that, and it is possible to change the facing of a furnace with Sk-NBeeT or SkBee, so it should also be possible with a campfire somehow.

    The campfires facing can't be changed with Sk-NBeeT or SkBee, but I believe there must be another way to change the direction/facing of a block in skript.

    Example from the docs: Facing of a furnace
    Code (Text):
    1. set nbt-block at player to west facing furnace with nbt "{CustomName:""{\""text\"":\""&aFurnieFurnace\""}""}"
     
    #5 WeeHee, May 25, 2020
    Last edited: May 25, 2020
  7. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    I understood.
    You problem change the texture of a particular face.
    I think you can only do this on block tissues in different facial.

    [​IMG] TO [​IMG]

    Both tissues here are available.

    But for example it uses a stone texture. I don't think it can be changed because they don't have faces.
    I don't know if the campfire has faces. If the campfire has faces can be done.
     
  8. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    What? Are we talking about the same campfires? They're working just like any other block in Minecraft, I'm not sure what you're talking about. [​IMG]
     
  9. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6

    Yeah, I'm talking about campfire texture, no has campfire variable texture, there is only direction.
    So it has a fixed texture. If what you want to do is burn more fire, you can add particles to the campfire block.
     
  10. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    We are not talking about the same thing.

    Some blocks have 4 different facings. Including campfires. I want to change the facing of the campfire block.
     
  11. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6
    Minecraft block properties are as follows:
    1) Fixed Block = No spec.
    2) İnteractive Block = Can react with various triggers.
    3) Directionable = Can be placed in directions.
    4) Alternative Textured Block = Replaceable texture.

    Campfire Blok properties: 1, 2, and 3.
    --- Double Post Merged, May 25, 2020, Original Post Date: May 25, 2020 ---
    What is your minecraft version ?
    --- Double Post Merged, May 25, 2020 ---
    I control campfire properties, if not replaceable texture feature you need to edit the minecraft. :emoji_smile:
    --- Double Post Merged, May 25, 2020 ---
    Yes, no campfire change alternative texture, actually the texture of the logs you call different faces.
     
  12. WeeHee

    WeeHee Active Member

    Joined:
    Mar 4, 2017
    Messages:
    108
    Likes Received:
    21
    I just solved it. If you open the skript-2.4.jar file with winrar, and then open the folder aliases-english. You'll find decoration.sk. Somewhere it has two lines saying the following
    Code (Text):
    1.     {waterloggable} {lightable} campfire¦s = minecraft:campfire
    2.     {waterloggable} {lightable} signal[ing] campfire = minecraft:campfire[signal_fire=true]
    If I change them to this
    Code (Text):
    1.     {waterloggable} {lightable} {directional} campfire¦s = minecraft:campfire
    2.     {waterloggable} {lightable} {directional} signal[ing] campfire = minecraft:campfire[signal_fire=true]
    It is now possible to set a block with the facing I want.
    Code (Text):
    1. set block at player to <east|west|south|north> facing campfire
     
  13. Yaşarhan

    Yaşarhan Active Member

    Joined:
    May 16, 2020
    Messages:
    87
    Likes Received:
    6

    If it works, congratulations masterful job !
    I have little scripting experience, I just used logic on the basics of minecraft.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...