• 0

    posted a message on Random spawn redstoneblock

    To select only the armour stands you have placed, use tags. Stand near the ten stands, and do:

    tag @e[type=minecraft:armor_stand,limit=10,sort=nearest] add placedStand

    This will add the placedStand tag to the ten nearest armour stands. placedStand can be whatever you want, it just needs to be consistent with the next selector (with tag=)

    To select a random armour stand, @r no longer works for all entities iirc - even if you specify a type. However, @e can, if you set a limit of 1 (to select a single armour stand) and sort by random.

    You should have something along these lines:

    execute at @e[type=minecraft:armor_stand,limit=1,sort=random] run setblock ~ ~-2 ~ minecraft:redstone_block

    ~ ~-2 ~ will be two blocks below, with ~ ~ ~ corresponding to the armour stand's position and ~ ~-1 ~ the wool block below.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Cannot open or create a world since 19w06a

    Does that mean I necessarily have to change computer (or parts of it) in order to be able to play? Even though it is outdated, I was still able to play older versions or snapshots.

    ls there nothing else I can do?

    Posted in: Java Edition Support
  • 0

    posted a message on How can you execute a command at an entity lower than a certain height?

    Hello,

    Although checking the Pos tag of an entity does work, it serializes its whole NBT and is very unefficient. (also note that run execute in a command is always redundant).

    You can use the y and dy selector argument variables to select entities whose y coordinate is in a given range:


    execute as <entity> at @s if entity @s[y=0,dy=63] run ...

    is much more efficient. Mind that dx/dy/dz add one to the area inside which they're looking for entities, so the above command would select entities who are below y=64 and not 63.


    Adding NoGravity to any entity (including items, for instance) makes it immune to gravity. You'd just need to add this tag to the item, apply upwards motion or teleport the item higher.

    Posted in: Commands, Command Blocks and Functions
  • 0

    posted a message on Cannot open or create a world since 19w06a

    Hello! I'm having trouble opening any world in any snapshot more recent than 19w05a. When I create or open a world, the generated map appears, goes to 100%, displays "Loading world...", then it shows "Saving world" without rendering the world at any time and Minecraft crashes with the following report:

    ---- Minecraft Crash Report ----
    // Daisy, daisy...
    
    Time: 23/03/19 16:55
    Description: Unexpected error
    
    java.lang.NullPointerException: Unexpected error
    	at cua.n(SourceFile:1394)
    	at cua.d(SourceFile:942)
    	at cua.b(SourceFile:412)
    	at net.minecraft.client.main.Main.main(SourceFile:154)
    
    
    A detailed walkthrough of the error, its code path and all known details is as follows:
    ---------------------------------------------------------------------------------------
    
    -- Head --
    Thread: Client thread
    Stacktrace:
    	at dgh.a(SourceFile:447)
    
    -- Affected level --
    Details:
    	Level name: MpServer
    	All players: 0 total; []
    	Chunk stats: MultiplayerChunkCache: 289, 0
    	Level seed: 0
    	Level generator: ID 01 - flat, ver 0. Features enabled: false
    	Level generator options: {}
    	Level spawn location: World: (8,64,8), Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    	Level time: 39 game time, 39 day time
    	Level dimension: 0
    	Level storage version: 0x00000 - Unknown?
    	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    	Server brand: ~~ERROR~~ NullPointerException: null
    	Server type: Non-integrated multiplayer server
    Stacktrace:
    	at dgh.a(SourceFile:447)
    	at cua.b(SourceFile:1937)
    	at cua.b(SourceFile:425)
    	at net.minecraft.client.main.Main.main(SourceFile:154)
    
    -- System Details --
    Details:
    	Minecraft Version: 19w12b
    	Operating System: Windows 10 (x86) version 10.0
    	Java Version: 1.8.0_51, Oracle Corporation
    	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
    	Memory: 367961872 bytes (350 MB) / 587202560 bytes (560 MB) up to 1191182336 bytes (1136 MB)
    	JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx1124M -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=16M
    	Launched Version: 19w12b
    	LWJGL: 3.2.1 build 12
    	OpenGL: Intel(R) HD Graphics 2000 GL version 3.1.0 - Build 9.17.10.4459, Intel
    	GL Caps: Using GL 1.3 multitexturing.
    Using GL 1.3 texture combiners.
    Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
    Shaders are available because OpenGL 2.1 is supported.
    VBOs are available because OpenGL 1.5 is supported.
    
    	Using VBOs: Yes
    	Is Modded: Probably not. Jar signature remains and client brand is untouched.
    	Type: Client (map_client.txt)
    	Resource Packs: 
    	Current Language: English (US)
    	CPU: 4x Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz

    When I reopen the game and get back to the singleplayer world selection screen, the world I've tried to create in the previous session is still there.

    I have tried reinstalling the game and using another save folder but no luck. I've tested this in all snapshots since 19w06a.

    Allocating more resources to Minecraft just prevents the game from launching at all (and always did).

    I do use outdated Intel drivers (and I can't seem to be able to update them, how many times I've tried) and it has caused issues in the past with resources and sometimes crashes but I am still able to play in older versions (1.12, 1.13 and other snapshots up to 19w05a).

    As the report says, I'm using win10 x64. I don't have any mods installed.

    I don't know what has changed lately that makes it unable for me to open the world and what I could try doing to solve this issue (without having to buy a new PC or computer parts). Let me know if you have any idea, I hope there is a way I can finally play with the new features.

    Thanks in advance!

    Posted in: Java Edition Support
  • To post a comment, please or register a new account.