Skript: on rightclick on villager (bug)

Created on 15 Jul 2016  路  10Comments  路  Source: SkriptLang/Skript

i have skript like this:

on right click on a villager:
    message "&cVillager trade is disable" to the player
    cancel event  

but, player can by pass by hold something in left-hand (1,9 feature, press F)

bug

Most helpful comment

MundoSk support it:

[on] armor stand (interact|manipulate)

player #The player who touched the armor stand
event-entity #The armor stand
player's tool #The item being put on
event-item #The item being take off
event-slot #The slot who is touched (helmet, chestplate, leggings, boots)

[on] armor stand place

event-entity #The armor stand

All 10 comments

Oops, I thought I had fixed this.

and this skript:

#4 Anti Spawner Change via Egg
on rightclick on a monster spawner:
    player's tool is a spawn egg
    cancel event

player can by pass = hold spawn egg, press F, left click to spawner

and this skript won't work:

on right click on a armor stand:
    cancel event

pkayer still can put item in to armor stand

The last one is just lacking armor stand support, not really bug. Others are bugs indeed, and need fixing soon.

Do you have plan to support armor stand? please support it.

MundoSk support it:

[on] armor stand (interact|manipulate)

player #The player who touched the armor stand
event-entity #The armor stand
player's tool #The item being put on
event-item #The item being take off
event-slot #The slot who is touched (helmet, chestplate, leggings, boots)

[on] armor stand place

event-entity #The armor stand

Fixed the bug with mob spawners. I was unable to reproduce the one with villagers, though.

Test script (no pseudocode) would help for that.

@bensku
bug with spawner still NOT fixed!
i use:

  • dev19 version
  • paperspigot 1.9.2
    with this skript, player still can change spawner with spawner egg, just press F to change hand.
#4 Anti Spawner Change via Egg
on rightclick on a monster spawner:
    player's tool is a spawn egg
    cancel event

Umm... Do you know what that script is actually doing? You are checking if main hand tool of player is spawn egg! Not surprising that it doesn't work if the egg is in off hand.

You should be checking for event-item.

Long resolved and no response.

Was this page helpful?
0 / 5 - 0 ratings