You are not logged in.

  • Login

[Bukkit-Plugin] Visuale Effekte

Bitte besucht unser neues Forum unter https://forum.nitrado.net | Please visit our new Forum at https://forum.nitrado.net

MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

1

Friday, August 9th 2013, 4:46am

Visuale Effekte

Hi ich wollte ein paar effekte (Visuele) in meinem Test Plugin Einbauen aber irgendwie finde ich keine.
Ich denke da an den BlockBreake Effekt oder den lava pop effekt.

MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

2

Friday, August 9th 2013, 11:52pm

[pusch]

_Grim_

User / Kunde

Posts: 704

Thanks: 11

  • Send private message

3

Friday, August 9th 2013, 11:58pm

Made by Paint

MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

4

Saturday, August 10th 2013, 1:14pm

Danke ich wäre nie auf die Idee gekommen, dass "STEP_SOUND" der Block break Effekt ist. Ein Problem habe ich noch: "Lava poppt doch so und dann gibt es so einen Effekt wie heist der?"


lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

5

Saturday, August 10th 2013, 4:30pm

Wenn du den visuellen suchst, SMOKE

Wenn du den sound haben möchtest musstcfu wohl azf die playSound()-Methode zurückgreifen ;)

Zitat

It is not a bug, it a new feature.


MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

6

Saturday, August 10th 2013, 5:41pm

SMOKE hat aber diesen funken nicht

_Grim_

User / Kunde

Posts: 704

Thanks: 11

  • Send private message

7

Saturday, August 10th 2013, 6:02pm

Sound.FIZZ
Made by Paint

MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

8

Saturday, August 10th 2013, 10:34pm

1. Ist das nicht ein sound?, ich suche den visuelen effekt
2. wie rufe ich das auf player.getWorld().playEffect(player.getLocation(), Sound.FIZZ , 2); geht nicht

lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

9

Saturday, August 10th 2013, 10:54pm

Versuch mal MOBSPAWNER_FLAMES und SMOKE zu kombinieren

Zitat

It is not a bug, it a new feature.


MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

10

Saturday, August 10th 2013, 11:19pm

habe ich schon geht nicht

lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

11

Sunday, August 11th 2013, 12:30am

Zitat

It is not a bug, it a new feature.


MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

12

Sunday, August 11th 2013, 4:51pm

Und wie kann ich das einbinden, bei mir wird:
import net.minecraft.server.v1_5_R1.Packet63WorldParticles;
und
import org.bukkit.craftbukkit.v1_5_R1.entity.CraftPlayer;
rot unterstrichen

lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

13

Sunday, August 11th 2013, 9:52pm

Weil die aus der 1.5 sind. Drück mal Strg + Shift + O

Zitat

It is not a bug, it a new feature.


MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

14

Sunday, August 11th 2013, 10:24pm

jetzt wird das hier rot unterstrichen :

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
HUGE_EXPLOSION("hugeexplosion"),
		LARGE_EXPLODE("largeexplode"),
		FIREWORKS_SPARK("fireworksSpark"),
		BUBBLE("bubble"),
		SUSPEND("suspend"),
		DEPTH_SUSPEND("depthSuspend"),
		TOWN_AURA("townaura"),
		CRIT("crit"),
		MAGIC_CRIT("magicCrit"),
		MOB_SPELL("mobSpell"),
		MOB_SPELL_AMBIENT("mobSpellAmbient"),
		SPELL("spell"),
		INSTANT_SPELL("instantSpell"),
		WITCH_MAGIC("witchMagic"),
		NOTE("note"),
		PORTAL("portal"),
		ENCHANTMENT_TABLE("enchantmenttable"),
		EXPLODE("explode"),
		FLAME("flame"),
		LAVA("lava"),
		FOOTSTEP("footstep"),
		SPLASH("splash"),
		LARGE_SMOKE("largesmoke"),
		CLOUD("cloud"),
		RED_DUST("reddust"),
		SNOWBALL_POOF("snowballpoof"),
		DRIP_WATER("dripWater"),
		DRIP_LAVA("dripLava"),
		SNOW_SHOVEL("snowshovel"),
		SLIME("slime"),
		HEART("heart"),
		ANGRY_VILLAGER("angryVillager"),
		HAPPY_VILLAGER("happerVillager"),
		ICONCRACK("iconcrack_"),
		TILECRACK("tilecrack_");

danach kommt noch:

Source code

1
2
3
ParticleEffects(String particleName){
this.particleName = particleName;
}

und auch:

Source code

1
2
3
4
5
6
7
8
9
10
11
Packet63WorldParticles packet = new Packet63WorldParticles();
	    	ReflectionUtilities.setValue(packet, "a", particleName);
	    	ReflectionUtilities.setValue(packet, "b", (float) location.getX());
	    	ReflectionUtilities.setValue(packet, "c", (float) location.getY());
	    	ReflectionUtilities.setValue(packet, "d", (float) location.getZ());
	    	ReflectionUtilities.setValue(packet, "e", offsetX);
	    	ReflectionUtilities.setValue(packet, "f", offsetY);
	    	ReflectionUtilities.setValue(packet, "g", offsetZ);
	    	ReflectionUtilities.setValue(packet, "h", speed);
	    	ReflectionUtilities.setValue(packet, "i", count);
	    	((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet);

lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

15

Sunday, August 11th 2013, 10:44pm

Und was ist der Fehler?

Zitat

It is not a bug, it a new feature.


MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

16

Monday, August 12th 2013, 12:01am

also den fehler obenhabe ich gefunden das war ein schreib fehler.
Unten ist der Fehler:

Packet63WorldParticles packet = new Packet63WorldParticles();

hatt den Fehler:
Packet63WorldParticles cannot be resolved to a type

ReflectionUtilities.setValue(packet, "a", particleName);
ReflectionUtilities.setValue(packet, "b", (float) location.getX());
ReflectionUtilities.setValue(packet, "c", (float) location.getY());
ReflectionUtilities.setValue(packet, "d", (float) location.getZ());
ReflectionUtilities.setValue(packet, "e", offsetX);
ReflectionUtilities.setValue(packet, "f", offsetY);
ReflectionUtilities.setValue(packet, "g", offsetZ);
ReflectionUtilities.setValue(packet, "h", speed);
ReflectionUtilities.setValue(packet, "i", count);

hat den Fehler:
ReflectionUtilities cannot be resolve

((CraftPlayer) player).getHandle().playerConnection.sendPacket(packet);

hat den Fehler:
CraftPlayer cannot be resolved to a type

lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

17

Monday, August 12th 2013, 12:14am

Hast du alles importiert?

Zitat

It is not a bug, it a new feature.


MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

18

Monday, August 12th 2013, 12:54am

import org.bukkit.Location;
import org.bukkit.entity.Player;
noch was?

MinecraftKatze

User / Kunde

  • "MinecraftKatze" is male
  • "MinecraftKatze" started this thread

Posts: 150

Location: Schweiz(Basel)

Occupation: Elektroinstallateur

  • Send private message

19

Monday, August 12th 2013, 9:56pm

[pusch]

lualzockt

User / Kunde

  • "lualzockt" is male

Posts: 1,380

Occupation: Ferien

Thanks: 9

  • Send private message

20

Monday, August 12th 2013, 11:35pm

Jaaaaaaaaaaah!!@!!!
Geb mal [STRG] +[SHIFT] + [O] ein ;)

Zitat

It is not a bug, it a new feature.


Bitte besucht unser neues Forum unter https://forum.nitrado.net| Please visit our new Forum at https://forum.nitrado.net