Skocz do zawartości
  • 0

Automatyczne budowanie domu


MrKamman
 Udostępnij

Pytanie

Witam mam sprawę o tuż znalazłem taki oto kod.

On place bedrock:
	if name of player's tool is "&4&lRust&7 >>&f DOM":
		cancel event
		send ""
		send "&6>> &aRozpoczynam budowe &7(DOM)&a."
		send "&6>> &aWyrownuje teren..."
		wait 2 seconds
		set event-block to air
		set {_1} to location of block 20 up 12 north 12 east event-block 
		set {_2} to location of block 1 down 12 south 12 west event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to air
		set {_1} to location of block 1 down 12 north 12 east event-block 
		set {_2} to location of block 1 down 12 south 12 west event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to grass
		send "&6>> &aTeren zostal wyrownany."
		wait 2 seconds
		send "&6>> &aStawiam dom..."
		set {_1} to location of block 1 down 3 north 2 west event-block 
		set {_2} to location of block 1 down 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to cobblestone
		set {_1} to location of block 3 north 2 west event-block 
		set {_2} to location of block 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to oak wood
		set {_1} to location of block 1 up 3 north 2 west event-block 
		set {_2} to location of block 2 up 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to Oak Wood Plank
		set {_1} to location of block 3 up 3 north 2 west event-block 
		set {_2} to location of block 3 up 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to oak wood
		set {_1} to location of block 4 up 4 north 3 west event-block 
		set {_2} to location of block 4 up 5 south 6 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to Cobblestone Slab
		set {_1} to location of block 4 up 2 north 1 west event-block 
		set {_2} to location of block 4 up 3 south 4 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to Cobblestone
		set {_1} to location of block 3 up 2 north 1 west event-block 
		set {_2} to location of block 3 south 4 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to air
		set block 2 west event-block to air
		set block 2 west 1 south event-block to air
		set block 1 up 2 west event-block to air
		set block 1 up 2 west 1 south event-block to air
		set block 2 west event-block to wooden door
		set block 2 west 1 south event-block to wooden door
		set block 1 up 1 east 3 north event-block to glass
		set block 1 up 2 east 3 north event-block to glass
		set block 1 up 3 east 3 north event-block to glass
		set block 1 up 1 east 4 south event-block to glass
		set block 1 up 2 east 4 south event-block to glass
		set block 1 up 3 east 4 south event-block to glass
		set block 1 up 4 east event-block to torch
		set block 4 east event-block to Furnace
		set block 4 east 1 south event-block to Chest
		set block 4 east 2 south event-block to Crafting Table
		set block 4 east 3 south event-block to chest
		set block 4 east 1 north event-block to chest
		set event-block to bedrock

Jest to dom który wygląda tak:

8f4zp4a5du70.png

tcmon3g9u8lw.png

Mam z tym problem, gdyż nie umiem zbytnio tego przekonfigurować, by tworzył się taki jaki chce. Chcę aby tworzył się taki:

sxztjag63yhw.png

nfbo11uoe586.png

Czy mógłby mi ktoś napisać aby po postawieniu wyglądał ten dom tak????

Odnośnik do komentarza
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
15 godzin temu, MrKamman napisał:

Witam mam sprawę o tuż znalazłem taki oto kod.

On place bedrock:
	if name of player's tool is "&4&lRust&7 >>&f DOM":
		cancel event
		send ""
		send "&6>> &aRozpoczynam budowe &7(DOM)&a."
		send "&6>> &aWyrownuje teren..."
		wait 2 seconds
		set event-block to air
		set {_1} to location of block 20 up 12 north 12 east event-block 
		set {_2} to location of block 1 down 12 south 12 west event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to air
		set {_1} to location of block 1 down 12 north 12 east event-block 
		set {_2} to location of block 1 down 12 south 12 west event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to grass
		send "&6>> &aTeren zostal wyrownany."
		wait 2 seconds
		send "&6>> &aStawiam dom..."
		set {_1} to location of block 1 down 3 north 2 west event-block 
		set {_2} to location of block 1 down 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to cobblestone
		set {_1} to location of block 3 north 2 west event-block 
		set {_2} to location of block 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to oak wood
		set {_1} to location of block 1 up 3 north 2 west event-block 
		set {_2} to location of block 2 up 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to Oak Wood Plank
		set {_1} to location of block 3 up 3 north 2 west event-block 
		set {_2} to location of block 3 up 4 south 5 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to oak wood
		set {_1} to location of block 4 up 4 north 3 west event-block 
		set {_2} to location of block 4 up 5 south 6 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to Cobblestone Slab
		set {_1} to location of block 4 up 2 north 1 west event-block 
		set {_2} to location of block 4 up 3 south 4 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to Cobblestone
		set {_1} to location of block 3 up 2 north 1 west event-block 
		set {_2} to location of block 3 south 4 east event-block
		loop blocks within {_1} to {_2}:
			set loop-blocks to air
		set block 2 west event-block to air
		set block 2 west 1 south event-block to air
		set block 1 up 2 west event-block to air
		set block 1 up 2 west 1 south event-block to air
		set block 2 west event-block to wooden door
		set block 2 west 1 south event-block to wooden door
		set block 1 up 1 east 3 north event-block to glass
		set block 1 up 2 east 3 north event-block to glass
		set block 1 up 3 east 3 north event-block to glass
		set block 1 up 1 east 4 south event-block to glass
		set block 1 up 2 east 4 south event-block to glass
		set block 1 up 3 east 4 south event-block to glass
		set block 1 up 4 east event-block to torch
		set block 4 east event-block to Furnace
		set block 4 east 1 south event-block to Chest
		set block 4 east 2 south event-block to Crafting Table
		set block 4 east 3 south event-block to chest
		set block 4 east 1 north event-block to chest
		set event-block to bedrock

Jest to dom który wygląda tak:

8f4zp4a5du70.png

tcmon3g9u8lw.png

Mam z tym problem, gdyż nie umiem zbytnio tego przekonfigurować, by tworzył się taki jaki chce. Chcę aby tworzył się taki:

sxztjag63yhw.png

nfbo11uoe586.png

Czy mógłby mi ktoś napisać aby po postawieniu wyglądał ten dom tak????

Weź zapisz schemat worldeditem (ten od tego domu który chcesz.) /schem save schematic DomSkript

A potem użyj tego skryptu:

On place bedrock:
	execute console command "pex user %player% add worldedit.*"
	execute player command "schem load DomSkript"
	execute player command "paste"
	loop 100 times:
		send " " to player
	execute console command "pex user %player% remove worldedit.*"

Dodam tyle że musisz mieć permissionsex i worldedit. To jest najprostsze rozwiązanie.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0

Nie lepiej będzie użyć Ci PirateSk?
Pozwala on wklejać schematy w danym miejscu, z danym opoźnieniem po wykonaniu komendy 

  • paste schematic "Dom" at player / event-block / {location}

wystarczy że posiadasz owy schemat w WorldEdit > Schematics 

 

Dodatkowo, jak chcesz ukryć wiadomości systemowe, użyj pluginu "Message Filter / Container" pozwalają one filtrować wiadomości i wyłączać te systemowe

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...