Member
Level 5
Apprentice Crafter
3

Forum Posts

1 - 11 of 11

    Le_Beholder
    10/10/2023 12:27 am
    Level 5 : Apprentice Crafter
    history
    is there a limit to how far the forceload coords can be apart from eachother?
    edit: ive tested and found the limit to fit perfectly into a map sized area... which fits perfectly into my designs. >:3
    1
    Le_Beholder
    10/06/2023 12:42 pm
    Level 5 : Apprentice Crafter
    what do you mean by "set pos to 100x where you want to be teleported" i tested the code in command blocks, and only the Y directional code makes my armor stand entity actually move.


    sidenote/reminder I need to use armor stands, and I only need the X and Z axis for my project.
    1
    Le_Beholder
    09/26/2023 7:43 pm
    Level 5 : Apprentice Crafter
    history
    ive added that last bit to the summon line, so far without the loop that reruns the script it makes a single chunk full of lime wool.
    i will now try testing with the loop added back in...
    nope. still softcrashes.
    1
    Le_Beholder
    09/26/2023 5:45 pm
    Level 5 : Apprentice Crafter
    what ive got so far:

    #Set the x and y values to 0
    execute if score num data matches 0 run scoreboard players set reset.x data 0
    execute if score num data matches 0 run scoreboard players set reset.y data 0

    #Initialize a marker
    #changed this to below #execute if score num data matches 0 summon minecraft:armor_stand run tag @s add coord
    summon minecraft:armor_stand ~ ~ ~ {NoGravity:1b,Tags:["coord"]}
    #Send it to the corner of the reset area with the lowest X and Z cooordinates (Y doesn't matter)
    execute if score num data matches 0 run teleport @e[type=armor_stand,tag=coord] 112 -60 64

    #Fill the current section, may not be quite right
    execute at @e[type=armor_stand,tag=coord] run fill ~ -63 ~ ~15 63 ~15 minecraft:lime_wool replace
    execute at @e[type=armor_stand,tag=coord] run fill ~ 64 ~ ~15 191 ~15 minecraft:lime_wool replace
    execute at @e[type=armor_stand,tag=coord] run fill ~ 192 ~ ~15 319 ~15 minecraft:lime_wool replace

    #Move the marker to the next section
    #teleport @e[type=armor_stand,tag=coord] ~16 ~ ~16
    #lol#execute as @e[type=minecraft:armor_stand,tag=coord] at @s run teleport ~ ~ ~16
    scoreboard players operation tmp.x data = reset.x data
    scoreboard players operation tmp.y data = reset.y data

    #Increment counters
    scoreboard players add reset.x data 1
    #The check here is for how wide you want the target area to be, in this case 3 chunks
    execute if score reset.x data matches 3 run scoreboard players add reset.y data 1
    execute if score reset.x data matches 3 run scoreboard players set reset.x data 0

    execute if score reset.x data > tmp.x data run teleport @e[type=armor_stand,tag=coord] ~16 ~ ~
    execute if score reset.y data > tmp.y data run teleport @e[type=armor_stand,tag=coord] ~ ~ ~16
    #Loop unless chunk (2,4) has been reached.
    execute if score reset.x data matches 2 if score reset.y data matches 3 run scoreboard players set reset.done data 1
    execute if score reset.done data matches 1 run kill @e[type=armor_stand,tag=coord]
    execute if score reset.done data matches 1 run scoreboard players set num data 0
    execute if score reset.done data matches 1 run scoreboard players set reset.done data 0
    1
    Le_Beholder
    09/26/2023 5:05 pm
    Level 5 : Apprentice Crafter
    history
    btw, i tried replying with my edited version but idk how to add code boxes in these forums.

    also when i add back in the line to redo the loop,
    " execute unless score reset.done data matches 1 run function e:reset "

    it soft crashes my game .. the marker also isnt being deleted after for some reason..

    edit:
    "(substituting the marker entity you're using)."
    lol whoops
    1
    Le_Beholder
    09/26/2023 4:22 pm
    Level 5 : Apprentice Crafter
    I'll see if these work, I still like your concept though! ive been playing around with it, parsing it out in command blocks.
    the fill coords were a bit off, but I've found you just need to subtract one from each coord to get the actual volume of the chunk section, as even though its 16x16 blocks per chunk, the math makes the numbers start from 0. it's weird that way :P

    and instead of using marker, I've been using an armor_stand tagged "coord" which helps me visualize it better.

    as for teleporting it relative to itself for each position, which i got stuck on at first, I've discovered @s is a useful tool:
    " execute as <target> at @s run tp ^ ^ ^1 "
    as your line: " execute if score num data matches 0 run teleport @e[type=marker,tag=-marker] 0 0 0 "
    wasnt working. @s actually uses the current position and direction of the entity when called.

    thats all ive got to in my research thus far, I'm still willing to give your code a shot. especially since ive realized I would have to place not 1200 command blocks, but 4800 of them...
    1
    Le_Beholder
    09/24/2023 1:44 am
    Level 5 : Apprentice Crafter
    history
    alright. i have learned how to make data packs and functions now.
    so there must be something wrong with this code, because ive run a debug on it, and it cannot detect that marker entity..
    im also not sure if i set up the scoreboard correctly, because its trying to run these commands 36,000 or so times..

    i replaced the air parts with lime wool, and no chunk sized pillars of lime wool showed up either.
    worse still, everytime i run /reload more than once after each function call, it lags out my world from running any other commands and takes up alot of processing on my pc, i have to shut down java with taskmanager each time.

    I think my 1200 commandblock method, albeit monotonous, would at least accomplish something..
    1
    Le_Beholder
    09/05/2023 11:47 am
    Level 5 : Apprentice Crafter
    A lemon.
    I know this was a gag in the Portal games, but I've seriously yet to see someone's house get burned down by just using lemons.
    3
    Le_Beholder
    09/05/2023 11:44 am
    Level 5 : Apprentice Crafter
    Le_Beholder

    I've had this username since I first bought the game some 11 years ago.
    I originally wanted "The_Beholder" but "Le" means "The" in French and it sounds fancier anyhow.
    2
    Le_Beholder
    09/05/2023 11:41 am
    Level 5 : Apprentice Crafter
    I'd try minersneedcoolshoes they have a skin editor as well.
    2
    Le_Beholder
    11/21/2015 6:44 pm
    Level 5 : Apprentice Crafter
    try colossalmc.com
    1

1 - 11 of 11

Welcome