[SPIGOT-3631] Experience Orb's doesn't spawn Created: 31/Oct/17 Updated: 01/Nov/17 Resolved: 01/Nov/17 |
|
Status: | Resolved |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | IllgiLP | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | 1.12.1, Craftbukkit, bukkit, entity, spigot, world | ||
Environment: |
OS: Windows 10 Pro Java Version: 1.8.0_151 Running Spigot: spigot-1.12.1-R0.1-SNAPSHOT-b1405 |
Plugin: | My own plugin |
Description |
My Code: ExperienceOrb orb = (ExperienceOrb) block.getWorld().spawnEntity(event.getBlock().getLocation(), EntityType.EXPERIENCE_ORB); orb.setExperience(1); The experience orb appears, but after ca 100 milliseconds the orb disappears |
Comments |
Comment by IllgiLP [ 01/Nov/17 ] |
I'm going to write a better code for reproducing later |
Comment by md_5 [ 01/Nov/17 ] |
Cannot reproduce with above code. |
Comment by IllgiLP [ 01/Nov/17 ] |
No the block is air and the orbs doesn't stay. They disappears after ca 100 millis |
Comment by md_5 [ 01/Nov/17 ] |
@EventHandler public void command(PlayerCommandPreprocessEvent event) { if ( event.getMessage().equals( "/test" ) ) { Location l = event.getPlayer().getLocation().subtract( 0, 5, 0 ); ExperienceOrb orb = (ExperienceOrb) l.getWorld().spawnEntity( l, EntityType.EXPERIENCE_ORB ); orb.setExperience( 1 ); event.setCancelled( true ); } } Perhaps the orbs are getting stuck in a block so you can't see them, or they are merging with other orbs. |