Skip to content

Commit

Permalink
📖Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Cierra-Runis committed Nov 5, 2024
1 parent a52826b commit acdd650
Show file tree
Hide file tree
Showing 6 changed files with 702 additions and 126 deletions.
Binary file added .github/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
795 changes: 674 additions & 121 deletions LICENSE

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Icon

<img src=".github/icon.png" alt='SurviRed'/>

[Figma](https://www.figma.com/design/B4xgnDzzLQ11tZtaSKujFo/SurviRed?m=auto&t=UQ0XIsjsgI5N8PWV-1)
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package pers.cierra_runis.survired.pickup

import net.fabricmc.fabric.api.event.player.UseEntityCallback
import net.minecraft.item.SpawnEggItem
import net.minecraft.util.ActionResult

class PickupRightClickEventListener {
fun registerRightClickEvent() {
UseEntityCallback.EVENT.register(UseEntityCallback { playerEntity, world, hand, entity, entityHitResult ->
if (playerEntity.isSneaking) {
entity.toString()
val spawnEgg = SpawnEggItem.forEntity(entity.type)
spawnEgg
playerEntity.giveItemStack(spawnEgg)
return@isSneaking ActionResult.SUCCESS
}
return@UseEntityCallback ActionResult.PASS
})
}
}
Binary file modified src/main/resources/assets/survired/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 3 additions & 5 deletions src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"Me!"
],
"contact": {
"homepage": "https://fabricmc.net/",
"sources": "https://github.com/FabricMC/fabric-example-mod"
"homepage": "https://github.com/Cierra-Runis",
"sources": "https://github.com/Cierra-Runis/Survired"
},
"license": "CC0-1.0",
"icon": "assets/survired/icon.png",
Expand Down Expand Up @@ -48,7 +48,5 @@
"fabric-api": "*",
"fabric-language-kotlin": "*"
},
"suggests": {
"another-mod": "*"
}
"suggests": {}
}

0 comments on commit acdd650

Please sign in to comment.