MobHunting

MobHunting

114k Downloads

Zombie Pigman

SlimeDog opened this issue ยท 21 comments

commented

MH 7.0.5-b1032

In MobHunting/config.yml, zombified_piglin (that I entered manually) was replaced by zombie_pigman. Since zombie_pigman is not a valid entity in Spigot 1.16.1, no reward is received on kill.

commented

Its SO annoying they change the names.... :-( Anyway it works again in build 1039

commented

I don't see a fix in b1039. The config.yml still shows zombie_pigman. The 1.16.1 entity is zombified_piglin (check to get it right, please).

commented

What more information about our configuration and testing would be helpful?

commented

Spigot 1.16.1
MH 7.5.0-SNAPSHOT-B1044 (or any previous version)

This is the entity configuration

  zombie_pigman:
    enabled: true
    message: ''
    money:
      amount: '50.0'
      chance: 1.0
    commands:
    - chance: '0.0'
      cmd: give {player} iron_ingot 1
    head:
      drophead: false
      value: '0'
      chance: 0.0
      message: ''

which is equivalent to all the working entity configurations. I get no reward -- neither bagOfGod drop nor economy increase -- for killing a Zombified_Piglin (and I kill a lot of them in BSkyBlock, testing the Nether).

I don't care so much about the configuration name, although it's bound to confuse some people running 1.16.x. But in 1.16.x, it needs to apply to Zombified_Piglin.

commented

Well I have tested that I got a reward, but not with your settings, so I will try your settings to see what happens. Have you checked the debug information in the console, this should explain what happens?

commented

As I said I get a reward

[21:42:41] [Server thread/INFO]: [MobHunting][Debug] ======================== New kill ==========================
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Rocologo killed a ZombiePigman (Minecraft)@(world:-98,64,-23)
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] KillAllowed: Mob killed by Rocologo was allowed by WorldGuard
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.ZOMBIFIED_PIGLIN' not set, defaulting to True.
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Basic Prize=50 for killing a ZombiePigman
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Rocologo used a weapon: BOW
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Checking kills in this area. DampenedKills=1. Penalty begins at 10. Max is 20
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] DampenedKills are below half of limit: 20
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Rocologo has killed 1 ZombiePigman in 0 seconds. Avg.kill time 0 must greater than 12.0 when 10 mobs is killed.
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Rocologo is not Speed Grinding.
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Multiplier: Rank = 1.05
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Multiplier: Difficulty = 0.75
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Killstreak=1, level=0, multiplier=1.0 
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Reward rounded to 39.5
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] [AchievementBlocked] Achievements is disabled for player Rocologo
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] RecordKill: Rocologo killed a ZombiePigman (Minecraft) Cash=39.5
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] 39.5 was dropped on the ground as item SKULL (# of rewards=1)
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] If 0.1594874890308331<0.05 Rocologo will get a McMMO Level for ARCHERY
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] The command did not run because random number (0.41196503368311954) was bigger than chance (0.0)
[21:42:41] [Server thread/INFO]: [MobHunting][Debug] ======================= kill ended (38)====================
commented

How does your debug information look like?

commented

After setting debug mode, I killed three zombified_piglin entities. Note that I killed them with an iron_axe, not a bow. There was no debug information in the log. I then killed a magma_cube, mostly to demonstrate that debug-mode is set.

[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] ======================== New kill ==========================
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] _SlimeDog killed a MagmaCube (Minecraft)@(world_skyblock_nether:502,119,510)
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] KillAllowed: Mob killed by _SlimeDog was allowed by WorldGuard
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] Basic Prize= 5 for killing a MagmaCube
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] _SlimeDog used a weapon: IRON_AXE
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] KillStreak was reset to 0
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] Grinding detection is disabled in config.yml (enable_grinding_detection) or there is no reward for this Mob.
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] _SlimeDog has no Rank Multiplier
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] Killstreak=0, level=0, multiplier=1.0
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] Reward rounded to 5.0
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] [AchievementBlocked] Achievements is disabled in world:world_skyblock_nether
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] [AchievementBlocked] Achievements is disabled in world:world_skyblock_nether
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] [AchievementBlocked] Achievements is disabled in world:world_skyblock_nether
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] RecordKill: _SlimeDog killed a MagmaCube (Minecraft) Cash= 5
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug]  5 was dropped on the ground as item SKULL (# of rewards=1)
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] The command did not run because random number (0.7685446314024151) was bigger than chance (0.0)
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] The command did not run because random number (0.3484408484707503) was bigger than chance (0.0)
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] ======================= kill ended (38)=====================
[12:55:54] [Server thread/INFO]: [MobHunting] [Debug] _SlimeDog picked up a  with a value: 5 (# of rewards left=0)(PickupRewards)

For reference, this is the configuration for the magma_cube entity

  magma_cube:
    enabled: true
    message: ''
    money:
      amount: '5.0'
      chance: 1.0
    commands:
    - chance: '0.0'
      cmd: give {player} iron_ingot 1
    - chance: '0.0'
      cmd: mobhunt head give {player} MAGMA_CUBE MAGMA_CUBE 1 silent
    head:
      drophead: false
      value: '0'
      chance: 0.0
      message: ''
commented

In your debug output, I see

[21:42:41] [Server thread/INFO]: [MobHunting][Debug] Permission 'mobhunting.mobs.*' or 'mobhunting.mobs.ZOMBIFIED_PIGLIN' not set, defaulting to True.

There is no equivalent entry in my debug output. I have mobhunting.* permissions (I am OP, but they are set explicitly in LuckPerms). Those permissions allowed the magma_cube kill, so I don't think it is a permissions issue.

I get the same result in 1.16.1 nether world and overworld.

commented

Im almost out of ideas. :-(

How do you spawn the zombified_piglin ? (Which command?)

commented

They are spawned naturally in the nether (and occasionally in overworld nether portals).

commented

Okay. I used essentials /spawnmob zombified_piglin in overworld. I guess I have to test in Nether then.

commented

The same result if I spawn them:

/minecraft:summon zombified_piglin
commented

The same result if I spawn them with

/essentials:spawnmob zombifiedpiglin

Note: Essentials tab-completes with zombifiedpiglin, not zombified_piglin.

commented

I got a reward too when I used "/minecraft:summon zombified_piglin" ....

and when I use /spawnmob zombifiedpiglin

commented

I would be happy to run whatever debugging you want, to resolve this issue. But I'm not sure where to proceed, since debug-mode claims that the SKULL is dropped.

commented

I have no solution to invisible items. This is a Minecraft/Spigot bug. Its not possible for me to drop invisible items.

Also this ticket is about the problem you have where you dont get rewards from zombified_piglin /ZombiePigman

commented

"this issue" = no (visible or apparent) drops for zombified_piglin.

commented

To be honest I working alot on the two plugins - moving code to BagOfGoldCore - where the code is redundant. I make to many code commits at the moment to be able to remember what I changed in each code commit.

Does this mean that you get the rewards now?

commented

I have not changed MH configuration (but of course MH might have done), but with b1049 (and a server restart to install it), zombified_piglin kills produce BagOfGold. Did something change that might affect that, between b1044 and b1049?

commented

V 7.5.0 Released. I close this ticket now.